Frontend: Support OpenGL ES

This commit is contained in:
Connor McLaughlin
2019-11-06 01:32:56 +10:00
parent 1a6c51e74b
commit b28610e30b
3 changed files with 97 additions and 16 deletions

View File

@@ -3,6 +3,7 @@
#include "common/gl/texture.h"
#include "core/host_display.h"
#include <SDL.h>
#include <string>
#include <memory>
class OpenGLHostDisplay final : public HostDisplay
@@ -32,6 +33,9 @@ public:
void WindowResized() override;
private:
const char* GetGLSLVersionString() const;
std::string GetGLSLVersionHeader() const;
bool CreateGLContext();
bool CreateImGuiContext();
bool CreateGLResources();
@@ -59,6 +63,7 @@ private:
GLuint m_display_nearest_sampler = 0;
GLuint m_display_linear_sampler = 0;
bool m_is_gles = false;
bool m_display_texture_changed = false;
bool m_display_linear_filtering = false;
};