10#ifndef opengl_CLight_H
11#define opengl_CLight_H
19 namespace utils {
class CStream; }
37 float color_ambient[4];
38 float color_diffuse[4];
39 float color_specular[4];
64 static std::string
get() {
return std::string(
"mrpt::opengl::CLight"); } };
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
::mrpt::utils::CStream & operator>>(mrpt::utils::CStream &in, CAngularObservationMeshPtr &pObj)
OPENGL_IMPEXP mrpt::utils::CStream & operator<<(mrpt::utils::CStream &out, const mrpt::opengl::CLight &o)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Each of the possible lights of a 3D scene.
uint8_t light_ID
OpenGL ID (typical range: 0-7)
float quadratic_attenuation
float constant_attenuation
CLight()
Default constructor, sets default values.
void setPosition(float x, float y, float z, float w)
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)
void readFromStream(mrpt::utils::CStream &in)
void writeToStream(mrpt::utils::CStream &out) const
A template to obtain the type of its argument as a string at compile time.