Blender V2.61 - r43446
Public Member Functions

GPC_RenderTools Class Reference

#include <GPC_RenderTools.h>

Inheritance diagram for GPC_RenderTools:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GPC_RenderTools ()
virtual ~GPC_RenderTools ()
void EndFrame (RAS_IRasterizer *rasty)
void BeginFrame (RAS_IRasterizer *rasty)
void EnableOpenGLLights (RAS_IRasterizer *rasty)
void DisableOpenGLLights ()
void ProcessLighting (RAS_IRasterizer *rasty, bool uselights, const MT_Transform &viewmat)
void RenderText3D (int fontid, const char *text, int size, int dpi, float *color, double *mat, float aspect)
void RenderText2D (RAS_TEXT_RENDER_MODE mode, const char *text, int xco, int yco, int width, int height)
void RenderText (int mode, class RAS_IPolyMaterial *polymat, float v1[3], float v2[3], float v3[3], float v4[3], int glattrib)
void applyTransform (RAS_IRasterizer *rasty, double *oglmatrix, int objectdrawmode)
int applyLights (int objectlayer, const MT_Transform &viewmat)
void PushMatrix ()
void PopMatrix ()
bool RayHit (KX_ClientObjectInfo *client, KX_RayCast *result, void *const data)
bool NeedRayCast (KX_ClientObjectInfo *client)
virtual void MotionBlur (RAS_IRasterizer *rasterizer)
virtual void SetClientObject (RAS_IRasterizer *rasty, void *obj)

Detailed Description

Definition at line 53 of file GPC_RenderTools.h.


Constructor & Destructor Documentation

GPC_RenderTools::GPC_RenderTools ( )

Definition at line 66 of file GPC_RenderTools.cpp.

GPC_RenderTools::~GPC_RenderTools ( ) [virtual]

Definition at line 75 of file GPC_RenderTools.cpp.


Member Function Documentation

int GPC_RenderTools::applyLights ( int  objectlayer,
const MT_Transform viewmat 
)
void GPC_RenderTools::applyTransform ( RAS_IRasterizer rasty,
double *  oglmatrix,
int  objectdrawmode 
) [virtual]
void GPC_RenderTools::BeginFrame ( RAS_IRasterizer rasty) [virtual]

Implements RAS_IRenderTools.

Definition at line 79 of file GPC_RenderTools.cpp.

References DisableOpenGLLights(), RAS_IRenderTools::m_clientobject, and NULL.

void GPC_RenderTools::DisableOpenGLLights ( )

Definition at line 143 of file GPC_RenderTools.cpp.

Referenced by BeginFrame(), and ProcessLighting().

void GPC_RenderTools::EnableOpenGLLights ( RAS_IRasterizer rasty)

Definition at line 126 of file GPC_RenderTools.cpp.

References RAS_IRasterizer::GetCameraOrtho().

Referenced by ProcessLighting().

void GPC_RenderTools::EndFrame ( RAS_IRasterizer rasty) [virtual]

Implements RAS_IRenderTools.

Definition at line 88 of file GPC_RenderTools.cpp.

void GPC_RenderTools::MotionBlur ( RAS_IRasterizer rasterizer) [virtual]
bool GPC_RenderTools::NeedRayCast ( KX_ClientObjectInfo client) [inline]

Definition at line 102 of file GPC_RenderTools.h.

void GPC_RenderTools::PopMatrix ( ) [virtual]

Implements RAS_IRenderTools.

Definition at line 414 of file GPC_RenderTools.cpp.

void GPC_RenderTools::ProcessLighting ( RAS_IRasterizer rasty,
bool  uselights,
const MT_Transform viewmat 
) [virtual]
void GPC_RenderTools::PushMatrix ( ) [virtual]

Implements RAS_IRenderTools.

Definition at line 409 of file GPC_RenderTools.cpp.

bool GPC_RenderTools::RayHit ( KX_ClientObjectInfo client,
KX_RayCast result,
void *const  data 
)
void GPC_RenderTools::RenderText ( int  mode,
class RAS_IPolyMaterial polymat,
float  v1[3],
float  v2[3],
float  v3[3],
float  v4[3],
int  glattrib 
) [virtual]
void GPC_RenderTools::RenderText2D ( RAS_TEXT_RENDER_MODE  mode,
const char *  text,
int  xco,
int  yco,
int  width,
int  height 
) [virtual]

Renders 2D text string.

Parameters:
modeThe type of text
textThe string to render.
xcoPosition on the screen (origin in lower left corner).
ycoPosition on the screen (origin in lower left corner).
widthWidth of the canvas to draw to.
heightHeight of the canvas to draw to.

Implements RAS_IRenderTools.

Definition at line 316 of file GPC_RenderTools.cpp.

References BLF_draw_default(), and RAS_IRenderTools::RAS_TEXT_PADDED.

void GPC_RenderTools::RenderText3D ( int  fontid,
const char *  text,
int  size,
int  dpi,
float *  color,
double *  mat,
float  aspect 
) [virtual]

Renders 3D text string using BFL.

Parameters:
fontidThe id of the font.
textThe string to render.
sizeThe size of the text.
dpiThe resolution of the text.
colorThe color of the object.
matThe Matrix of the text object.
aspectA scaling factor to compensate for the size.

Implements RAS_IRenderTools.

Definition at line 286 of file GPC_RenderTools.cpp.

References BLF_ASPECT, BLF_aspect(), BLF_disable(), BLF_draw(), BLF_enable(), BLF_matrix(), BLF_MATRIX, BLF_position(), and BLF_size().

void GPC_RenderTools::SetClientObject ( RAS_IRasterizer rasty,
void *  obj 
) [virtual]

Reimplemented from RAS_IRenderTools.

Definition at line 155 of file GPC_RenderTools.cpp.

References RAS_IRenderTools::m_clientobject, NULL, and RAS_IRasterizer::SetFrontFace().


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