10 static constexpr Color
TILE_COLOR = {230, 230, 230, 255};
19 static void drawTiles(
int width,
int height,
float tileSize);
28 static void drawGrid(
int width,
int height,
float tileSize, Color color = GRAY);
40 static void drawTileHighlight(
int tileX,
int tileY,
int worldWidth,
int worldHeight,
41 float tileSize, Color color,
float lineThickness = 1.0f);
Helper class for rendering the game world grid.
static constexpr Color TILE_COLOR
static void drawGrid(int width, int height, float tileSize, Color color=GRAY)
Draws a custom grid centered at (0, 0, 0).
static void drawTiles(int width, int height, float tileSize)
Draws filled tile quads for the entire grid in a checkerboard pattern.
static constexpr Color TILE_COLOR_ALT
static void drawTileHighlight(int tileX, int tileY, int worldWidth, int worldHeight, float tileSize, Color color, float lineThickness=1.0f)
Draws a highlight outline around a specific tile.