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

Public Member Functions

 CMaterialManager (CGLContext &context)
 
CMaterialGetCurMaterial ()
 
CImmMaterialGetImmMaterial ()
 
CDListMaterialGetDListMaterial ()
 
cpu_vec_xyzw GetCurColor () const
 
GLenum GetColorMaterialMode () const
 
bool GetColorMaterialEnabled () const
 
void Color (cpu_vec_xyzw color)
 
void SetUseColorMaterial (bool yesNo)
 
void SetColorMaterialMode (GLenum mode)
 
void BeginDListDef ()
 
void EndDListDef ()
 

Private Attributes

CGLContextGLContext
 
CImmMaterial ImmMaterial
 
CDListMaterial DListMaterial
 
CMaterialCurMaterial
 
cpu_vec_xyzw CurColor
 
GLenum ColorMaterialMode
 
bool UseColorMaterial
 
bool InDListDef
 

Detailed Description

Definition at line 100 of file material.h.

Constructor & Destructor Documentation

◆ CMaterialManager()

CMaterialManager::CMaterialManager ( CGLContext context)
inline

Definition at line 113 of file material.h.

Member Function Documentation

◆ GetCurMaterial()

CMaterial & CMaterialManager::GetCurMaterial ( )
inline

Definition at line 126 of file material.h.

◆ GetImmMaterial()

CImmMaterial & CMaterialManager::GetImmMaterial ( )
inline

Definition at line 127 of file material.h.

◆ GetDListMaterial()

CDListMaterial & CMaterialManager::GetDListMaterial ( )
inline

Definition at line 128 of file material.h.

◆ GetCurColor()

cpu_vec_xyzw CMaterialManager::GetCurColor ( ) const
inline

Definition at line 129 of file material.h.

◆ GetColorMaterialMode()

GLenum CMaterialManager::GetColorMaterialMode ( ) const
inline

Definition at line 130 of file material.h.

◆ GetColorMaterialEnabled()

bool CMaterialManager::GetColorMaterialEnabled ( ) const
inline

Definition at line 131 of file material.h.

◆ Color()

void CMaterialManager::Color ( cpu_vec_xyzw  color)

Definition at line 108 of file material.cpp.

◆ SetUseColorMaterial()

void CMaterialManager::SetUseColorMaterial ( bool  yesNo)

Definition at line 150 of file material.cpp.

◆ SetColorMaterialMode()

void CMaterialManager::SetColorMaterialMode ( GLenum  mode)

Definition at line 179 of file material.cpp.

◆ BeginDListDef()

void CMaterialManager::BeginDListDef ( )
inline

Definition at line 137 of file material.h.

◆ EndDListDef()

void CMaterialManager::EndDListDef ( )
inline

Definition at line 142 of file material.h.

Field Documentation

◆ GLContext

CGLContext& CMaterialManager::GLContext
private

Definition at line 101 of file material.h.

◆ ImmMaterial

CImmMaterial CMaterialManager::ImmMaterial
private

Definition at line 103 of file material.h.

◆ DListMaterial

CDListMaterial CMaterialManager::DListMaterial
private

Definition at line 104 of file material.h.

◆ CurMaterial

CMaterial* CMaterialManager::CurMaterial
private

Definition at line 105 of file material.h.

◆ CurColor

cpu_vec_xyzw CMaterialManager::CurColor
private

Definition at line 107 of file material.h.

◆ ColorMaterialMode

GLenum CMaterialManager::ColorMaterialMode
private

Definition at line 108 of file material.h.

◆ UseColorMaterial

bool CMaterialManager::UseColorMaterial
private

Definition at line 109 of file material.h.

◆ InDListDef

bool CMaterialManager::InDListDef
private

Definition at line 110 of file material.h.


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