![]() |
cocos2d-iphone
1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
|
#include <EAGLView.h>
Public Member Functions | |
id | initWithFrame: (CGRect frame) |
id | initWithFrame:pixelFormat: (CGRect frame,[pixelFormat] NSString *format) |
id | initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples: (CGRect frame,[pixelFormat] NSString *format,[depthFormat] GLuint depth,[preserveBackbuffer] BOOL retained,[sharegroup] EAGLSharegroup *sharegroup,[multiSampling] BOOL sampling,[numberOfSamples] unsigned int nSamples) |
void | swapBuffers () |
CGPoint | convertPointFromViewToSurface: (CGPoint point) |
CGRect | convertRectFromViewToSurface: (CGRect rect) |
Static Public Member Functions | |
id | viewWithFrame: (CGRect frame) |
id | viewWithFrame:pixelFormat: (CGRect frame,[pixelFormat] NSString *format) |
id | viewWithFrame:pixelFormat:depthFormat: (CGRect frame,[pixelFormat] NSString *format,[depthFormat] GLuint depth) |
id | viewWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples: (CGRect frame,[pixelFormat] NSString *format,[depthFormat] GLuint depth,[preserveBackbuffer] BOOL retained,[sharegroup] EAGLSharegroup *sharegroup,[multiSampling] BOOL multisampling,[numberOfSamples] unsigned int samples) |
Protected Attributes | |
id< ESRenderer > | renderer_ |
EAGLContext * | context_ |
NSString * | pixelformat_ |
GLuint | depthFormat_ |
BOOL | preserveBackbuffer_ |
CGSize | size_ |
BOOL | discardFramebufferSupported_ |
id< EAGLTouchDelegate > | touchDelegate_ |
BOOL | multisampling_ |
unsigned int | requestedSamples_ |
Properties | |
NSString * | pixelFormat |
GLuint | depthFormat |
CGSize | surfaceSize |
EAGLContext * | context |
BOOL | multiSampling |
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.
id EAGLView::initWithFrame: | ( | CGRect | frame | ) | [virtual] |
Initializes an EAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer
id EAGLView::initWithFrame:pixelFormat: | ( | CGRect | frame, |
[pixelFormat] NSString * | format | ||
) | [virtual] |
Initializes an EAGLView with a frame, a color buffer format, and 0-bit depth buffer
id EAGLView::initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples: | ( | CGRect | frame, |
[pixelFormat] NSString * | format, | ||
[depthFormat] GLuint | depth, | ||
[preserveBackbuffer] BOOL | retained, | ||
[sharegroup] EAGLSharegroup * | sharegroup, | ||
[multiSampling] BOOL | sampling, | ||
[numberOfSamples] unsigned int | nSamples | ||
) | [virtual] |
Initializes an EAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup and multisampling support
void EAGLView::swapBuffers | ( | ) | [virtual] |
EAGLView uses double-buffer. This method swaps the buffers
id EAGLView::viewWithFrame: | ( | CGRect | frame | ) | [static, virtual] |
creates an initializes an EAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer.
id EAGLView::viewWithFrame:pixelFormat: | ( | CGRect | frame, |
[pixelFormat] NSString * | format | ||
) | [static, virtual] |
creates an initializes an EAGLView with a frame, a color buffer format, and 0-bit depth buffer.
id EAGLView::viewWithFrame:pixelFormat:depthFormat: | ( | CGRect | frame, |
[pixelFormat] NSString * | format, | ||
[depthFormat] GLuint | depth | ||
) | [static, virtual] |
creates an initializes an EAGLView with a frame, a color buffer format, and a depth buffer.
id EAGLView::viewWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples: | ( | CGRect | frame, |
[pixelFormat] NSString * | format, | ||
[depthFormat] GLuint | depth, | ||
[preserveBackbuffer] BOOL | retained, | ||
[sharegroup] EAGLSharegroup * | sharegroup, | ||
[multiSampling] BOOL | multisampling, | ||
[numberOfSamples] unsigned int | samples | ||
) | [static, virtual] |
creates an initializes an EAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup, and multisamping
EAGLContext* EAGLView::context [read, assign] |
OpenGL context
GLuint EAGLView::depthFormat [read, assign] |
depth format of the render buffer: 0, 16 or 24 bits
NSString* EAGLView::pixelFormat [read, assign] |
pixel format: it could be RGBA8 (32-bit) or RGB565 (16-bit)
CGSize EAGLView::surfaceSize [read, assign] |
returns surface size in pixels
id<EAGLTouchDelegate> EAGLView::touchDelegate [read, write, assign] |
touch delegate