CCEAGLView Class. More...
#import <CCEAGLView-ios.h>
Instance Methods | |
(id) | - initWithFrame: |
Initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer. More... | |
(id) | - initWithFrame:pixelFormat: |
Initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer. More... | |
(id) | - initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples: |
Initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup and multisampling support. More... | |
var | - initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples: |
Initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup and multisampling support. More... | |
local | - initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples: |
Initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup and multisampling support. More... | |
(void) | - swapBuffers |
CCEAGLView uses double-buffer. More... | |
(CGRect) | - convertRectFromViewToSurface: |
(CGPoint) | - convertPointFromViewToSurface: |
(int) | - getWidth |
(int) | - getHeight |
(void) | - doAnimationWhenKeyboardMoveWithDuration:distance: |
local | - doAnimationWhenKeyboardMoveWithDuration:distance: |
(void) | - doAnimationWhenAnotherEditBeClicked |
Class Methods | |
(id) | + viewWithFrame: |
creates an initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer More... | |
(id) | + viewWithFrame:pixelFormat: |
creates an initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer More... | |
(id) | + viewWithFrame:pixelFormat:depthFormat: |
creates an initializes an CCEAGLView with a frame, a color buffer format, and a depth buffer format More... | |
(id) | + viewWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples: |
creates an initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup, and multisamping More... | |
Protected Attributes | |
id< CCESRenderer > | renderer_ |
EAGLContext * | context_ |
NSString * | pixelformat_ |
GLuint | depthFormat_ |
BOOL | preserveBackbuffer_ |
CGSize | size_ |
BOOL | discardFramebufferSupported_ |
var | discardFramebufferSupported_ |
local | discardFramebufferSupported_ |
BOOL | multisampling_ |
unsigned int | requestedSamples_ |
BOOL | isUseUITextField |
Properties | |
UITextPosition * | beginningOfDocument |
UITextPosition * | endOfDocument |
id< UITextInputDelegate > | inputDelegate |
UITextRange * | markedTextRange |
NSDictionary * | markedTextStyle |
UITextRange * | selectedTextRange |
id< UITextInputTokenizer > | tokenizer |
BOOL | isKeyboardShown |
NSNotification * | keyboardShowNotification |
NSString * | pixelFormat |
pixel format: it could be RGBA8 (32-bit) or RGB565 (16-bit) More... | |
GLuint | depthFormat |
depth format of the render buffer: 0, 16 or 24 bits More... | |
CGSize | surfaceSize |
returns surface size in pixels More... | |
EAGLContext * | context |
OpenGL context. More... | |
BOOL | multiSampling |
CCEAGLView 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.
- (CGPoint) convertPointFromViewToSurface: |
(CGPoint) | point |
- (CGPoint) convertPointFromViewToSurface: |
var | point |
- (CGPoint) convertPointFromViewToSurface: |
local | point |
- (CGRect) convertRectFromViewToSurface: |
(CGRect) | rect |
- (CGRect) convertRectFromViewToSurface: |
var | rect |
- (CGRect) convertRectFromViewToSurface: |
local | rect |
- (void) doAnimationWhenAnotherEditBeClicked |
var doAnimationWhenAnotherEditBeClicked |
local doAnimationWhenAnotherEditBeClicked |
- (void) doAnimationWhenKeyboardMoveWithDuration: |
(float) | duration | |
distance: | (float) | dis | |
- (void) doAnimationWhenKeyboardMoveWithDuration: |
var | duration | |
distance: | var | dis | |
- (void) doAnimationWhenKeyboardMoveWithDuration: |
local | duration | |
distance: | local | dis | |
- (int) getHeight |
var getHeight |
local getHeight |
- (int) getWidth |
var getWidth |
local getWidth |
- (id) initWithFrame: | (CGRect) | frame |
Initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer.
- (id) initWithFrame: | var | frame |
Initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer.
- (id) initWithFrame: | local | frame |
Initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer.
- (id) initWithFrame: | (CGRect) | frame | |
pixelFormat: | (NSString *) | format | |
Initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer.
- (id) initWithFrame: | var | frame | |
pixelFormat: | var | format | |
Initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer.
- (id) initWithFrame: | local | frame | |
pixelFormat: | local | format | |
Initializes an CCEAGLView 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 | |
sharegroup: | (EAGLSharegroup *) | sharegroup | |
multiSampling: | (BOOL) | sampling | |
numberOfSamples: | (unsigned int) | nSamples | |
Initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup and multisampling support.
- (id) initWithFrame: | var | frame | |
pixelFormat: | var | format | |
depthFormat: | var | depth | |
preserveBackbuffer: | var | retained | |
sharegroup: | var | sharegroup | |
multiSampling: | var | sampling | |
numberOfSamples: | var | nSamples | |
Initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup and multisampling support.
- (id) initWithFrame: | local | frame | |
pixelFormat: | local | format | |
depthFormat: | local | depth | |
preserveBackbuffer: | local | retained | |
sharegroup: | local | sharegroup | |
multiSampling: | local | sampling | |
numberOfSamples: | local | nSamples | |
Initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup and multisampling support.
- (void) swapBuffers |
CCEAGLView uses double-buffer.
This method swaps the buffers
var swapBuffers |
CCEAGLView uses double-buffer.
This method swaps the buffers
local swapBuffers |
CCEAGLView uses double-buffer.
This method swaps the buffers
+ (id) viewWithFrame: | (CGRect) | frame |
creates an initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer
+ (id) viewWithFrame: | var | frame |
creates an initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer
+ (id) viewWithFrame: | local | frame |
creates an initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer
+ (id) viewWithFrame: | (CGRect) | frame | |
pixelFormat: | (NSString *) | format | |
creates an initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer
+ (id) viewWithFrame: | var | frame | |
pixelFormat: | var | format | |
creates an initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer
+ (id) viewWithFrame: | local | frame | |
pixelFormat: | local | format | |
creates an initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer
+ (id) viewWithFrame: | (CGRect) | frame | |
pixelFormat: | (NSString *) | format | |
depthFormat: | (GLuint) | depth | |
creates an initializes an CCEAGLView with a frame, a color buffer format, and a depth buffer format
+ (id) viewWithFrame: | var | frame | |
pixelFormat: | var | format | |
depthFormat: | var | depth | |
creates an initializes an CCEAGLView with a frame, a color buffer format, and a depth buffer format
+ (id) viewWithFrame: | local | frame | |
pixelFormat: | local | format | |
depthFormat: | local | depth | |
creates an initializes an CCEAGLView with a frame, a color buffer format, and a depth buffer format
+ (id) viewWithFrame: | (CGRect) | frame | |
pixelFormat: | (NSString *) | format | |
depthFormat: | (GLuint) | depth | |
preserveBackbuffer: | (BOOL) | retained | |
sharegroup: | (EAGLSharegroup *) | sharegroup | |
multiSampling: | (BOOL) | multisampling | |
numberOfSamples: | (unsigned int) | samples | |
creates an initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup, and multisamping
+ (id) viewWithFrame: | var | frame | |
pixelFormat: | var | format | |
depthFormat: | var | depth | |
preserveBackbuffer: | var | retained | |
sharegroup: | var | sharegroup | |
multiSampling: | var | multisampling | |
numberOfSamples: | var | samples | |
creates an initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup, and multisamping
+ (id) viewWithFrame: | local | frame | |
pixelFormat: | local | format | |
depthFormat: | local | depth | |
preserveBackbuffer: | local | retained | |
sharegroup: | local | sharegroup | |
multiSampling: | local | multisampling | |
numberOfSamples: | local | samples | |
creates an initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup, and multisamping
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
readnonatomicassign |
|
readnonatomicassign |
|
readnonatomicassign |
|
readnonatomicassign |
OpenGL context.
|
readnonatomicassign |
OpenGL context.
|
readnonatomicassign |
OpenGL context.
|
readnonatomicassign |
depth format of the render buffer: 0, 16 or 24 bits
|
readnonatomicassign |
depth format of the render buffer: 0, 16 or 24 bits
|
readnonatomicassign |
depth format of the render buffer: 0, 16 or 24 bits
|
readnonatomicassign |
|
readnonatomicassign |
|
readnonatomicassign |
|
readwritenonatomicassign |
|
readwritenonatomicassign |
|
readwritenonatomicassign |
|
readnonatomicassign |
|
readnonatomicassign |
|
readnonatomicassign |
|
readwritenonatomiccopy |
|
readwritenonatomiccopy |
|
readwritenonatomiccopy |
|
readnonatomicassign |
|
readnonatomicassign |
|
readnonatomicassign |
|
readwritenonatomiccopy |
|
readwritenonatomiccopy |
|
readwritenonatomiccopy |
|
readwritenonatomicassign |
|
readwritenonatomicassign |
|
readwritenonatomicassign |
|
readnonatomicassign |
pixel format: it could be RGBA8 (32-bit) or RGB565 (16-bit)
|
readnonatomicassign |
pixel format: it could be RGBA8 (32-bit) or RGB565 (16-bit)
|
readnonatomicassign |
pixel format: it could be RGBA8 (32-bit) or RGB565 (16-bit)
|
readwriteatomiccopy |
|
readwriteatomiccopy |
|
readwriteatomiccopy |
|
readnonatomicassign |
returns surface size in pixels
|
readnonatomicassign |
returns surface size in pixels
|
readnonatomicassign |
returns surface size in pixels
|
readnonatomicassign |
|
readnonatomicassign |
|
readnonatomicassign |