store parameters for one OpenGL light source More...
#include <rhr/rfbext.h>
Public Member Functions | |
Light () | |
attunuation: 0: constant, 1: linear, 2: quadratic More... | |
bool | operator!= (const Light &o) const |
Public Attributes | |
uint8_t | enabled |
whether the light source is enabled More... | |
uint8_t | pad [7] |
ensure alignment More... | |
double | position [4] |
position More... | |
double | ambient [4] |
contribution to ambient lighting (RGBA) More... | |
double | diffuse [4] |
contribution to diffuse lighting (RGBA) More... | |
double | specular [4] |
contribution to specular highlights (RGBA) More... | |
double | spot_direction [3] |
direction of spot light More... | |
double | spot_cutoff |
cut-off coefficient for spot light More... | |
double | spot_exponent |
cut-off exponenent for spot light More... | |
double | attenuation [3] |
store parameters for one OpenGL light source
|
inline |
attunuation: 0: constant, 1: linear, 2: quadratic
|
inline |
double vistle::lightsMsg::Light::ambient[4] |
contribution to ambient lighting (RGBA)
double vistle::lightsMsg::Light::attenuation[3] |
double vistle::lightsMsg::Light::diffuse[4] |
contribution to diffuse lighting (RGBA)
uint8_t vistle::lightsMsg::Light::enabled |
whether the light source is enabled
uint8_t vistle::lightsMsg::Light::pad[7] |
ensure alignment
double vistle::lightsMsg::Light::position[4] |
position
double vistle::lightsMsg::Light::specular[4] |
contribution to specular highlights (RGBA)
double vistle::lightsMsg::Light::spot_cutoff |
cut-off coefficient for spot light
double vistle::lightsMsg::Light::spot_direction[3] |
direction of spot light
double vistle::lightsMsg::Light::spot_exponent |
cut-off exponenent for spot light