Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
Engine::TileAsset Struct Reference

Represents one tile slot in a tileset. Saved to disk as a small <name>.tile JSON file. More...

#include <TilesetAsset.hpp>

Public Attributes

int id = -1
 Slot index in the parent tileset (== index in TilesetAsset::tiles).
std::string name
 Display name shown in the palette.
std::string texturePath
 Project-relative path to the tile's texture image.
bool isSolid = false
 True = solid collider spawned for cells containing this tile.
int gridX = 0
 Column on the infinite palette grid (can be negative).
int gridY = 0
 Row on the infinite palette grid (can be negative).
glm::vec4 atlasUV { 0.f, 0.f, 1.f, 1.f }
 Normalised UV rect in the runtime atlas: (u0, v0, u1, v1).

Detailed Description

Represents one tile slot in a tileset. Saved to disk as a small <name>.tile JSON file.

Member Data Documentation

◆ atlasUV

glm::vec4 Engine::TileAsset::atlasUV { 0.f, 0.f, 1.f, 1.f }

Normalised UV rect in the runtime atlas: (u0, v0, u1, v1).

◆ gridX

int Engine::TileAsset::gridX = 0

Column on the infinite palette grid (can be negative).

◆ gridY

int Engine::TileAsset::gridY = 0

Row on the infinite palette grid (can be negative).

◆ id

int Engine::TileAsset::id = -1

Slot index in the parent tileset (== index in TilesetAsset::tiles).

◆ isSolid

bool Engine::TileAsset::isSolid = false

True = solid collider spawned for cells containing this tile.

◆ name

std::string Engine::TileAsset::name

Display name shown in the palette.

◆ texturePath

std::string Engine::TileAsset::texturePath

Project-relative path to the tile's texture image.


The documentation for this struct was generated from the following file: