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

Public Member Functions

 CImmLighting (CGLContext &context)
 
CImmLightGetImmLight (int num)
 
CLightGetLight (int num)
 
void SetLightingEnabled (bool enabled)
 
bool GetLightingEnabled () const
 
void SetGlobalAmbient (cpu_vec_xyzw newAmb)
 
cpu_vec_xyzw GetGlobalAmbient ()
 
void SpecularChanged ()
 
void MaterialHasSpecular ()
 
- Public Member Functions inherited from CLighting
 CLighting (CGLContext &context)
 

Private Member Functions

void TellRendererLightPropChanged ()
 

Private Attributes

cpu_vec_xyzw CurrentColor
 
cpu_vec_xyzw GlobalAmbient
 
CImmLight Light0
 
CImmLight Light1
 
CImmLight Light2
 
CImmLight Light3
 
CImmLight Light4
 
CImmLight Light5
 
CImmLight Light6
 
CImmLight Light7
 
CImmLightLights [NumLights]
 
bool IsEnabled
 
int NumLightsWithNonzeroSpecular
 

Additional Inherited Members

- Protected Attributes inherited from CLighting
CGLContextGLContext
 
- Static Protected Attributes inherited from CLighting
static const int NumLights = 8
 

Detailed Description

Definition at line 214 of file lighting.h.

Constructor & Destructor Documentation

◆ CImmLighting()

CImmLighting::CImmLighting ( CGLContext context)

Definition at line 217 of file lighting.cpp.

Member Function Documentation

◆ TellRendererLightPropChanged()

void CImmLighting::TellRendererLightPropChanged ( )
inlineprivate

Definition at line 222 of file lighting.h.

◆ GetImmLight()

CImmLight & CImmLighting::GetImmLight ( int  num)
inline

Definition at line 230 of file lighting.h.

◆ GetLight()

CLight & CImmLighting::GetLight ( int  num)
inlinevirtual

Implements CLighting.

Definition at line 235 of file lighting.h.

◆ SetLightingEnabled()

void CImmLighting::SetLightingEnabled ( bool  enabled)
inlinevirtual

Implements CLighting.

Definition at line 237 of file lighting.h.

◆ GetLightingEnabled()

bool CImmLighting::GetLightingEnabled ( ) const
inline

Definition at line 243 of file lighting.h.

◆ SetGlobalAmbient()

void CImmLighting::SetGlobalAmbient ( cpu_vec_xyzw  newAmb)
inlinevirtual

Implements CLighting.

Definition at line 245 of file lighting.h.

◆ GetGlobalAmbient()

cpu_vec_xyzw CImmLighting::GetGlobalAmbient ( )
inline

Definition at line 250 of file lighting.h.

◆ SpecularChanged()

void CImmLighting::SpecularChanged ( )

Definition at line 242 of file lighting.cpp.

◆ MaterialHasSpecular()

void CImmLighting::MaterialHasSpecular ( )

Definition at line 258 of file lighting.cpp.

Field Documentation

◆ CurrentColor

cpu_vec_xyzw CImmLighting::CurrentColor
private

Definition at line 215 of file lighting.h.

◆ GlobalAmbient

cpu_vec_xyzw CImmLighting::GlobalAmbient
private

Definition at line 216 of file lighting.h.

◆ Light0

CImmLight CImmLighting::Light0
private

Definition at line 217 of file lighting.h.

◆ Light1

CImmLight CImmLighting::Light1
private

Definition at line 217 of file lighting.h.

◆ Light2

CImmLight CImmLighting::Light2
private

Definition at line 217 of file lighting.h.

◆ Light3

CImmLight CImmLighting::Light3
private

Definition at line 217 of file lighting.h.

◆ Light4

CImmLight CImmLighting::Light4
private

Definition at line 217 of file lighting.h.

◆ Light5

CImmLight CImmLighting::Light5
private

Definition at line 217 of file lighting.h.

◆ Light6

CImmLight CImmLighting::Light6
private

Definition at line 217 of file lighting.h.

◆ Light7

CImmLight CImmLighting::Light7
private

Definition at line 217 of file lighting.h.

◆ Lights

CImmLight* CImmLighting::Lights[NumLights]
private

Definition at line 218 of file lighting.h.

◆ IsEnabled

bool CImmLighting::IsEnabled
private

Definition at line 219 of file lighting.h.

◆ NumLightsWithNonzeroSpecular

int CImmLighting::NumLightsWithNonzeroSpecular
private

Definition at line 220 of file lighting.h.


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