|
|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
/*
|
|
|
|
|
* TODO: |
|
|
|
|
* - add some sweet unit models |
|
|
|
|
* - need to add indexed drawing for assimp models |
|
|
|
|
* - map generation |
|
|
|
|
* - pathfinding |
|
|
|
|
* - update imgui to v1.62 -- requires changes to example api |
|
|
|
|
*/ |
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
// TODO:
|
|
|
|
|
// - lighting
|
|
|
|
|
// - map generation
|
|
|
|
|
// - pathfinding
|
|
|
|
|
// - assimp animation
|
|
|
|
|
// - update imgui to v1.62 -- requires changes to example api
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// Some defaults for the game layout
|
|
|
|
|
#define HEX_SIZE 10 |
|
|
|
|
@ -14,8 +14,8 @@
|
|
|
|
|
#define FILL_COLOR 0x565656FF |
|
|
|
|
#define SELECTED_FILL_COLOR 0xF46000FF |
|
|
|
|
#define DEBUG_DRAW true |
|
|
|
|
#define VIEWPORT_WIDTH 1280 |
|
|
|
|
#define VIEWPORT_HEIGHT 720 |
|
|
|
|
#define VIEWPORT_WIDTH 1920 |
|
|
|
|
#define VIEWPORT_HEIGHT 1080 |
|
|
|
|
#define CONE_ANGLE 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -565,7 +565,7 @@ int main(int argc, char* argv[])
|
|
|
|
|
if (r->is_debug_draw && g->draw_mode == CONE_FILL) |
|
|
|
|
renderDebug(g_polygon_select_vertices); |
|
|
|
|
renderGooey(handles, g->draw_mode, r->is_debug_draw, g->start_hex, |
|
|
|
|
g->current_hex, g->is_selecting); |
|
|
|
|
g->current_hex, g->is_selecting, getCameraPosition()); |
|
|
|
|
SDL_GL_SwapWindow(handles.window); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|