Blender V2.61 - r43446
Public Types | Public Member Functions | Protected Attributes

RAS_IRenderTools Class Reference

#include <RAS_IRenderTools.h>

Inheritance diagram for RAS_IRenderTools:
Inheritance graph
[legend]

List of all members.

Public Types

enum  RAS_TEXT_RENDER_MODE { RAS_TEXT_RENDER_NODEF = 0, RAS_TEXT_NORMAL, RAS_TEXT_PADDED, RAS_TEXT_MAX }

Public Member Functions

 RAS_IRenderTools ()
virtual ~RAS_IRenderTools ()
virtual void BeginFrame (RAS_IRasterizer *rasty)=0
virtual void EndFrame (RAS_IRasterizer *rasty)=0
virtual void applyTransform (class RAS_IRasterizer *rasty, double *oglmatrix, int drawingmode)=0
virtual void RenderText3D (int fontid, const char *text, int size, int dpi, float *color, double *mat, float aspect)=0
virtual void RenderText2D (RAS_TEXT_RENDER_MODE mode, const char *text, int xco, int yco, int width, int height)=0
virtual void RenderText (int mode, RAS_IPolyMaterial *polymat, float v1[3], float v2[3], float v3[3], float v4[3], int glattrib)=0
virtual void ProcessLighting (RAS_IRasterizer *rasty, bool uselights, const MT_Transform &trans)=0
virtual void SetClientObject (RAS_IRasterizer *rasty, void *obj)
void SetAuxilaryClientInfo (void *inf)
virtual void PushMatrix ()=0
virtual void PopMatrix ()=0
virtual void AddLight (struct RAS_LightObject *lightobject)
virtual void RemoveLight (struct RAS_LightObject *lightobject)
virtual void MotionBlur (RAS_IRasterizer *rasterizer)=0

Protected Attributes

void * m_clientobject
void * m_auxilaryClientInfo
std::vector< struct
RAS_LightObject * > 
m_lights
RAS_2DFilterManager m_filtermanager

Detailed Description

Definition at line 50 of file RAS_IRenderTools.h.


Member Enumeration Documentation

Enumerator:
RAS_TEXT_RENDER_NODEF 
RAS_TEXT_NORMAL 
RAS_TEXT_PADDED 
RAS_TEXT_MAX 

Definition at line 62 of file RAS_IRenderTools.h.


Constructor & Destructor Documentation

RAS_IRenderTools::RAS_IRenderTools ( ) [inline]

Definition at line 69 of file RAS_IRenderTools.h.

virtual RAS_IRenderTools::~RAS_IRenderTools ( ) [inline, virtual]

Definition at line 76 of file RAS_IRenderTools.h.


Member Function Documentation

void RAS_IRenderTools::AddLight ( struct RAS_LightObject lightobject) [virtual]

Definition at line 46 of file RAS_IRenderTools.cpp.

References m_lights.

Referenced by KX_LightObject::GetReplica(), and KX_LightObject::KX_LightObject().

virtual void RAS_IRenderTools::applyTransform ( class RAS_IRasterizer rasty,
double *  oglmatrix,
int  drawingmode 
) [pure virtual]
virtual void RAS_IRenderTools::BeginFrame ( RAS_IRasterizer rasty) [pure virtual]
virtual void RAS_IRenderTools::EndFrame ( RAS_IRasterizer rasty) [pure virtual]
virtual void RAS_IRenderTools::MotionBlur ( RAS_IRasterizer rasterizer) [pure virtual]
virtual void RAS_IRenderTools::PopMatrix ( ) [pure virtual]
virtual void RAS_IRenderTools::ProcessLighting ( RAS_IRasterizer rasty,
bool  uselights,
const MT_Transform trans 
) [pure virtual]
virtual void RAS_IRenderTools::PushMatrix ( ) [pure virtual]
void RAS_IRenderTools::RemoveLight ( struct RAS_LightObject lightobject) [virtual]

Definition at line 51 of file RAS_IRenderTools.cpp.

References find(), and m_lights.

Referenced by KX_LightObject::~KX_LightObject().

virtual void RAS_IRenderTools::RenderText ( int  mode,
RAS_IPolyMaterial polymat,
float  v1[3],
float  v2[3],
float  v3[3],
float  v4[3],
int  glattrib 
) [pure virtual]
virtual void RAS_IRenderTools::RenderText2D ( RAS_TEXT_RENDER_MODE  mode,
const char *  text,
int  xco,
int  yco,
int  width,
int  height 
) [pure 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.

Implemented in KX_BlenderRenderTools, and GPC_RenderTools.

virtual void RAS_IRenderTools::RenderText3D ( int  fontid,
const char *  text,
int  size,
int  dpi,
float *  color,
double *  mat,
float  aspect 
) [pure 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.

Implemented in KX_BlenderRenderTools, and GPC_RenderTools.

Referenced by KX_FontObject::DrawText().

void RAS_IRenderTools::SetAuxilaryClientInfo ( void *  inf)
void RAS_IRenderTools::SetClientObject ( RAS_IRasterizer rasty,
void *  obj 
) [virtual]

Reimplemented in KX_BlenderRenderTools, and GPC_RenderTools.

Definition at line 35 of file RAS_IRenderTools.cpp.

References m_clientobject.

Referenced by RAS_BucketManager::Renderbuckets().


Member Data Documentation

Definition at line 59 of file RAS_IRenderTools.h.

std::vector<struct RAS_LightObject*> RAS_IRenderTools::m_lights [protected]

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