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

Public Member Functions

 CImmMaterial (CGLContext &context)
 
void SetAmbient (cpu_vec_xyzw ambient)
 
void SetDiffuse (cpu_vec_xyzw diffuse)
 
void SetSpecular (cpu_vec_xyzw specular)
 
void SetEmission (cpu_vec_xyzw emission)
 
void SetShininess (float shine)
 
cpu_vec_xyzw GetAmbient () const
 
cpu_vec_xyzw GetDiffuse () const
 
cpu_vec_xyzw GetSpecular () const
 
cpu_vec_xyzw GetEmission () const
 
float GetShininess () const
 
void LightsHaveSpecular ()
 
- Public Member Functions inherited from CMaterial
 CMaterial (CGLContext &context)
 

Private Member Functions

void TellRendererMaterialChanged ()
 

Private Attributes

cpu_vec_xyzw Ambient
 
cpu_vec_xyzw Diffuse
 
cpu_vec_xyzw Specular
 
cpu_vec_xyzw Emission
 
float Shininess
 

Additional Inherited Members

- Protected Attributes inherited from CMaterial
CGLContextGLContext
 

Detailed Description

Definition at line 38 of file material.h.

Constructor & Destructor Documentation

◆ CImmMaterial()

CImmMaterial::CImmMaterial ( CGLContext context)

Definition at line 16 of file material.cpp.

Member Function Documentation

◆ TellRendererMaterialChanged()

void CImmMaterial::TellRendererMaterialChanged ( )
inlineprivate

Definition at line 42 of file material.h.

◆ SetAmbient()

void CImmMaterial::SetAmbient ( cpu_vec_xyzw  ambient)
inlinevirtual

Implements CMaterial.

Definition at line 50 of file material.h.

◆ SetDiffuse()

void CImmMaterial::SetDiffuse ( cpu_vec_xyzw  diffuse)
inlinevirtual

Implements CMaterial.

Definition at line 55 of file material.h.

◆ SetSpecular()

void CImmMaterial::SetSpecular ( cpu_vec_xyzw  specular)
virtual

Implements CMaterial.

Definition at line 26 of file material.cpp.

◆ SetEmission()

void CImmMaterial::SetEmission ( cpu_vec_xyzw  emission)
inlinevirtual

Implements CMaterial.

Definition at line 61 of file material.h.

◆ SetShininess()

void CImmMaterial::SetShininess ( float  shine)
inlinevirtual

Implements CMaterial.

Definition at line 66 of file material.h.

◆ GetAmbient()

cpu_vec_xyzw CImmMaterial::GetAmbient ( ) const
inline

Definition at line 72 of file material.h.

◆ GetDiffuse()

cpu_vec_xyzw CImmMaterial::GetDiffuse ( ) const
inline

Definition at line 73 of file material.h.

◆ GetSpecular()

cpu_vec_xyzw CImmMaterial::GetSpecular ( ) const
inline

Definition at line 74 of file material.h.

◆ GetEmission()

cpu_vec_xyzw CImmMaterial::GetEmission ( ) const
inline

Definition at line 75 of file material.h.

◆ GetShininess()

float CImmMaterial::GetShininess ( ) const
inline

Definition at line 76 of file material.h.

◆ LightsHaveSpecular()

void CImmMaterial::LightsHaveSpecular ( )

Definition at line 39 of file material.cpp.

Field Documentation

◆ Ambient

cpu_vec_xyzw CImmMaterial::Ambient
private

Definition at line 39 of file material.h.

◆ Diffuse

cpu_vec_xyzw CImmMaterial::Diffuse
private

Definition at line 39 of file material.h.

◆ Specular

cpu_vec_xyzw CImmMaterial::Specular
private

Definition at line 39 of file material.h.

◆ Emission

cpu_vec_xyzw CImmMaterial::Emission
private

Definition at line 39 of file material.h.

◆ Shininess

float CImmMaterial::Shininess
private

Definition at line 40 of file material.h.


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