cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
Instance Methods - 图1 Instance Methods - 图2)
- 类列表 - 类索引 - 类继承关系 - 类成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

Instance Methods | Class Methods | Protected 属性 | 属性 | 所有成员列表

CCEAGLView类 参考

CCEAGLView Class. 更多…

#import

类 CCEAGLView 继承关系图:

Instance Methods - 图3

## Instance Methods
(id) - initWithFrame:
Initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer. 更多…
(id) - initWithFrame:pixelFormat:
Initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer. 更多…
(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. 更多…
(void) - swapBuffers
CCEAGLView uses double-buffer. 更多…
(CGRect) - convertRectFromViewToSurface:
(CGPoint) - convertPointFromViewToSurface:
(int) - getWidth
(int) - getHeight
(void) - 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 更多…
(id) + viewWithFrame:pixelFormat:
creates an initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer 更多…
(id) + viewWithFrame:pixelFormat:depthFormat:
creates an initializes an CCEAGLView with a frame, a color buffer format, and a depth buffer format 更多…
(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 更多…
## Protected 属性
id< CCESRenderer > renderer_
EAGLContext context_
NSString pixelformat_
GLuint depthFormat_
BOOL preserveBackbuffer_
CGSize size_
BOOL discardFramebufferSupported_
BOOL multisampling_
unsigned int requestedSamples_
BOOL isUseUITextField
## 属性
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) 更多…
GLuint depthFormat
depth format of the render buffer: 0, 16 or 24 bits 更多…
CGSize surfaceSize
returns surface size in pixels 更多…
EAGLContext context
OpenGL context. 更多…
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.

Method Documentation

- (CGPoint) convertPointFromViewToSurface: (CGPoint) point

- (CGRect) convertRectFromViewToSurface: (CGRect) rect

- (void) doAnimationWhenAnotherEditBeClicked

- (void) doAnimationWhenKeyboardMoveWithDuration: (float) duration
distance: (float) dis

- (int) getHeight

- (int) getWidth

- (id) initWithFrame: (CGRect) 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: (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.

- (void) 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: (CGRect) frame
pixelFormat: (NSString *) 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: (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

类成员变量说明

- (EAGLContext*) context_

protected

- (GLuint) depthFormat_

protected

- (BOOL) discardFramebufferSupported_

protected

- (BOOL) isUseUITextField

protected

- (BOOL) multisampling_

protected

- (NSString*) pixelformat_

protected

- (BOOL) preserveBackbuffer_

protected

- (id<CCESRenderer>) renderer_

protected

- (unsigned int) requestedSamples_

protected

- (CGSize) size_

protected

属性说明

- (UITextPosition*) beginningOfDocument

readnonatomicassign

- (EAGLContext*) context

readnonatomicassign

OpenGL context.

- (GLuint) depthFormat

readnonatomicassign

depth format of the render buffer: 0, 16 or 24 bits

- (UITextPosition*) endOfDocument

readnonatomicassign

- (id<UITextInputDelegate>) inputDelegate

readwritenonatomicassign

- (BOOL) isKeyboardShown

readnonatomicassign

- (NSNotification*) keyboardShowNotification

readwritenonatomiccopy

- (UITextRange*) markedTextRange

readnonatomicassign

- (NSDictionary*) markedTextStyle

readwritenonatomiccopy

- (BOOL) multiSampling

readwritenonatomicassign

- (NSString*) pixelFormat

readnonatomicassign

pixel format: it could be RGBA8 (32-bit) or RGB565 (16-bit)

- (UITextRange*) selectedTextRange

readwriteatomiccopy

- (CGSize) surfaceSize

readnonatomicassign

returns surface size in pixels

- (id<UITextInputTokenizer>) tokenizer

readnonatomicassign


该类的文档由以下文件生成:

  • /Users/zeroyang/Documents/github/cocos2d-x/cocos/2d/platform/ios/CCEAGLView.h
  • CCEAGLView
  • 生成于 2014年 五月 29日 星期四 09:41:42 , 为 cocos2d-x使用 doxygen 1.8.6