10 #ifndef opengl_CLight_H 11 #define opengl_CLight_H float direction[3]
[x,y,z]
mrpt::utils::CStream & operator<<(mrpt::utils::CStream &out, const mrpt::opengl::CLight &o)
float constant_attenuation
A template to obtain the type of its argument as a string at compile time.
CLight()
Default constructor, sets default values.
void writeToStream(mrpt::utils::CStream &out) const
void sendToOpenGL() const
Define the light in the current OpenGL rendering context (users normally don't need to call this expl...
GLubyte GLubyte GLubyte GLubyte w
Each of the possible lights of a 3D scene.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
GLsizei const GLchar ** string
mrpt::utils::CStream & operator>>(mrpt::utils::CStream &in, mrpt::opengl::CLight &o)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
uint8_t light_ID
OpenGL ID (typical range: 0-7)
void readFromStream(mrpt::utils::CStream &in)
float quadratic_attenuation
void setPosition(float x, float y, float z, float w)
float position[4]
[x,y,z,w]: w=0 means directional light, w=1 means a light at a real 3D position.
void setDirection(float dx, float dy, float dz)