View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Public Member Functions | Public Attributes | List of all members
vistle::lightsMsg::Light Struct Reference

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]
 

Detailed Description

store parameters for one OpenGL light source

Constructor & Destructor Documentation

◆ Light()

vistle::lightsMsg::Light::Light ( )
inline

attunuation: 0: constant, 1: linear, 2: quadratic

Member Function Documentation

◆ operator!=()

bool vistle::lightsMsg::Light::operator!= ( const Light o) const
inline

Member Data Documentation

◆ ambient

double vistle::lightsMsg::Light::ambient[4]

contribution to ambient lighting (RGBA)

◆ attenuation

double vistle::lightsMsg::Light::attenuation[3]

◆ diffuse

double vistle::lightsMsg::Light::diffuse[4]

contribution to diffuse lighting (RGBA)

◆ enabled

uint8_t vistle::lightsMsg::Light::enabled

whether the light source is enabled

◆ pad

uint8_t vistle::lightsMsg::Light::pad[7]

ensure alignment

◆ position

double vistle::lightsMsg::Light::position[4]

position

◆ specular

double vistle::lightsMsg::Light::specular[4]

contribution to specular highlights (RGBA)

◆ spot_cutoff

double vistle::lightsMsg::Light::spot_cutoff

cut-off coefficient for spot light

◆ spot_direction

double vistle::lightsMsg::Light::spot_direction[3]

direction of spot light

◆ spot_exponent

double vistle::lightsMsg::Light::spot_exponent

cut-off exponenent for spot light


The documentation for this struct was generated from the following file: