83 void set(
const Vec3& _pos,
const Vec3& _dir,
const Colour& _col ) noexcept;
96 void setParams(
const Real _cutoff,
const Real _exponent,
const Real _constant,
const Real _linear,
const Real _quadratic ) noexcept;
101 void setCutoff(
const Real &_cutoff ) noexcept;
106 void setInnerCutoff(
const Real &_cutoff ) noexcept;
116 void aim(
const Vec4& _pos ) noexcept;
132 void loadToShader(
std::string _uniformName )
const noexcept;
138 void setTransform(
Mat4 &_t) noexcept;
Real m_spotExponent
the SpotExponent value
simple class to hold colour information and set the basic opengl colour state. also has overloaded me...
simple Vector class for OpenGL graphics, contains overloaded operators for most math functions...
Simple class to encapsulate OpenGL Light functions this will fill in the following structure...
void setExponent(const Real &_exp) noexcept
sets the exponent
simple Vec3 encapsulates a 3 float object like glsl vec3 but not maths use the Vec3 class for maths a...
implementation files for RibExport class
Encapsulation of OpenGL spotlight inherits from the Light class.
PRECISION Real
create a variable called Real which is the main data type we use (GLfloat for most cases) ...
an encapsulation of an OpenGL Light
Vec4 m_dir
the spot light direction vector
SpotLight() noexcept
default ctor
Real m_innerCutoffAngle
the spot inner cutoff angle
Matrix Class to do simple matrix operations included operator overloaded functions for maths and matr...
Vec4 m_aim
where the spot is to be aimed
GLsizei const GLchar *const * string