|
virtual void | Draw (Shader *shader, State *state, Material *defaultMat, const glm::mat4 &viewProj, bool drawMats=false) |
|
void | UpdateShader (Shader *shader) |
|
bool | IsCube () |
|
LightType | GetType () |
|
glm::vec3 | GetColor () |
|
glm::vec3 | GetBaseColor () |
|
glm::vec3 | GetOffset () |
|
glm::vec3 | GetDir () |
|
glm::vec3 | GetPos () |
|
float | GetKD () |
|
float | GetKA () |
|
float | GetKS () |
|
bool | GetGamma () |
|
float | GetRange () |
|
float | GetSpotInnerRadius () |
|
float | GetSpotOuterRadius () |
|
virtual void | SetColor (const glm::vec3 &color) |
|
virtual void | SetBaseColor (const glm::vec3 &color) |
|
virtual void | SetOffset (const glm::vec3 &offset) |
|
virtual void | SetPos (const glm::vec3 &pos) |
|
virtual void | SetDir (const glm::vec3 &dir) |
|
virtual void | SetKD (const float kd) |
|
virtual void | SetKA (const float ka) |
|
virtual void | SetKS (const float ks) |
|
virtual void | SetGamma (const bool gamma) |
|
virtual void | SetSpotInnerRadius (const float innerRadius) |
|
virtual void | SetSpotOuterRadius (const float outerRadius) |
|
virtual void | SetType (const LightType type) |
|
void | UpdateRotatingLight (bool isRotating) |
|
void | UpdateDiscoLight (bool isDisco) |
|
void | SetRange (const float lightRange) |
|
virtual void | LoadMaterials (MaterialContainer *materials, TextureContainer *textures) |
|
| Light (const std::string &name="default", const std::string &scope="", LightType type=LightType::POINT, const glm::vec3 &pos=glm::vec3(1.0f), const glm::vec3 &dir=glm::vec3(-1.0f), const glm::vec3 &color=glm::vec3(1.0f), float kd=1.0f, float ka=0.1f, float ks=0.5f, bool gamma=true, float range=13.0f, float spotInner=25, float spotOuter=35) |
|
| Light (Config *config) |
|
virtual SelectableType | GetSelectableType () |
| Returns the type of the selectable.
|
|
| ISelectable (SelectableType type=SelectableType::NONE) |
| Sets the type of the selectable.
|
|
virtual void | Rename (const std::string &newName, bool includeScope=true) |
| Renames the object, setting the scope to be the scoped part of the name.
|
|
virtual void | SetName (const std::string &name) |
| Sets the name of the object. Note: Does not set the scope variable. If renaming based on raw input, use Rename() instead to set the scope.
|
|
virtual void | SetScope (const std::string &scope) |
| Sets the scope of the object.
|
|
std::string | GetUnscopedName () |
| Returns the unscoped name of the object.
|
|
std::string | GetScope () |
| Returns the scope of the object.
|
|
std::string | GetScopedName () |
| Returns the scoped name of the object.
|
|
void | InitName (const std::string &name, const std::string &scope="") |
| Initializes the nameable object with the given name and scope.
|
|
| INameable () |
| Creates a default nameable object without name or scope.
|
|