#import <objc/objc.h>
#import <CoreGraphics/CGGeometry.h>
#import <OpenGLES/ES1/gl.h>
Go to the source code of this file.
Classes |
| struct | ccColor3B |
| struct | ccColor4B |
| struct | ccColor4F |
| struct | ccVertex3F |
| struct | ccTex2F |
| struct | ccPointSprite |
| | Point Sprite component. More...
|
| struct | ccQuad2 |
| | A 2D Quad. 4 * 2 floats. More...
|
| struct | ccQuad3 |
| | A 3D Quad. 4 * 3 floats. More...
|
| struct | ccGridSize |
| | A 2D grid size. More...
|
| struct | ccV2F_C4F_T2F |
| | a Point with a vertex point, a tex coord point and a color 4F More...
|
| struct | ccV3F_C4B_T2F |
| | a Point with a vertex point, a tex coord point and a color 4B More...
|
| struct | ccV3F_C4B_T2F_Quad |
| | 4 ccVertex3FTex2FColor4B More...
|
| struct | ccV2F_C4F_T2F_Quad |
| | 4 ccVertex2FTex2FColor4F Quad More...
|
| struct | ccBlendFunc |
| | Blend Function used for textures. More...
|
Defines |
| #define | ccVertex2F CGPoint |
Typedefs |
| typedef float | ccTime |
Functions |
| static ccColor3B | ccc3 (const GLubyte r, const GLubyte g, const GLubyte b) |
| | helper macro that creates an ccColor3B type
|
| static ccColor4B | ccc4 (const GLubyte r, const GLubyte g, const GLubyte b, const GLubyte o) |
| | helper macro that creates an ccColor4B type
|
| static ccColor4F | ccc4FFromccc3B (ccColor3B c) |
| static ccColor4F | ccc4FFromccc4B (ccColor4B c) |
| static BOOL | ccc4FEqual (ccColor4F a, ccColor4F b) |
| static ccGridSize | ccg (const int x, const int y) |
| | helper function to create a ccGridSize
|
Variables |
| static const ccColor3B | ccWHITE = {255,255,255} |
| | White color (255,255,255).
|
| static const ccColor3B | ccYELLOW = {255,255,0} |
| | Yellow color (255,255,0).
|
| static const ccColor3B | ccBLUE = {0,0,255} |
| | Blue color (0,0,255).
|
| static const ccColor3B | ccGREEN = {0,255,0} |
| | Green Color (0,255,0).
|
| static const ccColor3B | ccRED = {255,0,0} |
| | Red Color (255,0,0,).
|
| static const ccColor3B | ccMAGENTA = {255,0,255} |
| | Magenta Color (255,0,255).
|
| static const ccColor3B | ccBLACK = {0,0,0} |
| | Black Color (0,0,0).
|
| static const ccColor3B | ccORANGE = {255,127,0} |
| | Orange Color (255,127,0).
|
| static const ccColor3B | ccGRAY = {166,166,166} |
| | Gray Color (166,166,166).
|
Detailed Description
cocos2d (cc) types
Definition in file ccTypes.h.
Define Documentation
| #define ccVertex2F CGPoint |
A vertex composed of 2 floats: x, y
- Since:
- v0.8
Definition at line 128 of file ccTypes.h.
Typedef Documentation
delta time type if you want more resolution redefine it as a double
Definition at line 252 of file ccTypes.h.
Function Documentation
| static ccColor3B ccc3 |
( |
const GLubyte |
r, |
|
|
const GLubyte |
g, |
|
|
const GLubyte |
b | |
|
) |
| | [inline, static] |
| static ccColor4B ccc4 |
( |
const GLubyte |
r, |
|
|
const GLubyte |
g, |
|
|
const GLubyte |
b, |
|
|
const GLubyte |
o | |
|
) |
| | [inline, static] |
returns YES if both ccColor4F are equal. Otherwise it returns NO.
- Since:
- v0.99.1
Definition at line 120 of file ccTypes.h.
| static ccGridSize ccg |
( |
const int |
x, |
|
|
const int |
y | |
|
) |
| | [inline, static] |
Variable Documentation
Black Color (0,0,0).
Definition at line 66 of file ccTypes.h.
Blue color (0,0,255).
Definition at line 58 of file ccTypes.h.
Gray Color (166,166,166).
Definition at line 70 of file ccTypes.h.
Green Color (0,255,0).
Definition at line 60 of file ccTypes.h.
Magenta Color (255,0,255).
Definition at line 64 of file ccTypes.h.
Orange Color (255,127,0).
Definition at line 68 of file ccTypes.h.
Red Color (255,0,0,).
Definition at line 62 of file ccTypes.h.
White color (255,255,255).
Definition at line 54 of file ccTypes.h.
Yellow color (255,255,0).
Definition at line 56 of file ccTypes.h.