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

Public Member Functions

 CLight (CGLContext &context, int lightNum)
 
virtual void SetAmbient (cpu_vec_xyzw ambient)=0
 
virtual void SetDiffuse (cpu_vec_xyzw diffuse)=0
 
virtual void SetSpecular (cpu_vec_xyzw specular)=0
 
virtual void SetPosition (cpu_vec_xyzw position)=0
 
virtual void SetDirection (cpu_vec_xyzw direction)=0
 
virtual void SetSpotDirection (cpu_vec_xyzw dir)=0
 
virtual void SetSpotCutoff (float cutoff)=0
 
virtual void SetSpotExponent (float exp)=0
 
virtual void SetConstantAtten (float atten)=0
 
virtual void SetLinearAtten (float atten)=0
 
virtual void SetQuadAtten (float atten)=0
 
virtual void SetEnabled (bool yesNo)=0
 

Protected Attributes

CGLContextGLContext
 
int LightNum
 

Detailed Description

Definition at line 25 of file lighting.h.

Constructor & Destructor Documentation

◆ CLight()

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

Definition at line 31 of file lighting.h.

Field Documentation

◆ GLContext

CGLContext& CLight::GLContext
protected

Definition at line 27 of file lighting.h.

◆ LightNum

int CLight::LightNum
protected

Definition at line 28 of file lighting.h.


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