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

drawcontext.cpp File Reference

#include "ps2s/drawenv.h"
#include "GL/ps2gl.h"
#include "ps2gl/debug.h"
#include "ps2gl/dlist.h"
#include "ps2gl/immgmanager.h"
#include "ps2gl/dlgmanager.h"
#include "ps2gl/drawcontext.h"
#include "ps2gl/clear.h"
#include "ps2gl/matrix.h"

Go to the source code of this file.

Compounds

class  CSetAlphaFuncCmd
class  CSetAlphaTestEnabledCmd
class  CSetBlendEnabledCmd
class  CSetBlendMode
class  CSetCullFaceDir
class  CSetDepthWriteEnabledCmd
class  CSetDoClippingCmd
class  CSetDoCullFaceCmd
class  CSetDoSmoothShadingCmd
class  CSetDrawBuffers
class  CSetFrameBufferDrawMaskCmd
class  CSetInterlacingOffsetCmd
class  CSetRescaleNormalsCmd

Defines

#define mCombineBlendFactors(_src, _dest)   ((unsigned int)(_src) << 16) | (unsigned int)(_dest)

Functions

void glDepthFunc (GLenum func)
void glDrawBuffer (GLenum mode)
void glClipPlane (GLenum plane, const GLdouble *equation)
void glBlendFunc (GLenum sfactor, GLenum dfactor)
void glAlphaFunc (GLenum func, GLclampf ref)
void glDepthMask (GLboolean enabled)
void glShadeModel (GLenum mode)
void glCullFace (GLenum mode)
void glColorMask (GLboolean r_enabled, GLboolean g_enabled, GLboolean b_enabled, GLboolean a_enabled)
void glScissor (int x, int y, int width, int height)
void glClearAccum (float red, float green, float blue, float alpha)
void glClearStencil (int s)
void glPolygonMode (GLenum, GLenum mode)
void pglSetDrawBuffers (int interlaced, pgl_area_handle_t frame0_mem, pgl_area_handle_t frame1_mem, pgl_area_handle_t depth_mem)
 Set the area(s) in gs mem to draw. More...

void pglSetInterlacingOffset (float yPixels)


Define Documentation

#define mCombineBlendFactors _src,
_dest       ((unsigned int)(_src) << 16) | (unsigned int)(_dest)
 

Definition at line 280 of file drawcontext.cpp.

Referenced by CImmDrawContext::SetBlendMode().


Function Documentation

void glAlphaFunc GLenum    func,
GLclampf    ref
 

Definition at line 647 of file drawcontext.cpp.

void glBlendFunc GLenum    sfactor,
GLenum    dfactor
 

Definition at line 640 of file drawcontext.cpp.

void glClearAccum float    red,
float    green,
float    blue,
float    alpha
 

Definition at line 690 of file drawcontext.cpp.

void glClearStencil int    s
 

Definition at line 695 of file drawcontext.cpp.

void glClipPlane GLenum    plane,
const GLdouble   equation
 

Definition at line 633 of file drawcontext.cpp.

void glColorMask GLboolean    red,
GLboolean    green,
GLboolean    blue,
GLboolean    alpha
 

Definition at line 673 of file drawcontext.cpp.

void glCullFace GLenum    mode
 

Definition at line 666 of file drawcontext.cpp.

void glDepthFunc GLenum    func
 

Definition at line 623 of file drawcontext.cpp.

void glDepthMask GLboolean    flag
 

Definition at line 654 of file drawcontext.cpp.

void glDrawBuffer GLenum    mode
 

Definition at line 628 of file drawcontext.cpp.

void glPolygonMode GLenum    face,
GLenum    mode
 

Definition at line 700 of file drawcontext.cpp.

void glScissor int    x,
int    y,
int    width,
int    height
 

Definition at line 685 of file drawcontext.cpp.

void glShadeModel GLenum    mode
 

Definition at line 660 of file drawcontext.cpp.


ps2gl version cvs