How can i use glTexEnvf on cocos2d-x 2.2.0 Or how to realize glTexEnvf function on the cocos2d-x 2.2.0?

How can i use glTexEnvf,glTexEnvi,glAlphaFunc on cocos2d-x 2.2.0
Or how to realize glTexEnvf function on the cocos2d-x 2.2.0?

In OpenGL ES 2.0, we have shaders, which can implement everything that glTextEn* does.
glTextEnv* isn’t in OpenGL ES 2.0, you can check the OpenGL ES 2.0 spec. And Cocos2d-x v2.x remove the dependency of OpenGL ES 1.1, only link to OpenGL ES 2.0.
Please use shader instead.