Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 always on top
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AsianSensation




PostPosted: Sat May 29, 2004 1:14 pm   Post subject: always on top

in OpenGL,

when I draw a picture, How do I make sure it's always on top, regardless of other object's Z distance? I want to have it such that the object is never covered up by another, even when I zoom in on the other objects.

and another thing, is there a command that will tell me a position relative to the screen? Such as maxx and maxy in turing?
Sponsor
Sponsor
Sponsor
sponsor
Catalyst




PostPosted: Sat May 29, 2004 1:46 pm   Post subject: (No subject)

q#1

draw everything else first
code:

glDisable (GL_DEPTH_TEST);

draw
code:

glEnable (GL_DEPTH_TEST);


q#2

use what the position is in GL coords (-1->1) then use that w/ the size of the window to calculate it
AsianSensation




PostPosted: Sat May 29, 2004 1:52 pm   Post subject: (No subject)

Very Happy
thanks Catalyst.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: