PageRenderTime 51ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 18ms app.codeStats 0ms

/src/backend/iphone/ftk_iphone_gles_view.h

http://ftk.googlecode.com/
C++ Header | 28 lines | 22 code | 6 blank | 0 comment | 0 complexity | 93df01788e359b4babafb9d7da466d65 MD5 | raw file
 1
 2#ifndef FTK_IPHONE_GLES_VIEW_H
 3#define FTK_IPHONE_GLES_VIEW_H
 4
 5#import "ftk_iphone_view.h"
 6#import <QuartzCore/QuartzCore.h>
 7#import <OpenGLES/EAGL.h>
 8#import <OpenGLES/ES1/gl.h>
 9#import <OpenGLES/ES1/glext.h>
10
11@interface FtkGlesView : FtkView
12{
13@private
14	EAGLContext* context;
15	GLint backingWidth;
16	GLint backingHeight;
17	GLuint viewRenderbuffer;
18	GLuint viewFramebuffer;
19	GLuint depthRenderbuffer;
20}
21
22@property (nonatomic, retain) EAGLContext *context;
23
24-(BOOL)createFramebuffer;
25-(void)destroyFramebuffer;
26@end
27
28#endif/*FTK_IPHONE_GLES_VIEW_H*/