| 100 | } |
| 101 | |
| 102 | static 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 | { |
| 104 | if(Index <= 0) |
| 105 | return false; |
| 106 | |
| 107 | vTmpTiles.emplace_back(); |
| 108 | CGraphicTile &Tile = vTmpTiles.back(); |
| 109 | CGraphicTileTextureCoords *pTileTex = nullptr; |
| 110 | if(DoTextureCoords) |
| 111 | { |
| 112 | vTmpTileTexCoords.emplace_back(); |
| 113 | CGraphicTileTextureCoords &TileTex = vTmpTileTexCoords.back(); |
| 114 | pTileTex = &TileTex; |
| 115 | } |
| 116 | if(FillSpeedup) |
| 117 | FillTmpTileSpeedup(&Tile, pTileTex, Flags, x, y, Offset, Scale, AngleRotate); |
| 118 | else |
| 119 | FillTmpTile(&Tile, pTileTex, Flags, Index, x, y, Offset, Scale); |
| 120 | |
| 121 | return true; |
| 122 | } |
| 123 | |
| 124 | class CTmpQuadVertexTextured |
| 125 | { |
no test coverage detected