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

Public Member Functions

 CImmDrawContext (CGLContext &context)
 
GS::CDrawEnv & GetDrawEnv ()
 
void SwapBuffers (bool fieldIsEven)
 
CClearEnvGetClearEnv ()
 
const cpu_mat_44 & GetVertexXform ()
 
void SetVertexXformValid (bool valid)
 
int GetFBWidth () const
 
int GetFBHeight () const
 
int GetDepthBits () const
 
void SetDepthBits (int depth)
 
void SetBlendMode (GLenum source, GLenum dest)
 
void SetAlphaFunc (GLenum func, GLclampf ref)
 
void SetDepthFunc (GLenum func)
 
bool GetDoSmoothShading () const
 
void SetDoSmoothShading (bool yesNo)
 
bool GetDoClipping () const
 
void SetDoClipping (bool clip)
 
bool GetDoCullFace () const
 
void SetDoCullFace (bool cull)
 
int GetCullFaceDir () const
 
void SetCullFaceDir (int direction)
 
bool GetBlendEnabled () const
 
void SetBlendEnabled (bool enabled)
 
bool GetAlphaTestEnabled () const
 
void SetAlphaTestEnabled (bool enabled)
 
bool GetDepthTestEnabled () const
 
void SetDepthTestEnabled (bool enabled)
 
void SetInterlacingOffset (float yPixels)
 
void SetDepthWriteEnabled (bool enabled)
 
void SetFrameBufferDrawMask (unsigned int mask)
 
GLenum GetPolygonMode () const
 
void SetPolygonMode (GLenum mode)
 
bool GetRescaleNormals () const
 
void SetRescaleNormals (bool rescale)
 
void SetDrawBuffers (bool interlaced, GS::CMemArea *frame0Mem, GS::CMemArea *frame1Mem, GS::CMemArea *depthMem)
 
- Public Member Functions inherited from CDrawContext
 CDrawContext (CGLContext &context)
 

Data Fields

GS::CDrawEnv * DrawEnv
 
GS::CMemArea * Frame0Mem
 
GS::CMemArea * Frame1Mem
 
GS::CMemArea * ZBufMem
 
GS::CMemArea * CurFrameMem
 
GS::CMemArea * LastFrameMem
 
CClearEnvClearEnv
 
bool FrameIsDblBuffered
 
bool DoSmoothShading
 
bool DoClipping
 
bool DoCullFace
 
int CullFaceDir
 
bool RescaleNormals
 
bool BlendIsEnabled
 
bool AlphaTestIsEnabled
 
bool DepthTestIsEnabled
 
bool DrawInterlaced
 
GLenum PolyMode
 
int DepthBits
 
cpu_mat_44 VertexXform
 
cpu_mat_44 GSScale
 
bool IsVertexXformValid
 
int Width
 
int Height
 

Additional Inherited Members

- Protected Attributes inherited from CDrawContext
CGLContextGLContext
 

Detailed Description

Definition at line 70 of file drawcontext.h.

Constructor & Destructor Documentation

◆ CImmDrawContext()

CImmDrawContext::CImmDrawContext ( CGLContext context)

Definition at line 23 of file drawcontext.cpp.

◆ ~CImmDrawContext()

CImmDrawContext::~CImmDrawContext ( )
virtual

Definition at line 58 of file drawcontext.cpp.

Member Function Documentation

◆ GetDrawEnv()

GS::CDrawEnv & CImmDrawContext::GetDrawEnv ( )
inline

Definition at line 105 of file drawcontext.h.

◆ SwapBuffers()

void CImmDrawContext::SwapBuffers ( bool  fieldIsEven)

Definition at line 138 of file drawcontext.cpp.

◆ GetClearEnv()

CClearEnv & CImmDrawContext::GetClearEnv ( )
inline

Definition at line 108 of file drawcontext.h.

◆ GetVertexXform()

const cpu_mat_44 & CImmDrawContext::GetVertexXform ( )

Definition at line 165 of file drawcontext.cpp.

◆ SetVertexXformValid()

void CImmDrawContext::SetVertexXformValid ( bool  valid)
inline

Definition at line 111 of file drawcontext.h.

◆ GetFBWidth()

int CImmDrawContext::GetFBWidth ( ) const
inline

Definition at line 118 of file drawcontext.h.

◆ GetFBHeight()

int CImmDrawContext::GetFBHeight ( ) const
inline

Definition at line 119 of file drawcontext.h.

◆ GetDepthBits()

int CImmDrawContext::GetDepthBits ( ) const
inline

Definition at line 121 of file drawcontext.h.

◆ SetDepthBits()

void CImmDrawContext::SetDepthBits ( int  depth)
inline

Definition at line 122 of file drawcontext.h.

◆ SetBlendMode()

void CImmDrawContext::SetBlendMode ( GLenum  source,
GLenum  dest 
)
virtual

Implements CDrawContext.

Definition at line 292 of file drawcontext.cpp.

◆ SetAlphaFunc()

void CImmDrawContext::SetAlphaFunc ( GLenum  func,
GLclampf  ref 
)
virtual

Implements CDrawContext.

Definition at line 319 of file drawcontext.cpp.

◆ SetDepthFunc()

void CImmDrawContext::SetDepthFunc ( GLenum  func)
virtual

Implements CDrawContext.

Definition at line 368 of file drawcontext.cpp.

◆ GetDoSmoothShading()

bool CImmDrawContext::GetDoSmoothShading ( ) const
inline

Definition at line 130 of file drawcontext.h.

◆ SetDoSmoothShading()

void CImmDrawContext::SetDoSmoothShading ( bool  yesNo)
virtual

Implements CDrawContext.

Definition at line 177 of file drawcontext.cpp.

◆ GetDoClipping()

bool CImmDrawContext::GetDoClipping ( ) const
inline

Definition at line 133 of file drawcontext.h.

◆ SetDoClipping()

void CImmDrawContext::SetDoClipping ( bool  clip)
virtual

Implements CDrawContext.

Definition at line 185 of file drawcontext.cpp.

◆ GetDoCullFace()

bool CImmDrawContext::GetDoCullFace ( ) const
inline

Definition at line 136 of file drawcontext.h.

◆ SetDoCullFace()

void CImmDrawContext::SetDoCullFace ( bool  cull)
virtual

Implements CDrawContext.

Definition at line 194 of file drawcontext.cpp.

◆ GetCullFaceDir()

int CImmDrawContext::GetCullFaceDir ( ) const
inline

Definition at line 139 of file drawcontext.h.

◆ SetCullFaceDir()

void CImmDrawContext::SetCullFaceDir ( int  direction)
virtual

Implements CDrawContext.

Definition at line 203 of file drawcontext.cpp.

◆ GetBlendEnabled()

bool CImmDrawContext::GetBlendEnabled ( ) const
inline

Definition at line 142 of file drawcontext.h.

◆ SetBlendEnabled()

void CImmDrawContext::SetBlendEnabled ( bool  enabled)
virtual

Implements CDrawContext.

Definition at line 211 of file drawcontext.cpp.

◆ GetAlphaTestEnabled()

bool CImmDrawContext::GetAlphaTestEnabled ( ) const
inline

Definition at line 145 of file drawcontext.h.

◆ SetAlphaTestEnabled()

void CImmDrawContext::SetAlphaTestEnabled ( bool  enabled)
virtual

Implements CDrawContext.

Definition at line 247 of file drawcontext.cpp.

◆ GetDepthTestEnabled()

bool CImmDrawContext::GetDepthTestEnabled ( ) const
inline

Definition at line 148 of file drawcontext.h.

◆ SetDepthTestEnabled()

void CImmDrawContext::SetDepthTestEnabled ( bool  enabled)
virtual

Implements CDrawContext.

Definition at line 262 of file drawcontext.cpp.

◆ SetInterlacingOffset()

void CImmDrawContext::SetInterlacingOffset ( float  yPixels)
virtual

Implements CDrawContext.

Definition at line 277 of file drawcontext.cpp.

◆ SetDepthWriteEnabled()

void CImmDrawContext::SetDepthWriteEnabled ( bool  enabled)
virtual

Implements CDrawContext.

Definition at line 227 of file drawcontext.cpp.

◆ SetFrameBufferDrawMask()

void CImmDrawContext::SetFrameBufferDrawMask ( unsigned int  mask)
virtual

Implements CDrawContext.

Definition at line 233 of file drawcontext.cpp.

◆ GetPolygonMode()

GLenum CImmDrawContext::GetPolygonMode ( ) const
inline

Definition at line 156 of file drawcontext.h.

◆ SetPolygonMode()

void CImmDrawContext::SetPolygonMode ( GLenum  mode)
virtual

Implements CDrawContext.

Definition at line 239 of file drawcontext.cpp.

◆ GetRescaleNormals()

bool CImmDrawContext::GetRescaleNormals ( ) const
inline

Definition at line 159 of file drawcontext.h.

◆ SetRescaleNormals()

void CImmDrawContext::SetRescaleNormals ( bool  rescale)
virtual

Implements CDrawContext.

Definition at line 219 of file drawcontext.cpp.

◆ SetDrawBuffers()

void CImmDrawContext::SetDrawBuffers ( bool  interlaced,
GS::CMemArea *  frame0Mem,
GS::CMemArea *  frame1Mem,
GS::CMemArea *  depthMem 
)
virtual

Implements CDrawContext.

Definition at line 67 of file drawcontext.cpp.

Field Documentation

◆ DrawEnv

GS::CDrawEnv* CImmDrawContext::DrawEnv

Definition at line 72 of file drawcontext.h.

◆ Frame0Mem

GS::CMemArea* CImmDrawContext::Frame0Mem

Definition at line 74 of file drawcontext.h.

◆ Frame1Mem

GS::CMemArea * CImmDrawContext::Frame1Mem

Definition at line 74 of file drawcontext.h.

◆ ZBufMem

GS::CMemArea * CImmDrawContext::ZBufMem

Definition at line 74 of file drawcontext.h.

◆ CurFrameMem

GS::CMemArea* CImmDrawContext::CurFrameMem

Definition at line 75 of file drawcontext.h.

◆ LastFrameMem

GS::CMemArea * CImmDrawContext::LastFrameMem

Definition at line 75 of file drawcontext.h.

◆ ClearEnv

CClearEnv* CImmDrawContext::ClearEnv

Definition at line 77 of file drawcontext.h.

◆ FrameIsDblBuffered

bool CImmDrawContext::FrameIsDblBuffered

Definition at line 79 of file drawcontext.h.

◆ DoSmoothShading

bool CImmDrawContext::DoSmoothShading

Definition at line 82 of file drawcontext.h.

◆ DoClipping

bool CImmDrawContext::DoClipping

Definition at line 83 of file drawcontext.h.

◆ DoCullFace

bool CImmDrawContext::DoCullFace

Definition at line 84 of file drawcontext.h.

◆ CullFaceDir

int CImmDrawContext::CullFaceDir

Definition at line 85 of file drawcontext.h.

◆ RescaleNormals

bool CImmDrawContext::RescaleNormals

Definition at line 86 of file drawcontext.h.

◆ BlendIsEnabled

bool CImmDrawContext::BlendIsEnabled

Definition at line 87 of file drawcontext.h.

◆ AlphaTestIsEnabled

bool CImmDrawContext::AlphaTestIsEnabled

Definition at line 88 of file drawcontext.h.

◆ DepthTestIsEnabled

bool CImmDrawContext::DepthTestIsEnabled

Definition at line 89 of file drawcontext.h.

◆ DrawInterlaced

bool CImmDrawContext::DrawInterlaced

Definition at line 90 of file drawcontext.h.

◆ PolyMode

GLenum CImmDrawContext::PolyMode

Definition at line 91 of file drawcontext.h.

◆ DepthBits

int CImmDrawContext::DepthBits

Definition at line 92 of file drawcontext.h.

◆ VertexXform

cpu_mat_44 CImmDrawContext::VertexXform

Definition at line 95 of file drawcontext.h.

◆ GSScale

cpu_mat_44 CImmDrawContext::GSScale

Definition at line 96 of file drawcontext.h.

◆ IsVertexXformValid

bool CImmDrawContext::IsVertexXformValid

Definition at line 97 of file drawcontext.h.

◆ Width

int CImmDrawContext::Width

Definition at line 99 of file drawcontext.h.

◆ Height

int CImmDrawContext::Height

Definition at line 99 of file drawcontext.h.


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