mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
43 lines
1.0 KiB
C++
43 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include "V8DataModel/Adornment.h"
|
|
#include "GfxBase/IAdornable.h"
|
|
|
|
namespace RBX
|
|
{
|
|
extern const char* const sSelectionSphere;
|
|
|
|
class SelectionSphere
|
|
: public DescribedCreatable<SelectionSphere, PVAdornment, sSelectionSphere>
|
|
{
|
|
public:
|
|
SelectionSphere();
|
|
|
|
void setSurfaceColor(Color3 value);
|
|
Color3 getSurfaceColor() const { return surfaceColor; }
|
|
|
|
void setSurfaceBrickColor(BrickColor value);
|
|
BrickColor getSurfaceBrickColor() const { return BrickColor::closest(surfaceColor); }
|
|
|
|
void setSurfaceTransparency(float value);
|
|
float getSurfaceTransparency() const { return surfaceTransparency; }
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// IAdornable
|
|
/*override*/ void render3dAdorn(Adorn* adorn);
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Instance
|
|
/*override*/ bool askSetParent(const Instance* instance) const { return true; }
|
|
|
|
private:
|
|
Color3 surfaceColor;
|
|
float surfaceTransparency;
|
|
};
|
|
|
|
}
|
|
|
|
|