22 #if SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
24 #import <UIKit/UIKit.h>
25 #import <OpenGLES/EAGL.h>
26 #import <OpenGLES/ES3/gl.h>
33 - (instancetype)initWithFrame:(CGRect)frame
35 retainBacking:(BOOL)retained
40 depthBits:(
int)depthBits
41 stencilBits:(
int)stencilBits
43 multisamples:(
int)multisamples
44 context:(EAGLContext *)glcontext;
46 @property (nonatomic, readonly, weak) EAGLContext *
context;
49 @property (nonatomic, readonly)
int backingWidth;
50 @property (nonatomic, readonly)
int backingHeight;
52 @property (nonatomic, readonly)
GLuint drawableRenderbuffer;
53 @property (nonatomic, readonly)
GLuint drawableFramebuffer;
54 @property (nonatomic, readonly)
GLuint msaaResolveFramebuffer;
62 #endif // SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2