src/video/uikit/SDL_uikitopenglview.h
branchiOS-improvements
changeset 9501 574db299498f
parent 9498 d02c27e3f698
child 9510 e19faa3b5d88
     1.1 --- a/src/video/uikit/SDL_uikitopenglview.h	Wed Jul 23 01:33:59 2014 -0300
     1.2 +++ b/src/video/uikit/SDL_uikitopenglview.h	Wed Jul 23 03:05:31 2014 -0300
     1.3 @@ -29,38 +29,7 @@
     1.4      The view content is basically an EAGL surface you render your OpenGL scene into.
     1.5      Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
     1.6   */
     1.7 -@interface SDL_uikitopenglview : SDL_uikitview {
     1.8 -
     1.9 -@private
    1.10 -    /* The pixel dimensions of the backbuffer */
    1.11 -    GLint backingWidth;
    1.12 -    GLint backingHeight;
    1.13 -
    1.14 -    EAGLContext *context;
    1.15 -
    1.16 -    /* OpenGL names for the renderbuffer and framebuffers used to render to this view */
    1.17 -    GLuint viewRenderbuffer, viewFramebuffer;
    1.18 -
    1.19 -    /* OpenGL name for the depth buffer that is attached to viewFramebuffer, if it exists (0 if it does not exist) */
    1.20 -    GLuint depthRenderbuffer;
    1.21 -
    1.22 -    /* format of depthRenderbuffer */
    1.23 -    GLenum depthBufferFormat;
    1.24 -
    1.25 -    id displayLink;
    1.26 -    int animationInterval;
    1.27 -    void (*animationCallback)(void*);
    1.28 -    void *animationCallbackParam;
    1.29 -}
    1.30 -
    1.31 -@property (nonatomic, retain, readonly) EAGLContext *context;
    1.32 -
    1.33 -/* The width and height of the drawable in pixels (as opposed to points.) */
    1.34 -@property (nonatomic, readonly) int backingWidth;
    1.35 -@property (nonatomic, readonly) int backingHeight;
    1.36 -
    1.37 -- (void)swapBuffers;
    1.38 -- (void)setCurrentContext;
    1.39 +@interface SDL_uikitopenglview : SDL_uikitview
    1.40  
    1.41  - (id)initWithFrame:(CGRect)frame
    1.42                scale:(CGFloat)scale
    1.43 @@ -75,11 +44,20 @@
    1.44         majorVersion:(int)majorVersion
    1.45           shareGroup:(EAGLSharegroup*)shareGroup;
    1.46  
    1.47 +@property (nonatomic, retain, readonly) EAGLContext *context;
    1.48 +
    1.49 +/* The width and height of the drawable in pixels (as opposed to points.) */
    1.50 +@property (nonatomic, readonly) int backingWidth;
    1.51 +@property (nonatomic, readonly) int backingHeight;
    1.52 +
    1.53 +- (void)swapBuffers;
    1.54 +- (void)setCurrentContext;
    1.55 +
    1.56  - (void)updateFrame;
    1.57  
    1.58  - (void)setAnimationCallback:(int)interval
    1.59 -    callback:(void (*)(void*))callback
    1.60 -    callbackParam:(void*)callbackParam;
    1.61 +                    callback:(void (*)(void*))callback
    1.62 +               callbackParam:(void*)callbackParam;
    1.63  
    1.64  - (void)startAnimation;
    1.65  - (void)stopAnimation;