Go to the documentation of this file.
24 constant_attenuation(1.f),
25 linear_attenuation(0.f),
26 quadratic_attenuation(0.f),
88 #if MRPT_HAS_OPENGL_GLUT
void writeToStream(mrpt::serialization::CArchive &out) const
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, mrpt::opengl::CLight &o)
GLAPI void GLAPIENTRY glEnable(GLenum cap)
float direction[3]
[x,y,z]
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)
#define GL_SPOT_DIRECTION
Virtual base class for "archives": classes abstracting I/O streams.
uint8_t light_ID
OpenGL ID (typical range: 0-7)
#define GL_CONSTANT_ATTENUATION
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)
#define GL_LINEAR_ATTENUATION
float quadratic_attenuation
mrpt::serialization::CArchive & operator<<(mrpt::serialization::CArchive &out, const mrpt::opengl::CLight &o)
#define GL_QUADRATIC_ATTENUATION
GLAPI void GLAPIENTRY glLightf(GLenum light, GLenum pname, GLfloat param)
CLight()
Default constructor, sets default values.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
The namespace for 3D scene representation and rendering.
float constant_attenuation
GLAPI void GLAPIENTRY glLightfv(GLenum light, GLenum pname, const GLfloat *params)
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 | |