work on renderer
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#if WINDOW == 2
|
||||
|
||||
#ifndef WINDOW_SDL3
|
||||
#define WINDOW_SDL3
|
||||
#ifdef WINDOW_SDL3
|
||||
#undef WINDOW_SDL3
|
||||
|
||||
#include "pch.hpp"
|
||||
|
||||
@@ -9,7 +7,7 @@
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
#if RENDERER == 2
|
||||
#if RENDERER == 1
|
||||
|
||||
#include <SDL3/SDL_opengl.h>
|
||||
|
||||
@@ -136,7 +134,7 @@ namespace Archimedes {
|
||||
while(SDL_PollEvent(&e));
|
||||
}
|
||||
|
||||
WindowSDL3* getWindowImpl() { return this; };
|
||||
WindowSDL3* getWindowImpl() override { return this; };
|
||||
|
||||
#if RENDERER == 1
|
||||
void restoreContext() { SDL_GL_MakeCurrent(window, gl_context); }
|
||||
@@ -167,5 +165,3 @@ namespace Archimedes {
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user