42
голосов
5ответов
30549 просмотров

OpenGL vs OpenGL ES 2.0 - Can an OpenGL Application Be Easily Ported?

I am working on a gaming framework of sorts, and am a newcomer to OpenGL. Most books seem to not give a terribly clear answer to this question, and I want to develop on my desktop using OpenGL, but execute the code in an OpenGL ES 2.0 environment. My question is twofold then: If I target my f...

1
голосов
1ответов
2876 просмотров

Преобразование примитивов OpenGL в OpenGLES

Я пытаюсь преобразовать следующий код из спецификации OpenGL 1.5. к спецификации OpenGLES 1.1 (num_x and num_y are passed into the function by arguments) ::glBegin(GL_LINES); for (int i=-num_x; i<=num_x; i++) { glVertex3i(i, 0, -num_y); glVertex3i(i, 0, num_y); } for (int i=-n...