8#ifndef ENGINE_GRAPHICS_GLIGHT_H_
9#define ENGINE_GRAPHICS_GLIGHT_H_
84 void rotate(
float radians,
float ax,
float ay,
float az);
94 void rotateDeg(
float degrees,
float ax,
float ay,
float az);
401 void rotateAround(
float radians,
const glm::vec3& axis,
const glm::vec3& point);
412 gColor ambientcolor, diffusecolor, specularcolor;
415 glm::vec3 attenuation;
416 glm::vec2 spotcutoff;
417 glm::vec3 directioneuler;
float getSpecularColorRed() const
void setOrientation(const glm::vec3 &angles)
void rotateAroundDeg(float degrees, const glm::vec3 &axis, const glm::vec3 &point)
void setType(int lightType)
gLight(int lightType=LIGHTTYPE_POINT)
void setDiffuseColor(gColor *color)
float getAmbientColorGreen() const
const glm::vec2 & getSpotCutOff() const
void rotateAround(float radians, const glm::vec3 &axis, const glm::vec3 &point)
float getSpecularColorAlpha() const
const glm::vec3 & getDirection() const
void setSpecularColor(gColor *color)
float getAttenuationLinear() const
void setSpotCutOff(glm::vec2 spotCutOff)
void setChanged(bool isChanged)
void setAmbientColor(gColor *color)
void setAttenuation(float constant, float linear, float quadratic)
float getSpotCutOffSpread() const
void setAttenuation(glm::vec3 attenuation)
gColor * getAmbientColor()
void setAmbientColor(int r, int g, int b, int a=255)
void processTransformationMatrix() override
gColor * getSpecularColor()
float getSpotOuterCutOffAngle() const
static const int LIGHTTYPE_AMBIENT
Definition gLight.h:24
static const int LIGHTTYPE_POINT
Definition gLight.h:26
static const int LIGHTTYPE_DIRECTIONAL
Definition gLight.h:25
float getAmbientColorRed() const
float getAmbientColorAlpha() const
void rotateDeg(float degrees, float ax, float ay, float az)
void setSpecularColor(const gColor &color)
float getDiffuseColorRed() const
void setSpotCutOffAngle(float cutOffAngle)
void setDiffuseColor(const gColor &color)
float getDiffuseColorAlpha() const
static const int LIGHTTYPE_SPOT
Definition gLight.h:27
float getSpecularColorGreen() const
float getAttenuationConstant() const
float getSpotCutOffAngle() const
float getDiffuseColorGreen() const
gColor * getDiffuseColor()
void setSpotCutOffSpread(float cutOffSpreadAngle)
const glm::vec3 & getAttenuation() const
void setDiffuseColor(int r, int g, int b, int a=255)
void setAmbientColor(const gColor &color)
float getAmbientColorBlue() const
float getSpecularColorBlue() const
void setOrientation(const glm::quat &o)
void setSpecularColor(int r, int g, int b, int a=255)
float getDiffuseColorBlue() const
float getAttenuationQuadratic() const
void rotate(float radians, float ax, float ay, float az)
Definition gRenderer.h:123
float r
Definition gColor.h:22
float a
Definition gColor.h:22
float b
Definition gColor.h:22
float g
Definition gColor.h:22