diff options
| author | nathan <nathansmith@disroot.org> | 2025-12-29 12:42:08 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-12-29 12:42:08 +0000 |
| commit | 91b1c45da05c892a04b6a1daa99b1de89fa1f363 (patch) | |
| tree | 5eeb0e8f7c5a4f0382b69780a4a14f69f971d9a2 /src/entity.h | |
| parent | 8f2d85aa019f089b6946f3b9e0355ce59b12b67a (diff) | |
| download | FindThings-91b1c45da05c892a04b6a1daa99b1de89fa1f363.tar.gz FindThings-91b1c45da05c892a04b6a1daa99b1de89fa1f363.tar.bz2 FindThings-91b1c45da05c892a04b6a1daa99b1de89fa1f363.zip | |
working on building roofs
Diffstat (limited to 'src/entity.h')
| -rw-r--r-- | src/entity.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/entity.h b/src/entity.h index 5f03e52..0469476 100644 --- a/src/entity.h +++ b/src/entity.h @@ -14,7 +14,8 @@ #define INTERACTION_CHAT_MAX 256 #define ENTITY_BUILDING_CUBE_SIZE (Vector3){4.0, 4.0, 4.0} -#define ENTITY_BUILDING_GROUND_OFFSET 0.03 +#define BUILDING_DEFAULT_ROOF_HEIGHT 10.0 +#define BUILDING_ROOF_SLICES 9 // Yes 9 (: typedef int8_t EntityId; typedef enum InteractionCommand InteractionCommand; @@ -74,6 +75,11 @@ struct Entity { typedef struct { Model model; Color* pixelMap; + float width; + float height; + float roofSize; + float roofHeight; + Vector3 roofOffset; } EntityBuilding; typedef struct { @@ -114,5 +120,7 @@ BoundingBox entityBoxFromScale(float scale, float width, float height); EntityBuilding* createEntityBuilding(Image heightmap); void freeEntityBuilding(EntityBuilding* entityBuilding); +void drawBuildingRoof(const EntityBuilding* building, Vector3 position, + Color color); #endif |
