Implement basic shading and colors.
CameraRay struct now stores information about tile intersection.
This commit is contained in:
@@ -3,9 +3,23 @@
|
||||
|
||||
#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_rayCastDistance(sf::Vector2f point, float direction);
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user