Sheldon Lee
2c06859473
The ray-casting is done when camera_update() is called, and distances are stored in the Camera struct.
13 lines
307 B
C
13 lines
307 B
C
#ifndef LEVEL_H
|
|
#define LEVEL_H
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
int level_init();
|
|
void level_end();
|
|
float level_rayCastDistance(sf::Vector2f point, float direction);
|
|
void level_getDimensions(unsigned int* width, unsigned int* height);
|
|
unsigned int level_getGridValue(unsigned int x, unsigned int y);
|
|
|
|
#endif
|