CCShaderAttribute Constants Reference

Declared in CCShader.h

CCShaderAttribute

GL attribute locations for built-in Cocos2D vertex attributes. Used by CCShader.

Definition

typedef NS_ENUM(NSUInteger, CCShaderAttribute ) {
   CCShaderAttributePosition,
   CCShaderAttributeTexCoord1,
   CCShaderAttributeTexCoord2,
   CCShaderAttributeColor,
};

Constants

CCShaderAttributePosition

Position

Declared In CCShader.h.

CCShaderAttributeTexCoord1

Texture Coordinate 1 (main)

Declared In CCShader.h.

CCShaderAttributeTexCoord2

Texture Coordinate 2 (extra)

Declared In CCShader.h.

CCShaderAttributeColor

Color

Declared In CCShader.h.

Declared In

CCShader.h