AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzPlatformRender Class Reference

#include <CzPlatformRender.h>

Inheritance diagram for CzPlatformRender:
IzPlatformRender IzPlatformRender

List of all members.

Public Member Functions

int Init (int max_primitives=1024, int max_materials=100)
void Release ()
void Begin ()
void End ()
void DrawPrimitives (CzRenderPrim *prims, CzRenderMaterial *materials, int num_prims, bool single_material)
void DrawPrimitives (CzRenderPrim3 *prims, CzRenderMaterial *materials, int num_prims, bool single_material)
void DrawText (CzFontPreparedText prepared_text, CzFont *font, CzMatrix3 *transform, const CzColour &colour, CzVec4 &skew, bool filter, eCzAlphaMode alpha_mode)
void AddPrimtives (CzRenderPrim *prims, CzRenderMaterial *materials, int num_prims, bool single_material)
int AddMaterial (CzRenderMaterial *material)
void BatchDrawPrims (bool filter=true)
void SetClipRect (int x, int y, int w, int h)
void UpdateClipRect (int x, int y, int w, int h)
CzIRect GetClipRect () const
void ResetClipRect ()
bool isFullyClipped (const CzIRect &rc) const
void setClipRectModified (bool modified)
bool wasClipRectModified () const
void SetOrthoProjection (float left, float right, float bottom, float top, float nearz, float farz)
void SetPerspectiveMatrix (CzMatrix4 *mat)
void SetModelMatrix (CzMatrix4 *mat)
void SetViewMatrix (CzMatrix4 *mat)
int Init (int max_primitives=1024, int max_materials=100)
void Release ()
void Begin ()
void End ()
void DrawPrimitives (CzRenderPrim *prims, CzRenderMaterial *materials, int num_prims, bool single_material)
void DrawPrimitives (CzRenderPrim3 *prims, CzRenderMaterial *materials, int num_prims, bool single_material)
void DrawText (CzFontPreparedText prepared_text, CzFont *font, CzMatrix3 *transform, const CzColour &colour, CzVec4 &skew, bool filter, eCzAlphaMode alpha_mode)
void AddPrimtives (CzRenderPrim *prims, CzRenderMaterial *materials, int num_prims, bool single_material)
int AddMaterial (CzRenderMaterial *material)
void BatchDrawPrims (bool filter=true)
void SetClipRect (int x, int y, int w, int h)
void UpdateClipRect (int x, int y, int w, int h)
CzIRect GetClipRect () const
void ResetClipRect ()
bool isFullyClipped (const CzIRect &rc) const
void setClipRectModified (bool modified)
bool wasClipRectModified () const
void SetOrthoProjection (float left, float right, float bottom, float top, float nearz, float farz)
void SetPerspectiveMatrix (CzMatrix4 *mat)
void SetModelMatrix (CzMatrix4 *mat)
void SetViewMatrix (CzMatrix4 *mat)

Protected Attributes

CzTexture CurrentTexture
eCzAlphaMode CurrentAlphaMode
bool CurrentTiled
bool CurrentFilter
int RedundantTextureCalls
CzRenderPrim ** Primitives
int NextPrimitive
int MaxPrimitives
CzRenderMaterial ** Materials
int * MaterialUsedCounts
int NextMaterial
int MaxMaterials
int * MaterialIndices
CzVec2 ** BatchVerts
CzVec2 ** BatchUVs
CzColour ** BatchColours
uint16 ** BatchIndices
CzSVec2 ** BatchVerts
CzSVec2 ** BatchUVs

Static Protected Attributes

static bool ClipRectModified = false
static CzIRect ScreenClipRect = CzIRect(0, 0, 0, 0)
static IwGxPrimType CzToIwGxPrimType [16]

Member Function Documentation

int CzPlatformRender::AddMaterial ( CzRenderMaterial material) [virtual]

Implements IzPlatformRender.

