Game Development Community

Need a link or answer please.

by Sam Guffey · in Torque Game Engine · 09/10/2003 (1:09 am) · 2 replies

Im trying to get the value by running a printf in the engine and knowing all the conversions would be a great help.

I know %f = float, but Im not sure really what the rest are, could someone list them here so we can all see and I'll create a new post with the info.

F32 = %f
S32 = %d
U32 = ?

And so on.

#1
09/10/2003 (5:33 am)
msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_printf...

Just lookup the underlying data types for the TGE platform safe types (i.e. F32, S32, U32). In Visual C++ you can do this by right-click and choosing Goto Definition or by just hovering your mouse over it till a little pop-up text appears.
#2
09/10/2003 (5:53 am)
Man printf also works, if you're running in linux land.

Which you should be :P

(Confession: I do all my C++ work in VC7.1)