10 #ifndef opengl_CLight_H 11 #define opengl_CLight_H 19 namespace utils {
class CStream; }
32 void setPosition(
float x,
float y,
float z,
float w);
33 void setDirection(
float dx,
float dy,
float dz);
37 float color_ambient[4];
38 float color_diffuse[4];
39 float color_specular[4];
52 void sendToOpenGL()
const;
64 static std::string
get() {
return std::string(
"mrpt::opengl::CLight"); } };
CStream BASE_IMPEXP & operator<<(mrpt::utils::CStream &s, const char *a)
float constant_attenuation
A template to obtain the type of its argument as a string at compile time.
class BASE_IMPEXP CStream
Each of the possible lights of a 3D scene.
::mrpt::utils::CStream & operator>>(mrpt::utils::CStream &in, CImagePtr &pObj)
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
uint8_t light_ID
OpenGL ID (typical range: 0-7)
float quadratic_attenuation