raycasting/level.h

28 lines
468 B
C
Raw Permalink Normal View History

#ifndef LEVEL_H
#define LEVEL_H
#include <SFML/Graphics.hpp>
enum level_tileSide
{
NORTH,
EAST,
SOUTH,
WEST
};
typedef struct
{
unsigned int value;
level_tileSide side;
2024-01-15 18:35:35 +08:00
float horizontalUV;
} TileData;
int level_init();
void level_end();
float level_rayCast(sf::Vector2f point, float direction, TileData* tileData);
2023-04-16 09:43:05 +08:00
void level_getDimensions(unsigned int* width, unsigned int* height);
unsigned int level_getGridValue(unsigned int x, unsigned int y);
#endif