|
|
|
@ -121,7 +121,7 @@ camera g_camera; |
|
|
|
// Interface
|
|
|
|
// Interface
|
|
|
|
|
|
|
|
|
|
|
|
bool initRenderer(SDL_Handles &handles, v2i vpDims); |
|
|
|
bool initRenderer(SDL_Handles &handles, v2i vpDims); |
|
|
|
bool addTexture(SDL_Handles &handles, std::string path); |
|
|
|
bool addTexture(SDL_Handles &handles, const char * path); |
|
|
|
bool createScene(std::vector<hex_info>* hexes); |
|
|
|
bool createScene(std::vector<hex_info>* hexes); |
|
|
|
void moveCamera(bool up, bool left, bool down, bool right, bool forward, bool backward); |
|
|
|
void moveCamera(bool up, bool left, bool down, bool right, bool forward, bool backward); |
|
|
|
void rollCamera(bool CW, bool CCW); |
|
|
|
void rollCamera(bool CW, bool CCW); |
|
|
|
@ -217,11 +217,11 @@ initRenderer(SDL_Handles &handles, v2i vpDims) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool |
|
|
|
bool |
|
|
|
addTexture(SDL_Handles &handles, std::string path) |
|
|
|
addTexture(SDL_Handles &handles, const char * path) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// testing
|
|
|
|
// testing
|
|
|
|
LOG(INFO) << "Loading image: " << path << "\n"; |
|
|
|
LOG(INFO) << "Loading image: " << path << "\n"; |
|
|
|
SDL_Surface* image = IMG_Load(path.c_str()); |
|
|
|
SDL_Surface* image = IMG_Load(path); |
|
|
|
|
|
|
|
|
|
|
|
if (!image) |
|
|
|
if (!image) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|