开发者

rotate verticies es2

开发者 https://www.devze.com 2023-02-19 12:30 出处:网络
how do i rotate verticies in opengl es2 in es1 i can just do glRotatef(transY, 0, 0, 1); how开发者_C百科ever underes2 it crashes

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

精彩评论

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

关注公众号