|
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCGrid.h>
Inheritance diagram for CCGridBase:
Collaboration diagram for CCGridBase:Public Member Functions | |
| (id) | - initWithSize:texture:flippedTexture: |
| (id) | - initWithSize: |
| (void) | - beforeDraw |
| (void) | - afterDraw: |
| (void) | - blit |
| (void) | - reuse |
| (void) | - calculateVertexPoints |
Static Public Member Functions | |
| (id) | + gridWithSize:texture:flippedTexture: |
| (id) | + gridWithSize: |
Protected Attributes | |
| BOOL | _active |
| int | _reuseGrid |
| CGSize | _gridSize |
| CCTexture2D * | _texture |
| CGPoint | _step |
| CCGrabber * | _grabber |
| BOOL | _isTextureFlipped |
| CCGLProgram * | _shaderProgram |
| ccDirectorProjection | _directorProjection |
Properties | |
| BOOL | active |
| int | reuseGrid |
| CGSize | gridSize |
| CGPoint | step |
| CCTexture2D * | texture |
| CCGrabber * | grabber |
| BOOL | isTextureFlipped |
| CCGLProgram * | shaderProgram |
Base class for other
- (BOOL) active [read, write, assign] |
whether or not the grid is active
- (CGSize) gridSize [read, assign] |
size of the grid
- (BOOL) isTextureFlipped [read, write, assign] |
is texture flipped
- (int) reuseGrid [read, write, assign] |
number of times that the grid will be reused
- (CCGLProgram*) shaderProgram [read, write, assign] |
shader program
- (CGPoint) step [read, write, assign] |
pixels between the grids
- (CCTexture2D*) texture [read, write, retain] |
texture used