PDA

View Full Version : text output, pleeese help



01-06-2002, 08:31 AM
I've created a program using glui so when the user inputs various things into the text boxes the opengl window's drawing changes.
Some of the values inputed into the glui window are used in equasions to calculate other variables, i know the calculations are going ok, because that's how the opengl window changes. My problem: i want to output these variables that are calculated from the glui window inputs, directly onto the opengl window, the bigger problem is that they are floats...any help is appreciated, thanks

01-07-2002, 05:18 AM
one of you have to know this

spectrum
01-07-2002, 08:23 AM
use vsprintf to put the floats into a string.
then you can output the string.
if you don't know how, look at nehe's font
tutorial

spectrum

01-07-2002, 09:45 AM
thanks a ****-load