Advertisement

loading .gifs?

Started by July 16, 2004 03:08 AM
1 comment, last by kc_0045 20 years, 4 months ago
Hey iv got 2 questions 1) does any one know a way to load gifs for texture use in opengl? like set the texture for the triangle to file "test.gif" frame 3 or somthing like that any ideas? 2) and how do you set open gui to use pixles not...what ever it uses? like so 0 0 is top left of the screen and 0 1 is open pixle down? that is for some Gui im trying to do. Well thanks in advanced.
1) You should find GIF format spec on wotsit.
2) Use ortho mode: glOrtho( 0, width, 0, height, -1, 1 ); There is a tutorial on nehe with more info how to do this.
You should never let your fears become the boundaries of your dreams.
Advertisement
all right thanks that works :D just one more thing...how can i get the x,y pos of the mouse relative to the screen? like so 0,0 would be the top left of the drawing screen thing? what i had just worked for the computer screen not just the game window.
thanks it advanced

This topic is closed to new replies.

Advertisement