Log in or register to post comments

Drawing text and open glprimitives

June 29, 2011 - 9:52am #1

Hi,

Can anyone tell me how can I draw text and opengl primtives (circles and rectangles) in jni? I have been looking around the internet and i only find it in java.

Thanks,

Catarina

Re: Drawing text and open glprimitives

June 30, 2011 - 1:41am #3

The free 3D modeler Blender has some functions for creating 3D text.
You can also import your own font.

Re: Drawing text and open glprimitives

June 29, 2011 - 8:16pm #2

Drawing text with OpenGL is challenging, it isn't built into the specification. I would suggest looking for a 3rd party library for rendering text with OpenGL ES.

OpenGL is designed for rendering 3D objects (typically models built out of triangles), not 2D primitives like circles and rectangles. You can render a plane object and texture it with whatever you like, but that isn't quite the same.

- Kim

Log in or register to post comments