diff --git a/include/renderer.h b/include/renderer.h index 69e11c6..26f996b 100644 --- a/include/renderer.h +++ b/include/renderer.h @@ -34,7 +34,12 @@ struct render_group //mesh_t mesh_type; }; -struct SDL_Handles; +struct SDL_Handles +{ + SDL_Window *window; + SDL_GLContext glContext; + SDL_DisplayMode currentDisplayMode; +}; struct render_state { diff --git a/src/renderer.cpp b/src/renderer.cpp index 185243f..6723245 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -22,13 +22,6 @@ // forward declarations -struct SDL_Handles -{ - SDL_Window *window; - SDL_GLContext glContext; - SDL_DisplayMode currentDisplayMode; -}; - bool createWindow(const char* title, SDL_Handles* handles, glm::vec2& viewport_dims);