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

Method TextureSet

src/engine/client/graphics_threaded.cpp:729–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729void CGraphics_Threaded::TextureSet(CTextureHandle TextureId)
730{
731 dbg_assert(m_Drawing == EDrawing::NONE, "called Graphics()->TextureSet within begin");
732 dbg_assert(!TextureId.IsValid() || m_vTextureIndices[TextureId.Id()] == -1, "Texture handle was not invalid, but also did not correlate to an existing texture.");
733 m_State.m_Texture = TextureId.Id();
734}
735
736void CGraphics_Threaded::Clear(float r, float g, float b, bool ForceClearNow)
737{

Callers 15

RenderCursorMethod · 0.80
RenderIconMethod · 0.80
RenderTee7Method · 0.80
RenderTee6Method · 0.80
RenderStartMenuMethod · 0.80
OnRenderMethod · 0.80
RenderScoreHudMethod · 0.80
RenderCursorMethod · 0.80
RenderPlayerStateMethod · 0.80
RenderNinjaBarPosMethod · 0.80
RenderDummyActionsMethod · 0.80

Calls 2

IsValidMethod · 0.45
IdMethod · 0.45

Tested by 1

OnRenderMethod · 0.64