MCPcopy Create free account
hub / github.com/ddnet/ddnet / RenderCursor

Method RenderCursor

src/game/client/render.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void CRenderTools::RenderCursor(vec2 Center, float Size) const
132{
133 Graphics()->WrapClamp();
134 Graphics()->TextureSet(g_pData->m_aImages[IMAGE_CURSOR].m_Id);
135 Graphics()->QuadsBegin();
136 Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
137 IGraphics::CQuadItem QuadItem(Center.x, Center.y, Size, Size);
138 Graphics()->QuadsDrawTL(&QuadItem, 1);
139 Graphics()->QuadsEnd();
140 Graphics()->WrapNormal();
141}
142
143void CRenderTools::RenderIcon(int ImageId, int SpriteId, const CUIRect *pRect, const ColorRGBA *pColor) const
144{

Callers

nothing calls this directly

Calls 8

GraphicsFunction · 0.85
WrapClampMethod · 0.80
TextureSetMethod · 0.80
QuadsBeginMethod · 0.80
QuadsDrawTLMethod · 0.80
QuadsEndMethod · 0.80
WrapNormalMethod · 0.80
SetColorMethod · 0.45

Tested by

no test coverage detected