ref: 87e8a75df40c8f87ca280b4ca2b0d014b6b08742
parent: 7f6574117d80090e6ceffaefef5e8ff2f0c0d5dc
author: Clownacy <[email protected]>
date: Sat Apr 4 15:18:46 EDT 2020
Rename GLFW3.h/SDL2.h
--- a/src/Backends/GLFW3/GLFW3.h
+++ /dev/null
@@ -1,7 +1,0 @@
-#pragma once
-
-#define GLFW_INCLUDE_NONE
-#include <GLFW/glfw3.h>
-#undef GLFW_INCLUDE_NONE
-
-extern GLFWwindow *window;
--- a/src/Backends/GLFW3/Misc.cpp
+++ b/src/Backends/GLFW3/Misc.cpp
@@ -13,7 +13,7 @@
#include "../../WindowsWrapper.h"
-#include "GLFW3.h"
+#include "Platform.h"
#include "../../Main.h"
#include "../../Organya.h"
#include "../../Profile.h"
--- /dev/null
+++ b/src/Backends/GLFW3/Platform.h
@@ -1,0 +1,7 @@
+#pragma once
+
+#define GLFW_INCLUDE_NONE
+#include <GLFW/glfw3.h>
+#undef GLFW_INCLUDE_NONE
+
+extern GLFWwindow *window;
--- a/src/Backends/GLFW3/Window-OpenGL3.cpp
+++ b/src/Backends/GLFW3/Window-OpenGL3.cpp
@@ -13,7 +13,7 @@
#include "../../WindowsWrapper.h"
#include "../Platform.h"
-#include "GLFW3.h"
+#include "Platform.h"
BOOL WindowBackend_OpenGL_CreateWindow(const char *window_title, int *screen_width, int *screen_height, BOOL fullscreen)
{
--- a/src/Backends/Rendering/SDLSurface.cpp
+++ b/src/Backends/Rendering/SDLSurface.cpp
@@ -9,7 +9,7 @@
#include "../../WindowsWrapper.h"
#include "../Platform.h"
-#include "../SDL2/SDL2.h"
+#include "../SDL2/Platform.h"
typedef struct Backend_Surface
{
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -13,7 +13,7 @@
#include "../../WindowsWrapper.h"
#include "../Platform.h"
-#include "../SDL2/SDL2.h"
+#include "../SDL2/Platform.h"
#include "../../Draw.h"
#include "../../Ending.h"
#include "../../MapName.h"
--- a/src/Backends/Rendering/Software.cpp
+++ b/src/Backends/Rendering/Software.cpp
@@ -9,7 +9,7 @@
#include "../../WindowsWrapper.h"
#include "../Platform.h"
-#include "../SDL2/SDL2.h"
+#include "../SDL2/Platform.h"
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
--- a/src/Backends/SDL2/Misc.cpp
+++ b/src/Backends/SDL2/Misc.cpp
@@ -10,7 +10,7 @@
#include "../../WindowsWrapper.h"
-#include "SDL2.h"
+#include "Platform.h"
#include "../../Main.h"
#include "../../Organya.h"
#include "../../Profile.h"
--- /dev/null
+++ b/src/Backends/SDL2/Platform.h
@@ -1,0 +1,5 @@
+#pragma once
+
+#include "SDL.h"
+
+extern SDL_Window *window;
--- a/src/Backends/SDL2/SDL2.h
+++ /dev/null
@@ -1,5 +1,0 @@
-#pragma once
-
-#include "SDL.h"
-
-extern SDL_Window *window;
--- a/src/Backends/SDL2/Window-OpenGL3.cpp
+++ b/src/Backends/SDL2/Window-OpenGL3.cpp
@@ -12,7 +12,7 @@
#include "../../WindowsWrapper.h"
#include "../Platform.h"
-#include "SDL2.h"
+#include "Platform.h"
#include "../../Resource.h"
static SDL_GLContext context;