raycasting/level.h
Sheldon Lee 22cd090f92 Implement basic shading and colors.
CameraRay struct now stores information about tile intersection.
2023-05-01 00:10:01 +01:00

27 lines
447 B
C

#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;
} TileData;
int level_init();
void level_end();
float level_rayCast(sf::Vector2f point, float direction, TileData* tileData);
void level_getDimensions(unsigned int* width, unsigned int* height);
unsigned int level_getGridValue(unsigned int x, unsigned int y);
#endif