Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CImmLight Class Reference

#include <lighting.h>

Inheritance diagram for CImmLight::

CLight List of all members.

Public Methods

 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

Constructor & Destructor Documentation

CImmLight::CImmLight CGLContext   context,
int    lightNum
 

Definition at line 21 of file lighting.cpp.


Member Function Documentation

cpu_vec_xyzw CImmLight::GetAmbient   const [inline]
 

Definition at line 117 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

float CImmLight::GetConstantAtten   const [inline]
 

Definition at line 126 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

cpu_vec_xyzw CImmLight::GetDiffuse   const [inline]
 

Definition at line 118 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

float CImmLight::GetLinearAtten   const [inline]
 

Definition at line 127 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

cpu_vec_xyzw CImmLight::GetPosition   const [inline]
 

Definition at line 120 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

float CImmLight::GetQuadAtten   const [inline]
 

Definition at line 128 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

cpu_vec_xyzw CImmLight::GetSpecular   const [inline]
 

Definition at line 119 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext(), and CImmLighting::SpecularChanged().

float CImmLight::GetSpotCutoff   const [inline]
 

Definition at line 123 of file lighting.h.

cpu_vec_xyzw CImmLight::GetSpotDir   const [inline]
 

Definition at line 122 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

float CImmLight::GetSpotExponent   const [inline]
 

Definition at line 124 of file lighting.h.

bool CImmLight::IsDirectional   const [inline]
 

Definition at line 131 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

bool CImmLight::IsEnabled   const [inline]
 

Definition at line 130 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext(), and CImmLighting::SpecularChanged().

bool CImmLight::IsPoint   const [inline]
 

Definition at line 132 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

bool CImmLight::IsSpot   const [inline]
 

Definition at line 133 of file lighting.h.

Referenced by CBaseRenderer::AddVu1RendererContext().

void CImmLight::SetAmbient cpu_vec_xyzw    ambient [inline, virtual]
 

Reimplemented from CLight.

Definition at line 73 of file lighting.h.

void CImmLight::SetConstantAtten float    atten [inline, virtual]
 

Reimplemented from CLight.

Definition at line 102 of file lighting.h.

void CImmLight::SetDiffuse cpu_vec_xyzw    diffuse [inline, virtual]
 

Reimplemented from CLight.

Definition at line 77 of file lighting.h.

void CImmLight::SetDirection cpu_vec_xyzw    direction [virtual]
 

Reimplemented from CLight.

Definition at line 90 of file lighting.cpp.

void CImmLight::SetEnabled bool    enabled [virtual]
 

Reimplemented from CLight.

Definition at line 48 of file lighting.cpp.

void CImmLight::SetLinearAtten float    atten [inline, virtual]
 

Reimplemented from CLight.

Definition at line 106 of file lighting.h.

void CImmLight::SetPosition cpu_vec_xyzw    position [virtual]
 

Reimplemented from CLight.

Definition at line 77 of file lighting.cpp.

void CImmLight::SetQuadAtten float    atten [inline, virtual]
 

Reimplemented from CLight.

Definition at line 110 of file lighting.h.

void CImmLight::SetSpecular cpu_vec_xyzw    specular [virtual]
 

Reimplemented from CLight.

Definition at line 63 of file lighting.cpp.

void CImmLight::SetSpotCutoff float    cutoff [inline, virtual]
 

Reimplemented from CLight.

Definition at line 89 of file lighting.h.

void CImmLight::SetSpotDirection cpu_vec_xyzw    dir [inline, virtual]
 

Reimplemented from CLight.

Definition at line 85 of file lighting.h.

void CImmLight::SetSpotExponent float    exp [inline, virtual]
 

Reimplemented from CLight.

Definition at line 97 of file lighting.h.


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