change windows backend to sdl2

This commit is contained in:
2021-10-31 10:52:43 +01:00
parent 02b3a88c9c
commit 8f0e0c48ed
12 changed files with 607 additions and 441 deletions

View File

@@ -8,7 +8,8 @@
#ifndef RENDER_GUI_TOWERGUI_H_
#define RENDER_GUI_TOWERGUI_H_
struct GLFWwindow;
struct SDL_Window;
typedef void *SDL_GLContext;
namespace td {
namespace render {
@@ -21,7 +22,7 @@ class Renderer;
namespace TowerGui {
void init(GLFWwindow* window, td::render::Renderer* renderer);
void init(SDL_Window* window, SDL_GLContext glContext, td::render::Renderer* renderer);
void render();
void destroy();