rotate verticies es2
how do i rotate verticies in opengl es2
in es1 i can just do glRotatef(transY, 0, 0, 1);
how开发者_C百科ever under es2 it crashes
is the same thing possible in es2
using iphone sdk for xcode
In OpenGL ES2 the glRotatef()
function no longer exists. Instead I believe you need to use a vertex shader to accomplish the desired translation. The following resources may be helpful:
OpenGL ES2 API Documentation
Shader Tutorial
精彩评论