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

3
include/render/GL.h Normal file
View File

@@ -0,0 +1,3 @@
#pragma once
#include "glbinding/gl/gl.h"

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();

View File

@@ -11,7 +11,7 @@
namespace Display {
void create();
bool create();
void render();
void update();
void destroy();