cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ccGLStateCache.h File Reference
#include <cstdint>
#include "platform/CCGL.h"
#include "platform/CCPlatformMacros.h"

Namespaces

 cocos2d
 Add deprecated global functions and variables here.
 
 cocos2d::GL
 

Enumerations

enum  {
  VERTEX_ATTRIB_FLAG_NONE = 0, VERTEX_ATTRIB_FLAG_POSITION = 1 << 0, VERTEX_ATTRIB_FLAG_COLOR = 1 << 1, VERTEX_ATTRIB_FLAG_TEX_COORD = 1 << 2,
  VERTEX_ATTRIB_FLAG_NORMAL = 1 << 3, VERTEX_ATTRIB_FLAG_BLEND_WEIGHT = 1 << 4, VERTEX_ATTRIB_FLAG_BLEND_INDEX = 1 << 5, VERTEX_ATTRIB_FLAG_POS_COLOR_TEX = (VERTEX_ATTRIB_FLAG_POSITION | VERTEX_ATTRIB_FLAG_COLOR | VERTEX_ATTRIB_FLAG_TEX_COORD)
}
 vertex attrib flags More...
 

Functions

void CC_DLL  (void)
 Invalidates the GL state cache. More...
 
var  ()
 Invalidates the GL state cache. More...
 
local  ()
 Invalidates the GL state cache. More...
 
void CC_DLL  (GLuint program)
 Uses the GL program in case program is different than the current one. More...
 
void CC_DLL  (GLuint program)
 Deletes the GL program. More...
 
var  ( var program)
 Deletes the GL program. More...
 
local  ( local program)
 Deletes the GL program. More...
 
void CC_DLL  (GLenum sfactor, GLenum dfactor)
 Uses a blending function in case it not already used. More...
 
var  ( var sfactor, var dfactor)
 Uses a blending function in case it not already used. More...
 
local  ( local sfactor, local dfactor)
 Uses a blending function in case it not already used. More...
 
void CC_DLL  (void)
 Resets the blending mode back to the cached state in case you used glBlendFuncSeparate() or glBlendEquation(). More...
 
void CC_DLL  (void)
 sets the projection matrix as dirty More...
 
void CC_DLL  (uint32_t flags)
 Will enable the vertex attribs that are passed as flags. More...
 
var  ( var flags)
 Will enable the vertex attribs that are passed as flags. More...
 
local  ( local flags)
 Will enable the vertex attribs that are passed as flags. More...
 
void CC_DLL  (GLuint textureId)
 If the texture is not already bound to texture unit 0, it binds it. More...
 
void CC_DLL  (GLuint textureUnit, GLuint textureId)
 If the texture is not already bound to a given unit, it binds it. More...
 
void CC_DLL  (GLuint textureId)
 It will delete a given texture. More...
 
void CC_DLL  (GLuint textureUnit, GLuint textureId)
 It will delete a given texture. More...
 
void CC_DLL  (GLenum texture)
 Select active texture unit. More...
 
local  ( local texture)
 Select active texture unit. More...
 
void CC_DLL  (GLuint vaoId)
 If the vertex array is not already bound, it binds it. More...