Move world files to engine
This commit is contained in:
33
engine/breeze/world/tileset.h
Normal file
33
engine/breeze/world/tileset.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef BREEZE_TILESET_H
|
||||
#define BREEZE_TILESET_H
|
||||
|
||||
#include <raylib.h>
|
||||
|
||||
typedef struct BzTilesetDesc {
|
||||
const char *path;
|
||||
const char *texturePath;
|
||||
} BzTilesetDesc;
|
||||
|
||||
typedef struct BzTileset {
|
||||
Texture2D tiles;
|
||||
int startID;
|
||||
int tileWidth;
|
||||
int tileHeight;
|
||||
int width;
|
||||
int height;
|
||||
int offsetX;
|
||||
int offsetY;
|
||||
bool isValid;
|
||||
} BzTileset;
|
||||
|
||||
extern BzTileset BZ_TILESET_INVALID;
|
||||
|
||||
BzTileset bzTilesetCreate(const BzTilesetDesc *desc);
|
||||
|
||||
Rectangle bzTilesetGetTileRegion(BzTileset *tileset, int tileID);
|
||||
|
||||
void bzTilesetDestroy(BzTileset *tileset);
|
||||
|
||||
|
||||
|
||||
#endif //BREEZE_TILESET_H
|
||||
Reference in New Issue
Block a user