I need to convert code from OpenGL to OpenGL ES 1.1, I found that the GLUT library is missing in that. Can anyone tell me what do I do to replace glRasterPos3f
in OpenGL?

- 23,811
- 2
- 63
- 95

- 41
- 1
- 2
2 Answers
You don't just convert from OpenGL to OpenGL ES, as OpenGL takes shortcuts which are not implemented in ES. As Sam points out, glRasterPos* for instance has no equivalent, because it is not very useful. I doubt glRasterPos3f() is the only function missing to port you project from GL to ES, and you won't find function-to-function replacements for most of them.
I'll advise you to learn what is OpenGL ES actually before starting anything. It is easily portable to OpenGL (the other way is NOT true), and will teach you some good habits (do not use glVertex*(), use object buffers, don't change states all the time, etc). But porting bare GL to ES ? Forget it.

- 450
- 4
- 7
-
So how would you recommend porting an OpenGL game to iOs? A rewrite of the engine? – Rory Harvey Dec 07 '11 at 16:18
-
4This is a terrible answer. Of course, it's possible to port from OpenGL to OpenGL ES. A proper answer would list the steps. – jcoffland Nov 13 '19 at 21:03
This Qt4 example has some information about porting from OpenGL to OpenGL ES:
https://doc.qt.io/archives/qt-4.8/qt-opengl-hellogl-es-example.html

- 121
- 2
-
1Welcome to GDSE & thanks for contributing. As currently written, this is a link only answer. Please consider editing it to include more information. – Pikalek Nov 18 '19 at 23:10
glRasterPos3f
for? Usually it's not reall needed; if you use it to render bitmaps such as letters, you will need to change your code so that it uses textured quads, for instance. – sam hocevar Dec 06 '11 at 09:15