print text open gl

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

print text open gl

Postby carlos390 » Thu Nov 19, 2009 3:41 pm

hello, I would like to know how to print text in open gl, the idea is to show an information on the screen.

I wonder if this code helps me.

void mostra_text(char cadena[], float x, float y) {
int tmp;
for(tmp=0; tmp < strlen(cadena); tmp++) { glRasterPos2f( x + tmp*ESPAI, y );
Once Poster
Once Poster
Posts: 1
Joined: Thu Nov 19, 2009 3:39 pm


Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest