mirror of
https://github.com/libretro/Play-.git
synced 2025-02-23 21:22:55 +00:00
29 lines
600 B
Objective-C
29 lines
600 B
Objective-C
#pragma once
|
|
|
|
#import <QuartzCore/QuartzCore.h>
|
|
#include "../gs/GSH_OpenGL/GSH_OpenGL.h"
|
|
#include "opengl/OpenGlDef.h"
|
|
|
|
class CGSH_OpenGLiOS : public CGSH_OpenGL
|
|
{
|
|
public:
|
|
CGSH_OpenGLiOS(CAEAGLLayer*);
|
|
virtual ~CGSH_OpenGLiOS();
|
|
|
|
static FactoryFunction GetFactoryFunction(CAEAGLLayer*);
|
|
|
|
void InitializeImpl() override;
|
|
void PresentBackbuffer() override;
|
|
|
|
private:
|
|
void CreateFramebuffer();
|
|
|
|
CAEAGLLayer* m_layer = nullptr;
|
|
EAGLContext* m_context = nullptr;
|
|
GLuint m_defaultFramebuffer = 0;
|
|
GLuint m_colorRenderbuffer = 0;
|
|
|
|
GLint m_framebufferWidth = 0;
|
|
GLint m_framebufferHeight = 0;
|
|
};
|