PS2GL
OpenGL*-like API for the PS2
Loading...
Searching...
No Matches
CDListLight Class Reference
+ Inheritance diagram for CDListLight:
+ Collaboration diagram for CDListLight:

Public Member Functions

 CDListLight (CGLContext &context, int lightNum)
 
void SetAmbient (cpu_vec_xyzw ambient)
 
void SetDiffuse (cpu_vec_xyzw diffuse)
 
void SetSpecular (cpu_vec_xyzw specular)
 
void SetPosition (cpu_vec_xyzw position)
 
void SetDirection (cpu_vec_xyzw direction)
 
void SetSpotDirection (cpu_vec_xyzw dir)
 
void SetSpotCutoff (float cutoff)
 
void SetSpotExponent (float exp)
 
void SetConstantAtten (float atten)
 
void SetLinearAtten (float atten)
 
void SetQuadAtten (float atten)
 
void SetEnabled (bool yesNo)
 
- Public Member Functions inherited from CLight
 CLight (CGLContext &context, int lightNum)
 

Private Member Functions

void TellRendererLightPropChanged ()
 
void TellRendererLightsEnabledChanged ()
 

Additional Inherited Members

- Protected Attributes inherited from CLight
CGLContextGLContext
 
int LightNum
 

Detailed Description

Definition at line 153 of file lighting.h.

Constructor & Destructor Documentation

◆ CDListLight()

CDListLight::CDListLight ( CGLContext context,
int  lightNum 
)
inline

Definition at line 164 of file lighting.h.

Member Function Documentation

◆ TellRendererLightPropChanged()

void CDListLight::TellRendererLightPropChanged ( )
inlineprivate

Definition at line 154 of file lighting.h.

◆ TellRendererLightsEnabledChanged()

void CDListLight::TellRendererLightsEnabledChanged ( )
inlineprivate

Definition at line 158 of file lighting.h.

◆ SetAmbient()

void CDListLight::SetAmbient ( cpu_vec_xyzw  ambient)
virtual

Implements CLight.

Definition at line 128 of file lighting.cpp.

◆ SetDiffuse()

void CDListLight::SetDiffuse ( cpu_vec_xyzw  diffuse)
virtual

Implements CLight.

Definition at line 135 of file lighting.cpp.

◆ SetSpecular()

void CDListLight::SetSpecular ( cpu_vec_xyzw  specular)
virtual

Implements CLight.

Definition at line 142 of file lighting.cpp.

◆ SetPosition()

void CDListLight::SetPosition ( cpu_vec_xyzw  position)
virtual

Implements CLight.

Definition at line 150 of file lighting.cpp.

◆ SetDirection()

void CDListLight::SetDirection ( cpu_vec_xyzw  direction)
virtual

Implements CLight.

Definition at line 157 of file lighting.cpp.

◆ SetSpotDirection()

void CDListLight::SetSpotDirection ( cpu_vec_xyzw  dir)
virtual

Implements CLight.

Definition at line 164 of file lighting.cpp.

◆ SetSpotCutoff()

void CDListLight::SetSpotCutoff ( float  cutoff)
virtual

Implements CLight.

Definition at line 171 of file lighting.cpp.

◆ SetSpotExponent()

void CDListLight::SetSpotExponent ( float  exp)
virtual

Implements CLight.

Definition at line 178 of file lighting.cpp.

◆ SetConstantAtten()

void CDListLight::SetConstantAtten ( float  atten)
virtual

Implements CLight.

Definition at line 185 of file lighting.cpp.

◆ SetLinearAtten()

void CDListLight::SetLinearAtten ( float  atten)
virtual

Implements CLight.

Definition at line 192 of file lighting.cpp.

◆ SetQuadAtten()

void CDListLight::SetQuadAtten ( float  atten)
virtual

Implements CLight.

Definition at line 199 of file lighting.cpp.

◆ SetEnabled()

void CDListLight::SetEnabled ( bool  yesNo)
virtual

Implements CLight.

Definition at line 206 of file lighting.cpp.


The documentation for this class was generated from the following files: