void writeToStream(mrpt::serialization::CArchive &out) const
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, mrpt::opengl::CLight &o)
float direction[3]
[x,y,z]
#define DECLARE_TTYPENAME_CLASSNAME(_CLASSNAME)
Like DECLARE_CUSTOM_TTYPENAME(), but for use within the class declaration body.
Each of the possible lights of a 3D scene.
float position[4]
[x,y,z,w]: w=0 means directional light, w=1 means a light at a real 3D position.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void readFromStream(mrpt::serialization::CArchive &in)
GLubyte GLubyte GLubyte GLubyte w
void setPosition(float x, float y, float z, float w)
Virtual base class for "archives": classes abstracting I/O streams.
uint8_t light_ID
OpenGL ID (typical range: 0-7)
void sendToOpenGL() const
Define the light in the current OpenGL rendering context (users normally don't need to call this expl...
void setDirection(float dx, float dy, float dz)
float quadratic_attenuation
mrpt::serialization::CArchive & operator<<(mrpt::serialization::CArchive &out, const mrpt::opengl::CLight &o)
CLight()
Default constructor, sets default values.
float constant_attenuation
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |