PS2GL
OpenGL*-like API for the PS2
|
Public Member Functions | |
CImmDrawContext (CGLContext &context) | |
GS::CDrawEnv & | GetDrawEnv () |
void | SwapBuffers (bool fieldIsEven) |
CClearEnv & | GetClearEnv () |
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) |
![]() | |
CDrawContext (CGLContext &context) | |
virtual void | SetDoSmoothShading (bool yesNo)=0 |
virtual void | SetDoClipping (bool clip)=0 |
virtual void | SetDoCullFace (bool cull)=0 |
virtual void | SetCullFaceDir (int direction)=0 |
virtual void | SetRescaleNormals (bool rescale)=0 |
virtual void | SetBlendEnabled (bool enabled)=0 |
virtual void | SetDepthWriteEnabled (bool enabled)=0 |
virtual void | SetFrameBufferDrawMask (unsigned int mask)=0 |
virtual void | SetAlphaTestEnabled (bool enabled)=0 |
virtual void | SetDepthTestEnabled (bool enabled)=0 |
virtual void | SetInterlacingOffset (float yPixels)=0 |
virtual void | SetPolygonMode (GLenum mode)=0 |
virtual void | SetBlendMode (GLenum source, GLenum dest)=0 |
virtual void | SetAlphaFunc (GLenum func, GLclampf ref)=0 |
virtual void | SetDepthFunc (GLenum func)=0 |
virtual void | SetDrawBuffers (bool interlaced, GS::CMemArea *frame0Mem, GS::CMemArea *frame1Mem, GS::CMemArea *depthMem)=0 |
Data Fields | |
GS::CDrawEnv * | DrawEnv |
GS::CMemArea * | Frame0Mem |
GS::CMemArea * | Frame1Mem |
GS::CMemArea * | ZBufMem |
GS::CMemArea * | CurFrameMem |
GS::CMemArea * | LastFrameMem |
CClearEnv * | ClearEnv |
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 | |
![]() | |
CGLContext & | GLContext |
Definition at line 70 of file drawcontext.h.
CImmDrawContext::CImmDrawContext | ( | CGLContext & | context | ) |
Definition at line 23 of file drawcontext.cpp.
|
virtual |
Definition at line 58 of file drawcontext.cpp.
|
inline |
Definition at line 105 of file drawcontext.h.
void CImmDrawContext::SwapBuffers | ( | bool | fieldIsEven | ) |
Definition at line 138 of file drawcontext.cpp.
|
inline |
Definition at line 108 of file drawcontext.h.
const cpu_mat_44 & CImmDrawContext::GetVertexXform | ( | ) |
Definition at line 165 of file drawcontext.cpp.
|
inline |
Definition at line 111 of file drawcontext.h.
|
inline |
Definition at line 118 of file drawcontext.h.
|
inline |
Definition at line 119 of file drawcontext.h.
|
inline |
Definition at line 121 of file drawcontext.h.
|
inline |
Definition at line 122 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 292 of file drawcontext.cpp.
|
virtual |
Implements CDrawContext.
Definition at line 319 of file drawcontext.cpp.
|
virtual |
Implements CDrawContext.
Definition at line 368 of file drawcontext.cpp.
|
inline |
Definition at line 130 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 177 of file drawcontext.cpp.
|
inline |
Definition at line 133 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 185 of file drawcontext.cpp.
|
inline |
Definition at line 136 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 194 of file drawcontext.cpp.
|
inline |
Definition at line 139 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 203 of file drawcontext.cpp.
|
inline |
Definition at line 142 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 211 of file drawcontext.cpp.
|
inline |
Definition at line 145 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 247 of file drawcontext.cpp.
|
inline |
Definition at line 148 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 262 of file drawcontext.cpp.
|
virtual |
Implements CDrawContext.
Definition at line 277 of file drawcontext.cpp.
|
virtual |
Implements CDrawContext.
Definition at line 227 of file drawcontext.cpp.
|
virtual |
Implements CDrawContext.
Definition at line 233 of file drawcontext.cpp.
|
inline |
Definition at line 156 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 239 of file drawcontext.cpp.
|
inline |
Definition at line 159 of file drawcontext.h.
|
virtual |
Implements CDrawContext.
Definition at line 219 of file drawcontext.cpp.
|
virtual |
Implements CDrawContext.
Definition at line 67 of file drawcontext.cpp.
GS::CDrawEnv* CImmDrawContext::DrawEnv |
Definition at line 72 of file drawcontext.h.
GS::CMemArea* CImmDrawContext::Frame0Mem |
Definition at line 74 of file drawcontext.h.
GS::CMemArea * CImmDrawContext::Frame1Mem |
Definition at line 74 of file drawcontext.h.
GS::CMemArea * CImmDrawContext::ZBufMem |
Definition at line 74 of file drawcontext.h.
GS::CMemArea* CImmDrawContext::CurFrameMem |
Definition at line 75 of file drawcontext.h.
GS::CMemArea * CImmDrawContext::LastFrameMem |
Definition at line 75 of file drawcontext.h.
CClearEnv* CImmDrawContext::ClearEnv |
Definition at line 77 of file drawcontext.h.
bool CImmDrawContext::FrameIsDblBuffered |
Definition at line 79 of file drawcontext.h.
bool CImmDrawContext::DoSmoothShading |
Definition at line 82 of file drawcontext.h.
bool CImmDrawContext::DoClipping |
Definition at line 83 of file drawcontext.h.
bool CImmDrawContext::DoCullFace |
Definition at line 84 of file drawcontext.h.
int CImmDrawContext::CullFaceDir |
Definition at line 85 of file drawcontext.h.
bool CImmDrawContext::RescaleNormals |
Definition at line 86 of file drawcontext.h.
bool CImmDrawContext::BlendIsEnabled |
Definition at line 87 of file drawcontext.h.
bool CImmDrawContext::AlphaTestIsEnabled |
Definition at line 88 of file drawcontext.h.
bool CImmDrawContext::DepthTestIsEnabled |
Definition at line 89 of file drawcontext.h.
bool CImmDrawContext::DrawInterlaced |
Definition at line 90 of file drawcontext.h.
GLenum CImmDrawContext::PolyMode |
Definition at line 91 of file drawcontext.h.
int CImmDrawContext::DepthBits |
Definition at line 92 of file drawcontext.h.
cpu_mat_44 CImmDrawContext::VertexXform |
Definition at line 95 of file drawcontext.h.
cpu_mat_44 CImmDrawContext::GSScale |
Definition at line 96 of file drawcontext.h.
bool CImmDrawContext::IsVertexXformValid |
Definition at line 97 of file drawcontext.h.
int CImmDrawContext::Width |
Definition at line 99 of file drawcontext.h.
int CImmDrawContext::Height |
Definition at line 99 of file drawcontext.h.