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

Function FillTmpTileSpeedup

src/game/map/render_layer.cpp:96–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96static void FillTmpTileSpeedup(CGraphicTile *pTmpTile, CGraphicTileTextureCoords *pTmpTex, unsigned char Flags, int x, int y, const ivec2 &Offset, int Scale, short AngleRotate)
97{
98 int Angle = AngleRotate % 360;
99 FillTmpTile(pTmpTile, pTmpTex, Angle >= 270 ? ROTATION_270 : (Angle >= 180 ? ROTATION_180 : (Angle >= 90 ? ROTATION_90 : 0)), AngleRotate % 90, x, y, Offset, Scale);
100}
101
102static bool AddTile(std::vector<CGraphicTile> &vTmpTiles, std::vector<CGraphicTileTextureCoords> &vTmpTileTexCoords, unsigned char Index, unsigned char Flags, int x, int y, bool DoTextureCoords, bool FillSpeedup = false, int AngleRotate = -1, const ivec2 &Offset = ivec2{0, 0}, int Scale = 32)
103{

Callers 1

AddTileFunction · 0.85

Calls 1

FillTmpTileFunction · 0.85

Tested by

no test coverage detected