KRender Class Reference

Inheritance diagram for KRender:
[legend]
Collaboration diagram for KRender:
[legend]
List of all members.

Public Member Functions

 KRender (KGame *pGame)
virtual ~KRender ()
virtual bool Init (HWND hWnd, u32 Adapter, u32 Width, u32 Height, u32 Bpp, bool bFullScreen, u32 RefreshRate)
virtual bool InitRender ()
virtual void End ()
virtual bool Reset (HWND hWnd, u32 Adapter, u32 Width, u32 Height, u32 Bpp, bool bFullScreen, u32 RefreshRate)
virtual void EndScene ()
virtual void SetViewPort (u32 X, u32 Y, u32 Width, u32 Height)
virtual void InitScene ()
virtual bool IsNeedToSwapRgb ()
virtual KMatrix GetWorldMatrix ()
virtual KMatrix GetViewMatrix ()
virtual KMatrix GetProjectionMatrix ()
virtual void DrawTriangles (KRenderFace &Face)
virtual void FlushTriangles ()
void ResetRenderState ()
void SetShader (KSHADER hShader=KSHADER_NO, KTEXTURE hLightMap=KTEXTURE_NO, s32 bForceVertexColor=false)
void DrawQuad (s32 x, s32 y, s32 sx, s32 sy, KSHADER hShader=KSHADER_NO, KCOLOR Color=KRGBA(255, 255, 255, 255), KCOLOR Specular=KRGBA(0, 0, 0, 0), KRMODE RenderMode=KRM_NORMAL, float *pTU=NULL, float *pTV=NULL)
void DrawText (KPt &Pos, char *pText, KCOLOR Color=KRGBA(255, 255, 255, 255), float Size=1.0f)
void SetCamera (KCamera *pCamera)
KCameraGetCamera ()
KFontGetpFont ()
KFontSetpFont (KFont *pFont=NULL)
KTextureBankGetpTextureBank ()
KShaderBankGetpShaderBank ()
KLightBankGetpLightBank ()
HWND GetWindow ()
u32 GetWidth ()
u32 GetHeight ()
u32 GetnPoly ()
u32 GetnPrimitive ()
void SetClear (bool bClear)
void SetClearColor (KCOLOR ClearColor)
bool IsClear ()
KCOLOR GetClearColor ()
bool IsFullScreen ()
void GetPickVector (KPt &PickPoint, KVector *PickRayOrig, KVector *PickRayDir)
KVertexBufferCreateVertexBuffer (u32 MaxVertex, KRVERTEXTYPE VertexType)
void DestroyVertexBuffer (KVertexBuffer *pVertexBuffer)
KIndexBufferCreateIndexBuffer (u32 MaxIndex)
void DestroyIndexBuffer (KIndexBuffer *pIndexBuffer)
void AllocAllBuffers ()
void ReleaseAllBuffers ()
KGameGetpGame ()
char * GetpFontName ()
void SetBlendMatrix (KMatrix *pMatrix, u32 nMatrix)
void DrawBBox (KVector pBBox[8])
void ShowMemorySize ()
void SetVertexShader (KRVERTEXSHADER VertexShader)
KRenderStatsGetpStats ()

Public Attributes

KMatrix m_pBlendMatrix [RENDER_MAX_BLEND_MATRIX]
u32 m_nBlendMatrix

Protected Member Functions

virtual KVertexBufferAllocVertexBuffer (u32 nVertex, KRVERTEXTYPE VertexType)
virtual KIndexBufferAllocIndexBuffer (u32 MaxIndex)
u32 GetnLayers ()
void SetLayer (KVertexBuffer *pVertexBuffer, u32 Layer)
void ComputeVertexShader (KVertexBuffer *pVertexBuffer, KShaderStage *pStageUV1, KShaderStage *pStageUV2)
void ComputeVertexShaderStage (KVertexBuffer *pVertexBuffer, KShaderStage *pStage)
float GetStretchFactor (KShaderTcMod *pStage)
KCOLOR GetRgbGenFuncColor (KShaderStage *pStage)
bool LockAllBuffers ()

Static Protected Member Functions

static KRTOPERATION GetTextureOpByBlend (KRBLEND Source, KRBLEND Dest)
static void CommandDumpShaders (KStr Argument, void *pContext)
static void CommandDumpTextures (KStr Argument, void *pContext)

Protected Attributes

KGamem_pGame
RECT m_OldWndPos
HWND m_hWnd
u32 m_Adapter
u32 m_Width
u32 m_Height
u32 m_Bpp
u32 m_RefreshRate
bool m_bFullScreen
u32 m_nAdapter
KTextureBankm_pTextureBank
KShaderBankm_pShaderBank
KLightBankm_pLightBank
KShaderm_pCurrentShader
KFontm_pFont
KFontm_pCurrentFont
KTEXTURE m_hCurrentLightMap
KSHADER m_hCurrentShader
s32 m_bForceVertexColor
u32 m_MaxStages
u32 m_nStages
KCameram_pCamera
KRect m_Viewport
u32 m_nPoly
u32 m_nPrimitive
KCOLOR m_ClearColor
bool m_bClear
char * m_pFontName
KRVERTEXSHADER m_VertexShader
KVertexBufferm_pVertexBuffer [KRVERTEXTYPE_COUNT]
KIndexBufferm_pIndexBuffer [KRVERTEXTYPE_COUNT]
void * m_pVertex [KRVERTEXTYPE_COUNT]
u32 m_nVertex [KRVERTEXTYPE_COUNT]
KINDEX * m_pIndex [KRVERTEXTYPE_COUNT]
u32 m_nIndex [KRVERTEXTYPE_COUNT]
KMatrix m_WorldMatrix
KMatrix m_ViewMatrix
KMatrix m_ProjMatrix
KSHADER m_hBBoxShader
KSHADER m_hModulateShader
KSHADER m_hAddShader
KRenderStats m_Stats

Detailed Description

Definition at line 96 of file Render.h.


The documentation for this class was generated from the following files:
Generated on Sun Mar 25 20:02:39 2007 for Zythum Project by  doxygen 1.5.1-p1