User Interface
How would I display a user interface for a player in an fps, for example, if I am using gluLookAt for the camera positioning, like so:
gluLookAt(190.0f, 120.0f, 102.0f,
0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f);
How would I create a text-based user interface that shows ammo or something like that using either bitmap or outline fonts or any other method?
If your interested, I have made an object that can output text to specified screen coordinates, and use any windows font to do so. If your interested I could send you the code (it's in Delphi though, so if you use C you will have to alter the sytax slightly)
Edited by - DavidH on September 1, 2001 6:23:05 AM
Edited by - DavidH on September 1, 2001 6:23:05 AM
Use an orthographic projection matrix and alter the viewport (one of NeHe''s tutorials shows how to do this). Then you can just specify the pixel you want.
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement