aboutsummaryrefslogtreecommitdiff
path: root/src/GPU.h
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2020-06-03 13:54:28 +0200
committerNadia Holmquist Pedersen <nadia@nhp.sh>2020-06-03 13:54:28 +0200
commitf9f366e296a68be0aa2eb7bfd0552da31896a18c (patch)
treef52760d5505b84074a9c1b50b4fe16e40035ba06 /src/GPU.h
parentb746c0b7279d1f5b4bcfd02c115b09d583e9df4f (diff)
parentd6332f96f162849ad0dde2738cacd3fae6e76e5d (diff)
Merge remote-tracking branch 'remotes/upstream/master' into feature/qt-platform
# Conflicts: # src/frontend/qt_sdl/CMakeLists.txt # src/frontend/qt_sdl/Platform.cpp # src/frontend/qt_sdl/main.cpp
Diffstat (limited to 'src/GPU.h')
-rw-r--r--src/GPU.h34
1 files changed, 32 insertions, 2 deletions
diff --git a/src/GPU.h b/src/GPU.h
index 661a7d9..039e065 100644
--- a/src/GPU.h
+++ b/src/GPU.h
@@ -20,7 +20,6 @@
#define GPU_H
#include "GPU2D.h"
-#include "GPU3D.h"
namespace GPU
{
@@ -72,6 +71,17 @@ extern u32* Framebuffer[2][2];
extern GPU2D* GPU2D_A;
extern GPU2D* GPU2D_B;
+extern int Renderer;
+
+
+typedef struct
+{
+ bool Soft_Threaded;
+
+ int GL_ScaleFactor;
+
+} RenderSettings;
+
bool Init();
void DeInit();
@@ -80,7 +90,11 @@ void Stop();
void DoSavestate(Savestate* file);
-void SetDisplaySettings(bool accel);
+void InitRenderer(int renderer);
+void DeInitRenderer();
+void ResetRenderer();
+
+void SetRenderSettings(int renderer, RenderSettings& settings);
u8* GetUniqueBankPtr(u32 mask, u32 offset);
@@ -422,6 +436,22 @@ void SetDispStat(u32 cpu, u16 val);
void SetVCount(u16 val);
+namespace GLCompositor
+{
+
+bool Init();
+void DeInit();
+void Reset();
+
+void SetRenderSettings(RenderSettings& settings);
+
+void RenderFrame();
+void BindOutputTexture();
+
+}
+
}
+#include "GPU3D.h"
+
#endif