Advertisement

Lesson 17 and variables...

Started by June 20, 2000 02:54 PM
1 comment, last by Rudan 24 years, 5 months ago
How should I do to print variables with Nehe''s tutorial 17 about 2D Texture fonts? I have tried for a while now and can''t get it to work.
-----------------------------Reporter: Are they slow-moving, chief?Sheriff: Yeah, they're dead. They're all messed up.-Night of the living dead
using the glPrint func ??

int var = 6;
char mystr[256];

sprintf( mystr, "var is: %i", var );
glPrint( x, y, mystr, 0);

Ries
Advertisement
Damn Im stupid

Well, it works now.
Thanks...
-----------------------------Reporter: Are they slow-moving, chief?Sheriff: Yeah, they're dead. They're all messed up.-Night of the living dead

This topic is closed to new replies.

Advertisement