Sheldon Lee
2c06859473
The ray-casting is done when camera_update() is called, and distances are stored in the Camera struct.
12 lines
252 B
C
12 lines
252 B
C
#ifndef MINIMAP_H
|
|
#define MINIMAP_H
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
#include "camera.h"
|
|
|
|
int minimap_init(unsigned int size);
|
|
void minimap_update(sf::RenderTarget* renderTarget, Camera* camera);
|
|
void minimap_setTexturePosition(float x, float y);
|
|
|
|
#endif
|