#import <EAGLView.h>
Public Member Functions | |
| (id) | - initWithFrame: |
| (id) | - initWithFrame:pixelFormat: |
| (id) | - initWithFrame:pixelFormat:depthFormat:preserveBackbuffer: |
| (void) | - swapBuffers |
Static Public Member Functions | |
| (id) | + viewWithFrame: |
| (id) | + viewWithFrame:pixelFormat: |
| (id) | + viewWithFrame:pixelFormat:depthFormat:preserveBackbuffer: |
Properties | |
| NSString * | pixelFormat |
| GLuint | depthFormat |
| CGSize | surfaceSize |
| EAGLContext * | context |
| id< EAGLTouchDelegate > | touchDelegate |
EAGLView Class. This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass. The view content is basically an EAGL surface you render your OpenGL scene into. Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
Definition at line 92 of file EAGLView.h.
| - (id) initWithFrame: | (CGRect) | frame |
Initializes an EAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer
| - (id) initWithFrame: | (CGRect) | frame | ||
| pixelFormat: | (NSString *) | format | ||
Initializes an EAGLView with a frame, a color buffer format, and 0-bit depth buffer
| - (id) initWithFrame: | (CGRect) | frame | ||
| pixelFormat: | (NSString *) | format | ||
| depthFormat: | (GLuint) | depth | ||
| preserveBackbuffer: | (BOOL) | retained | ||
Initializes an EAGLView with a frame, a color buffer format, and a depth buffer format
| - (void) swapBuffers |
EAGLView uses double-buffer. This method swaps the buffers
| + (id) viewWithFrame: | (CGRect) | frame |
creates an initializes an EAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer
| + (id) viewWithFrame: | (CGRect) | frame | ||
| pixelFormat: | (NSString *) | format | ||
creates an initializes an EAGLView with a frame, a color buffer format, and 0-bit depth buffer
| + (id) viewWithFrame: | (CGRect) | frame | ||
| pixelFormat: | (NSString *) | format | ||
| depthFormat: | (GLuint) | depth | ||
| preserveBackbuffer: | (BOOL) | retained | ||
creates an initializes an EAGLView with a frame, a color buffer format, and a depth buffer format
- (EAGLContext*) context [read, assign] |
OpenGL context
Definition at line 129 of file EAGLView.h.
- (GLuint) depthFormat [read, assign] |
depth format of the render buffer: 0, 16 or 24 bits
Definition at line 123 of file EAGLView.h.
- (NSString*) pixelFormat [read, assign] |
pixel format: it could be RGBA8 (32-bit) or RGB565 (16-bit)
Definition at line 121 of file EAGLView.h.
- (CGSize) surfaceSize [read, assign] |
returns surface size in pixels
Definition at line 126 of file EAGLView.h.
- (id<EAGLTouchDelegate>) touchDelegate [read, write, assign] |
touch delegate
Definition at line 132 of file EAGLView.h.