DDraceNetwork Docs
|
#include <render.h>
Public Member Functions | |
class IGraphics * | Graphics () const |
class ITextRender * | TextRender () const |
void | Init (class IGraphics *pGraphics, class ITextRender *pTextRender) |
void | SelectSprite (int Id, int Flags=0) const |
void | SelectSprite7 (int Id, int Flags=0) const |
void | GetSpriteScale (const CDataSprite *pSprite, float &ScaleX, float &ScaleY) const |
void | GetSpriteScale (int Id, float &ScaleX, float &ScaleY) const |
void | GetSpriteScaleImpl (int Width, int Height, float &ScaleX, float &ScaleY) const |
void | DrawSprite (float x, float y, float Size) const |
void | DrawSprite (float x, float y, float ScaledWidth, float ScaledHeight) const |
void | RenderCursor (vec2 Center, float Size) const |
void | RenderIcon (int ImageId, int SpriteId, const CUIRect *pRect, const ColorRGBA *pColor=nullptr) const |
int | QuadContainerAddSprite (int QuadContainerIndex, float x, float y, float Size) const |
int | QuadContainerAddSprite (int QuadContainerIndex, float Size) const |
int | QuadContainerAddSprite (int QuadContainerIndex, float Width, float Height) const |
int | QuadContainerAddSprite (int QuadContainerIndex, float X, float Y, float Width, float Height) const |
void | RenderTee (const CAnimState *pAnim, const CTeeRenderInfo *pInfo, int Emote, vec2 Dir, vec2 Pos, float Alpha=1.0f) const |
void | RenderQuads (CQuad *pQuads, int NumQuads, int Flags, ENVELOPE_EVAL pfnEval, void *pUser) const |
void | ForceRenderQuads (CQuad *pQuads, int NumQuads, int Flags, ENVELOPE_EVAL pfnEval, void *pUser, float Alpha=1.0f) const |
void | RenderTilemap (CTile *pTiles, int w, int h, float Scale, ColorRGBA Color, int RenderFlags) const |
void | RenderTileRectangle (int RectX, int RectY, int RectW, int RectH, unsigned char IndexIn, unsigned char IndexOut, float Scale, ColorRGBA Color, int RenderFlags) const |
void | RenderTile (int x, int y, unsigned char Index, float Scale, ColorRGBA Color) const |
void | CalcScreenParams (float Aspect, float Zoom, float *pWidth, float *pHeight) |
void | MapScreenToWorld (float CenterX, float CenterY, float ParallaxX, float ParallaxY, float ParallaxZoom, float OffsetX, float OffsetY, float Aspect, float Zoom, float *pPoints) |
void | MapScreenToGroup (float CenterX, float CenterY, CMapItemGroup *pGroup, float Zoom) |
void | MapScreenToInterface (float CenterX, float CenterY) |
void | RenderTeleOverlay (CTeleTile *pTele, int w, int h, float Scale, float Alpha=1.0f) const |
void | RenderSpeedupOverlay (CSpeedupTile *pSpeedup, int w, int h, float Scale, float Alpha=1.0f) const |
void | RenderSwitchOverlay (CSwitchTile *pSwitch, int w, int h, float Scale, float Alpha=1.0f) const |
void | RenderTuneOverlay (CTuneTile *pTune, int w, int h, float Scale, float Alpha=1.0f) const |
void | RenderTelemap (CTeleTile *pTele, int w, int h, float Scale, ColorRGBA Color, int RenderFlags) const |
void | RenderSpeedupmap (CSpeedupTile *pSpeedup, int w, int h, float Scale, ColorRGBA Color, int RenderFlags) const |
void | RenderSwitchmap (CSwitchTile *pSwitch, int w, int h, float Scale, ColorRGBA Color, int RenderFlags) const |
void | RenderTunemap (CTuneTile *pTune, int w, int h, float Scale, ColorRGBA Color, int RenderFlags) const |
Static Public Member Functions | |
static void | GetRenderTeeBodySize (const CAnimState *pAnim, const CTeeRenderInfo *pInfo, vec2 &BodyOffset, float &Width, float &Height) |
static void | GetRenderTeeFeetSize (const CAnimState *pAnim, const CTeeRenderInfo *pInfo, vec2 &FeetOffset, float &Width, float &Height) |
static void | GetRenderTeeAnimScaleAndBaseSize (const CTeeRenderInfo *pInfo, float &AnimScale, float &BaseSize) |
static void | GetRenderTeeOffsetToRenderedTee (const CAnimState *pAnim, const CTeeRenderInfo *pInfo, vec2 &TeeOffsetToMid) |
static void | RenderEvalEnvelope (const IEnvelopePointAccess *pPoints, std::chrono::nanoseconds TimeNanos, ColorRGBA &Result, size_t Channels) |
Private Member Functions | |
void | SelectSprite (const CDataSprite *pSprite, int Flags) const |
void | RenderTee6 (const CAnimState *pAnim, const CTeeRenderInfo *pInfo, int Emote, vec2 Dir, vec2 Pos, float Alpha=1.0f) const |
void | RenderTee7 (const CAnimState *pAnim, const CTeeRenderInfo *pInfo, int Emote, vec2 Dir, vec2 Pos, float Alpha=1.0f) const |
Static Private Member Functions | |
static void | GetRenderTeeBodyScale (float BaseSize, float &BodyScale) |
static void | GetRenderTeeFeetScale (float BaseSize, float &FeetScaleWidth, float &FeetScaleHeight) |
Private Attributes | |
class IGraphics * | m_pGraphics |
class ITextRender * | m_pTextRender |
int | m_TeeQuadContainerIndex |
void CRenderTools::CalcScreenParams | ( | float | Aspect, |
float | Zoom, | ||
float * | pWidth, | ||
float * | pHeight | ||
) |
void CRenderTools::DrawSprite | ( | float | x, |
float | y, | ||
float | ScaledWidth, | ||
float | ScaledHeight | ||
) | const |
void CRenderTools::DrawSprite | ( | float | x, |
float | y, | ||
float | Size | ||
) | const |
void CRenderTools::ForceRenderQuads | ( | CQuad * | pQuads, |
int | NumQuads, | ||
int | Flags, | ||
ENVELOPE_EVAL | pfnEval, | ||
void * | pUser, | ||
float | Alpha = 1.0f |
||
) | const |
|
static |
|
staticprivate |
|
static |
|
staticprivate |
|
static |
|
static |
void CRenderTools::GetSpriteScale | ( | const CDataSprite * | pSprite, |
float & | ScaleX, | ||
float & | ScaleY | ||
) | const |
void CRenderTools::GetSpriteScale | ( | int | Id, |
float & | ScaleX, | ||
float & | ScaleY | ||
) | const |
void CRenderTools::GetSpriteScaleImpl | ( | int | Width, |
int | Height, | ||
float & | ScaleX, | ||
float & | ScaleY | ||
) | const |
|
inline |
void CRenderTools::Init | ( | class IGraphics * | pGraphics, |
class ITextRender * | pTextRender | ||
) |
void CRenderTools::MapScreenToGroup | ( | float | CenterX, |
float | CenterY, | ||
CMapItemGroup * | pGroup, | ||
float | Zoom | ||
) |
void CRenderTools::MapScreenToInterface | ( | float | CenterX, |
float | CenterY | ||
) |
void CRenderTools::MapScreenToWorld | ( | float | CenterX, |
float | CenterY, | ||
float | ParallaxX, | ||
float | ParallaxY, | ||
float | ParallaxZoom, | ||
float | OffsetX, | ||
float | OffsetY, | ||
float | Aspect, | ||
float | Zoom, | ||
float * | pPoints | ||
) |
int CRenderTools::QuadContainerAddSprite | ( | int | QuadContainerIndex, |
float | Size | ||
) | const |
int CRenderTools::QuadContainerAddSprite | ( | int | QuadContainerIndex, |
float | Width, | ||
float | Height | ||
) | const |
int CRenderTools::QuadContainerAddSprite | ( | int | QuadContainerIndex, |
float | x, | ||
float | y, | ||
float | Size | ||
) | const |
int CRenderTools::QuadContainerAddSprite | ( | int | QuadContainerIndex, |
float | X, | ||
float | Y, | ||
float | Width, | ||
float | Height | ||
) | const |
void CRenderTools::RenderCursor | ( | vec2 | Center, |
float | Size | ||
) | const |
|
static |
void CRenderTools::RenderIcon | ( | int | ImageId, |
int | SpriteId, | ||
const CUIRect * | pRect, | ||
const ColorRGBA * | pColor = nullptr |
||
) | const |
void CRenderTools::RenderQuads | ( | CQuad * | pQuads, |
int | NumQuads, | ||
int | Flags, | ||
ENVELOPE_EVAL | pfnEval, | ||
void * | pUser | ||
) | const |
void CRenderTools::RenderSpeedupmap | ( | CSpeedupTile * | pSpeedup, |
int | w, | ||
int | h, | ||
float | Scale, | ||
ColorRGBA | Color, | ||
int | RenderFlags | ||
) | const |
void CRenderTools::RenderSpeedupOverlay | ( | CSpeedupTile * | pSpeedup, |
int | w, | ||
int | h, | ||
float | Scale, | ||
float | Alpha = 1.0f |
||
) | const |
void CRenderTools::RenderSwitchmap | ( | CSwitchTile * | pSwitch, |
int | w, | ||
int | h, | ||
float | Scale, | ||
ColorRGBA | Color, | ||
int | RenderFlags | ||
) | const |
void CRenderTools::RenderSwitchOverlay | ( | CSwitchTile * | pSwitch, |
int | w, | ||
int | h, | ||
float | Scale, | ||
float | Alpha = 1.0f |
||
) | const |
void CRenderTools::RenderTee | ( | const CAnimState * | pAnim, |
const CTeeRenderInfo * | pInfo, | ||
int | Emote, | ||
vec2 | Dir, | ||
vec2 | Pos, | ||
float | Alpha = 1.0f |
||
) | const |
|
private |
|
private |
void CRenderTools::RenderTelemap | ( | CTeleTile * | pTele, |
int | w, | ||
int | h, | ||
float | Scale, | ||
ColorRGBA | Color, | ||
int | RenderFlags | ||
) | const |
void CRenderTools::RenderTeleOverlay | ( | CTeleTile * | pTele, |
int | w, | ||
int | h, | ||
float | Scale, | ||
float | Alpha = 1.0f |
||
) | const |
void CRenderTools::RenderTile | ( | int | x, |
int | y, | ||
unsigned char | Index, | ||
float | Scale, | ||
ColorRGBA | Color | ||
) | const |
void CRenderTools::RenderTilemap | ( | CTile * | pTiles, |
int | w, | ||
int | h, | ||
float | Scale, | ||
ColorRGBA | Color, | ||
int | RenderFlags | ||
) | const |
void CRenderTools::RenderTileRectangle | ( | int | RectX, |
int | RectY, | ||
int | RectW, | ||
int | RectH, | ||
unsigned char | IndexIn, | ||
unsigned char | IndexOut, | ||
float | Scale, | ||
ColorRGBA | Color, | ||
int | RenderFlags | ||
) | const |
void CRenderTools::RenderTunemap | ( | CTuneTile * | pTune, |
int | w, | ||
int | h, | ||
float | Scale, | ||
ColorRGBA | Color, | ||
int | RenderFlags | ||
) | const |
void CRenderTools::RenderTuneOverlay | ( | CTuneTile * | pTune, |
int | w, | ||
int | h, | ||
float | Scale, | ||
float | Alpha = 1.0f |
||
) | const |
|
private |
void CRenderTools::SelectSprite | ( | int | Id, |
int | Flags = 0 |
||
) | const |
void CRenderTools::SelectSprite7 | ( | int | Id, |
int | Flags = 0 |
||
) | const |
|
inline |
|
private |
|
private |
|
private |