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

Public Member Functions

 CImmLight (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 enabled)
 
cpu_vec_xyzw GetAmbient () const
 
cpu_vec_xyzw GetDiffuse () const
 
cpu_vec_xyzw GetSpecular () const
 
cpu_vec_xyzw GetPosition () const
 
cpu_vec_xyzw GetSpotDir () const
 
float GetSpotCutoff () const
 
float GetSpotExponent () const
 
float GetConstantAtten () const
 
float GetLinearAtten () const
 
float GetQuadAtten () const
 
bool IsEnabled () const
 
bool IsDirectional () const
 
bool IsPoint () const
 
bool IsSpot () const
 
- Public Member Functions inherited from CLight
 CLight (CGLContext &context, int lightNum)
 

Private Member Functions

void TellRendererLightPropChanged ()
 
void CheckTypeChange (tLightType oldType)
 

Private Attributes

cpu_vec_xyzw Ambient
 
cpu_vec_xyzw Diffuse
 
cpu_vec_xyzw Specular
 
cpu_vec_xyzw Position
 
cpu_vec_xyzw SpotDirection
 
float SpotCutoff
 
float SpotExponent
 
float ConstantAtten
 
float LinearAtten
 
float QuadAtten
 
bool bIsEnabled
 
tLightType Type
 

Static Private Attributes

static int NumLights [3] = { 0, 0, 0 }
 

Additional Inherited Members

- Protected Attributes inherited from CLight
CGLContextGLContext
 
int LightNum
 

Detailed Description

Definition at line 56 of file lighting.h.

Constructor & Destructor Documentation

◆ CImmLight()

CImmLight::CImmLight ( CGLContext context,
int  lightNum 
)

Definition at line 21 of file lighting.cpp.

Member Function Documentation

◆ TellRendererLightPropChanged()

void CImmLight::TellRendererLightPropChanged ( )
inlineprivate

Definition at line 68 of file lighting.h.

◆ CheckTypeChange()

void CImmLight::CheckTypeChange ( tLightType  oldType)
private

Definition at line 43 of file lighting.cpp.

◆ SetAmbient()

void CImmLight::SetAmbient ( cpu_vec_xyzw  ambient)
inlinevirtual

Implements CLight.

Definition at line 78 of file lighting.h.

◆ SetDiffuse()

void CImmLight::SetDiffuse ( cpu_vec_xyzw  diffuse)
inlinevirtual

Implements CLight.

Definition at line 83 of file lighting.h.

◆ SetSpecular()

void CImmLight::SetSpecular ( cpu_vec_xyzw  specular)
virtual

Implements CLight.

Definition at line 70 of file lighting.cpp.

◆ SetPosition()

void CImmLight::SetPosition ( cpu_vec_xyzw  position)
virtual

Implements CLight.

Definition at line 82 of file lighting.cpp.

◆ SetDirection()

void CImmLight::SetDirection ( cpu_vec_xyzw  direction)
virtual

Implements CLight.

Definition at line 94 of file lighting.cpp.

◆ SetSpotDirection()

void CImmLight::SetSpotDirection ( cpu_vec_xyzw  dir)
inlinevirtual

Implements CLight.

Definition at line 92 of file lighting.h.

◆ SetSpotCutoff()

void CImmLight::SetSpotCutoff ( float  cutoff)
inlinevirtual

Implements CLight.

Definition at line 97 of file lighting.h.

◆ SetSpotExponent()

void CImmLight::SetSpotExponent ( float  exp)
inlinevirtual

Implements CLight.

Definition at line 106 of file lighting.h.

◆ SetConstantAtten()

void CImmLight::SetConstantAtten ( float  atten)
inlinevirtual

Implements CLight.

Definition at line 112 of file lighting.h.

◆ SetLinearAtten()

void CImmLight::SetLinearAtten ( float  atten)
inlinevirtual

Implements CLight.

Definition at line 117 of file lighting.h.

◆ SetQuadAtten()

void CImmLight::SetQuadAtten ( float  atten)
inlinevirtual

Implements CLight.

Definition at line 122 of file lighting.h.

◆ SetEnabled()

void CImmLight::SetEnabled ( bool  enabled)
virtual

Implements CLight.

Definition at line 54 of file lighting.cpp.

◆ GetAmbient()

cpu_vec_xyzw CImmLight::GetAmbient ( ) const
inline

Definition at line 130 of file lighting.h.

◆ GetDiffuse()

cpu_vec_xyzw CImmLight::GetDiffuse ( ) const
inline

Definition at line 131 of file lighting.h.

◆ GetSpecular()

cpu_vec_xyzw CImmLight::GetSpecular ( ) const
inline

Definition at line 132 of file lighting.h.

◆ GetPosition()

cpu_vec_xyzw CImmLight::GetPosition ( ) const
inline

Definition at line 133 of file lighting.h.

◆ GetSpotDir()

cpu_vec_xyzw CImmLight::GetSpotDir ( ) const
inline

Definition at line 135 of file lighting.h.

◆ GetSpotCutoff()

float CImmLight::GetSpotCutoff ( ) const
inline

Definition at line 136 of file lighting.h.

◆ GetSpotExponent()

float CImmLight::GetSpotExponent ( ) const
inline

Definition at line 137 of file lighting.h.

◆ GetConstantAtten()

float CImmLight::GetConstantAtten ( ) const
inline

Definition at line 139 of file lighting.h.

◆ GetLinearAtten()

float CImmLight::GetLinearAtten ( ) const
inline

Definition at line 140 of file lighting.h.

◆ GetQuadAtten()

float CImmLight::GetQuadAtten ( ) const
inline

Definition at line 141 of file lighting.h.

◆ IsEnabled()

bool CImmLight::IsEnabled ( ) const
inline

Definition at line 143 of file lighting.h.

◆ IsDirectional()

bool CImmLight::IsDirectional ( ) const
inline

Definition at line 144 of file lighting.h.

◆ IsPoint()

bool CImmLight::IsPoint ( ) const
inline

Definition at line 145 of file lighting.h.

◆ IsSpot()

bool CImmLight::IsSpot ( ) const
inline

Definition at line 146 of file lighting.h.

Field Documentation

◆ Ambient

cpu_vec_xyzw CImmLight::Ambient
private

Definition at line 57 of file lighting.h.

◆ Diffuse

cpu_vec_xyzw CImmLight::Diffuse
private

Definition at line 57 of file lighting.h.

◆ Specular

cpu_vec_xyzw CImmLight::Specular
private

Definition at line 57 of file lighting.h.

◆ Position

cpu_vec_xyzw CImmLight::Position
private

Definition at line 58 of file lighting.h.

◆ SpotDirection

cpu_vec_xyzw CImmLight::SpotDirection
private

Definition at line 58 of file lighting.h.

◆ SpotCutoff

float CImmLight::SpotCutoff
private

Definition at line 59 of file lighting.h.

◆ SpotExponent

float CImmLight::SpotExponent
private

Definition at line 59 of file lighting.h.

◆ ConstantAtten

float CImmLight::ConstantAtten
private

Definition at line 60 of file lighting.h.

◆ LinearAtten

float CImmLight::LinearAtten
private

Definition at line 60 of file lighting.h.

◆ QuadAtten

float CImmLight::QuadAtten
private

Definition at line 60 of file lighting.h.

◆ bIsEnabled

bool CImmLight::bIsEnabled
private

Definition at line 61 of file lighting.h.

◆ Type

tLightType CImmLight::Type
private

Definition at line 64 of file lighting.h.

◆ NumLights

int CImmLight::NumLights = { 0, 0, 0 }
staticprivate

Definition at line 19 of file lighting.h.


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