开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