cocos2d-x  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCGLProgram.h File Reference
#include "ccMacros.h"
#include "cocoa/CCObject.h"
#include "CCGL.h"

Classes

class  CCGLProgram
 CCGLProgram Class that implements a glProgram. More...
 

Namespaces

 cocos2d
 

Constant Groups

 cocos2d
 

Macros

#define kCCShader_PositionTextureColor   "ShaderPositionTextureColor"
#define kCCShader_PositionTextureColorAlphaTest   "ShaderPositionTextureColorAlphaTest"
#define kCCShader_PositionColor   "ShaderPositionColor"
#define kCCShader_PositionTexture   "ShaderPositionTexture"
#define kCCShader_PositionTexture_uColor   "ShaderPositionTexture_uColor"
#define kCCShader_PositionTextureA8Color   "ShaderPositionTextureA8Color"
#define kCCShader_Position_uColor   "ShaderPosition_uColor"
#define kCCShader_PositionLengthTexureColor   "ShaderPositionLengthTextureColor"
#define kCCShader_ControlSwitch   "Shader_ControlSwitch"
#define kCCUniformPMatrix_s   "CC_PMatrix"
#define kCCUniformMVMatrix_s   "CC_MVMatrix"
#define kCCUniformMVPMatrix_s   "CC_MVPMatrix"
#define kCCUniformTime_s   "CC_Time"
#define kCCUniformSinTime_s   "CC_SinTime"
#define kCCUniformCosTime_s   "CC_CosTime"
#define kCCUniformRandom01_s   "CC_Random01"
#define kCCUniformSampler_s   "CC_Texture0"
#define kCCUniformAlphaTestValue   "CC_alpha_value"
#define kCCAttributeNameColor   "a_color"
#define kCCAttributeNamePosition   "a_position"
#define kCCAttributeNameTexCoord   "a_texCoord"

Typedefs

typedef void(* GLInfoFunction )(GLuint program, GLenum pname, GLint *params)
typedef void(* GLLogFunction )(GLuint program, GLsizei bufsize, GLsizei *length, GLchar *infolog)

Enumerations

enum  { kCCVertexAttrib_Position, kCCVertexAttrib_Color, kCCVertexAttrib_TexCoords, kCCVertexAttrib_MAX }
 
enum  {
  kCCUniformPMatrix, kCCUniformMVMatrix, kCCUniformMVPMatrix, kCCUniformTime,
  kCCUniformSinTime, kCCUniformCosTime, kCCUniformRandom01, kCCUniformSampler,
  kCCUniform_MAX
}