![]() |
DDNet documentation
|
#include <render.h>
Public Member Functions | |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| void | Init (class IGraphics *pGraphics, class ITextRender *pTextRender) |
| void | RenderCursor (vec2 Center, float Size) const |
| void | RenderIcon (int ImageId, int SpriteId, const CUIRect *pRect, const ColorRGBA *pColor=nullptr) const |
| void | RenderTee (const CAnimState *pAnim, const CTeeRenderInfo *pInfo, int Emote, vec2 Dir, vec2 Pos, float Alpha=1.0f) 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) |
Private Member Functions | |
| 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 |
|
static |
|
staticprivate |
|
static |
|
staticprivate |
|
static |
|
static |
|
inline |
| void CRenderTools::Init | ( | class IGraphics * | pGraphics, |
| class ITextRender * | pTextRender ) |
| void CRenderTools::RenderCursor | ( | vec2 | Center, |
| float | Size ) const |
| void CRenderTools::RenderIcon | ( | int | ImageId, |
| int | SpriteId, | ||
| const CUIRect * | pRect, | ||
| const ColorRGBA * | pColor = nullptr ) const |
| void CRenderTools::RenderTee | ( | const CAnimState * | pAnim, |
| const CTeeRenderInfo * | pInfo, | ||
| int | Emote, | ||
| vec2 | Dir, | ||
| vec2 | Pos, | ||
| float | Alpha = 1.0f ) const |
|
private |
|
private |
|
inline |
|
private |
|
private |
|
private |