Background image/mp3 help!
Hi everyone! I''m new here so please help me...
I''m doing this class project in OpenGL and I am having a lot of difficulties and hope I can get help with you experts here...
Here are some things that I wanted to do but can''t exactly locate in the tutorial...
1) a way to setup a background image for my .c file...
2) a way to playback mp3
3) to ask the user and play the program in full screen mode
if anyone can help me or give me hints on how to do all or any one of the above I would be greatly appreciated...I would be really happy if someone would like to take a look at my code and help me with it. I can email the code to you.
Thanks for looking at this!
1) if by a background image you mean like an image on the screen then you need to draw a quad with your image textured to it - read on in the OpenGL tutorials if you already haven''t. While you do this i suggust you disable depth testing then re-enable it when you draw the rest of the stuff. That way anything you draw will be draw over your "background"
2) for mp3 playback there are many ways. You really have to decide which dll you are going to use. Dont worry its easy. I use fmod and a tutorial for it can be found under www.gametutorials.com - it takes a bit of looking (probably under the c section). There are other dll of course like OpenAL and bass.dll but i started with fmod because there is a tutorial.
3) To ask the user to play a program in fullscreen mode all you really have to do is use basecode on NeHe''s site. My preference is the dialog version but there are others and all do essentially the same thing - do you want to run full screen mode?
2) for mp3 playback there are many ways. You really have to decide which dll you are going to use. Dont worry its easy. I use fmod and a tutorial for it can be found under www.gametutorials.com - it takes a bit of looking (probably under the c section). There are other dll of course like OpenAL and bass.dll but i started with fmod because there is a tutorial.
3) To ask the user to play a program in fullscreen mode all you really have to do is use basecode on NeHe''s site. My preference is the dialog version but there are others and all do essentially the same thing - do you want to run full screen mode?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement