Jump to content

  • Log In with Google      Sign In   
  • Create Account

User Interface


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 masonium   Members   -  Reputation: 118

Like
Likes
Like

Posted 31 August 2001 - 06:56 PM

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?

Sponsor:

#2 DavidH   Members   -  Reputation: 122

Like
Likes
Like

Posted 31 August 2001 - 11:22 PM

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

#3 Null and Void   Moderators   -  Reputation: 1087

Like
Likes
Like

Posted 01 September 2001 - 07:56 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!]




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS