AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
#include <CzPlatformRender.h>
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] |
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.
void CzPlatformRender::SetPerspectiveMatrix | ( | CzMatrix4 * | mat | ) | [virtual] |
Implements IzPlatformRender.
void CzPlatformRender::SetPerspectiveMatrix | ( | CzMatrix4 * | mat | ) | [virtual] |
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.
CzColour ** CzPlatformRender::BatchColours [protected] |
uint16 ** CzPlatformRender::BatchIndices [protected] |
CzSVec2** CzPlatformRender::BatchUVs [protected] |
CzVec2** CzPlatformRender::BatchUVs [protected] |
CzSVec2** CzPlatformRender::BatchVerts [protected] |
CzVec2** CzPlatformRender::BatchVerts [protected] |
static bool CzPlatformRender::ClipRectModified = false [static, protected] |
eCzAlphaMode CzPlatformRender::CurrentAlphaMode [protected] |
bool CzPlatformRender::CurrentFilter [protected] |
CzTexture CzPlatformRender::CurrentTexture [protected] |
bool CzPlatformRender::CurrentTiled [protected] |
IwGxPrimType CzPlatformRender::CzToIwGxPrimType [static, protected] |
{ 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, }
int * CzPlatformRender::MaterialIndices [protected] |
CzRenderMaterial ** CzPlatformRender::Materials [protected] |
int * CzPlatformRender::MaterialUsedCounts [protected] |
int CzPlatformRender::MaxMaterials [protected] |
int CzPlatformRender::MaxPrimitives [protected] |
int CzPlatformRender::NextMaterial [protected] |
int CzPlatformRender::NextPrimitive [protected] |
CzRenderPrim ** CzPlatformRender::Primitives [protected] |
int CzPlatformRender::RedundantTextureCalls [protected] |
static CzIRect CzPlatformRender::ScreenClipRect = CzIRect(0, 0, 0, 0) [static, protected] |