int CzPlatformRender::AddMaterial ( CzRenderMaterial material) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::AddPrimtives ( CzRenderPrim prims,
CzRenderMaterial materials,
int  num_prims,
bool  single_material 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::AddPrimtives ( CzRenderPrim prims,
CzRenderMaterial materials,
int  num_prims,
bool  single_material 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::BatchDrawPrims ( bool  filter = true) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::BatchDrawPrims ( bool  filter = true) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::Begin ( ) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::Begin ( ) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::DrawPrimitives ( CzRenderPrim prims,
CzRenderMaterial materials,
int  num_prims,
bool  single_material 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::DrawPrimitives ( CzRenderPrim3 prims,
CzRenderMaterial materials,
int  num_prims,
bool  single_material 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::DrawPrimitives ( CzRenderPrim prims,
CzRenderMaterial materials,
int  num_prims,
bool  single_material 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::DrawPrimitives ( CzRenderPrim3 prims,
CzRenderMaterial materials,
int  num_prims,
bool  single_material 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::DrawText ( CzFontPreparedText  prepared_text,
CzFont font,
CzMatrix3 transform,
const CzColour colour,
CzVec4 skew,
bool  filter,
eCzAlphaMode  alpha_mode 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::DrawText ( CzFontPreparedText  prepared_text,
CzFont font,
CzMatrix3 transform,
const CzColour colour,
CzVec4 skew,
bool  filter,
eCzAlphaMode  alpha_mode 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::End ( ) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::End ( ) [virtual]

Implements IzPlatformRender.

CzIRect CzPlatformRender::GetClipRect ( ) const [inline, virtual]

Implements IzPlatformRender.

CzIRect CzPlatformRender::GetClipRect ( ) const [inline, virtual]

Implements IzPlatformRender.

int CzPlatformRender::Init ( int  max_primitives = 1024,
int  max_materials = 100 
) [virtual]

Implements IzPlatformRender.

int CzPlatformRender::Init ( int  max_primitives = 1024,
int  max_materials = 100 
) [virtual]

Implements IzPlatformRender.

bool CzPlatformRender::isFullyClipped ( const CzIRect rc) const [virtual]

Implements IzPlatformRender.

bool CzPlatformRender::isFullyClipped ( const CzIRect rc) const [virtual]

Implements IzPlatformRender.

void CzPlatformRender::Release ( ) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::Release ( ) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::ResetClipRect ( ) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::ResetClipRect ( ) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::SetClipRect ( int  x,
int  y,
int  w,
int  h 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::SetClipRect ( int  x,
int  y,
int  w,
int  h 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::setClipRectModified ( bool  modified) [inline, virtual]

Implements IzPlatformRender.

void CzPlatformRender::setClipRectModified ( bool  modified) [inline, virtual]

Implements IzPlatformRender.

void CzPlatformRender::SetModelMatrix ( CzMatrix4 mat) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::SetModelMatrix ( CzMatrix4 mat) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::SetOrthoProjection ( float  left,
float  right,
float  bottom,
float  top,
float  nearz,
float  farz 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::SetOrthoProjection ( float  left,
float  right,
float  bottom,
float  top,
float  nearz,
float  farz 
) [virtual]

Implements IzPlatformRender.

Implements IzPlatformRender.

Implements IzPlatformRender.

void CzPlatformRender::SetViewMatrix ( CzMatrix4 mat) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::SetViewMatrix ( CzMatrix4 mat) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::UpdateClipRect ( int  x,
int  y,
int  w,
int  h 
) [virtual]

Implements IzPlatformRender.

void CzPlatformRender::UpdateClipRect ( int  x,
int  y,
int  w,
int  h 
) [virtual]

Implements IzPlatformRender.

bool CzPlatformRender::wasClipRectModified ( ) const [inline, virtual]

Implements IzPlatformRender.

bool CzPlatformRender::wasClipRectModified ( ) const [inline, virtual]

Implements IzPlatformRender.


Member Data Documentation

uint16 ** CzPlatformRender::BatchIndices [protected]
static bool CzPlatformRender::ClipRectModified = false [static, protected]
IwGxPrimType CzPlatformRender::CzToIwGxPrimType [static, protected]
Initial value:
 
{
    IW_GX_TRI_LIST, 
    IW_GX_TRI_STRIP, 
    IW_GX_TRI_FAN, 
    IW_GX_QUAD_LIST, 
    IW_GX_QUAD_STRIP, 
    IW_GX_NPOLY_LIST, 
    IW_GX_LINE_LIST, 
    IW_GX_LINE_STRIP, 
}
static CzIRect CzPlatformRender::ScreenClipRect = CzIRect(0, 0, 0, 0) [static, protected]

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