You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
845 B
32 lines
845 B
|
|
#pragma once |
|
|
|
#include <vector> |
|
|
|
#include <glm/glm.hpp> |
|
|
|
#include "util.h" |
|
#include "hexgame.h" |
|
|
|
struct renPointLight |
|
{ |
|
glm::vec3 position; |
|
glm::vec3 direction; |
|
glm::vec3 color; |
|
float intensity; |
|
|
|
uint light_ID; |
|
}; |
|
|
|
bool initRenderer(SDL_Handles &handles, v2i vpDims); |
|
bool addTexture(SDL_Handles &handles, const char * path); |
|
v2f getUnprojectedCoords(int32 x, int32 y, int32 vp_width, int32 vp_height); |
|
v3f getCameraPosition(); |
|
bool createScene(std::vector<hex_info>* hexes, Entity* entities, uint32 entity_count); |
|
void moveCamera(bool up, bool left, bool down, bool right, bool forward, bool backward); |
|
void rollCamera(bool CW, bool CCW); |
|
void rotateCamera(int32 xrel, int32 yrel); |
|
void renderFrame(std::vector<hex_info> *hexes, Entity* entities, uint32 entity_count); |
|
void renderDebug(std::vector<Point> &vertices); |
|
void freeBuffers(); |
|
|
|
|