Archived

This topic is now archived and is closed to further replies.

GekkoCube

OpenGL opengl backsurfaces and playing sounds

Recommended Posts

OK, im trying to migrate from directX to opengl...and im coming across questions that i need to be answered. so here goes... In directx i could create a surface, such as LPDIRECTDRAWSURFACE7 *lpBackSurface; then i could use this backsurface to draw text and stuff using windows GDI. how can i do this with opengl ??...i basically want to diplay text using windows textout(). And I''ve gotten very used to using directinput and directsound. how can opengl handle sound effects and input other than using windows of course? thanks fellow opengl programmers. ~ I am a DirectX to OpenGL convert! ~

Share this post


Link to post
Share on other sites
You can use OpenGL AND DirectInput/DirectSound in your application. Quake2 and Quake3 are good examples of this. OpenGL just does graphics

---------------

I finally got it all together...
...and then forgot where I put it.

Share this post


Link to post
Share on other sites
Yes, i am aware that i could use directsound and direcinput with opengl.

i just might do this if quake3 did this.

but i just wanted to keep my demos and games simple and compatible with any computer.

also, does it matter if i use winmain in my opengl win32 app?
I mean will it run on a max or linux machine?

~ I am a DirectX to OpenGL convert! ~

Share this post


Link to post
Share on other sites
>>also, does it matter if i use winmain in my opengl win32 app?
I mean will it run on a max or linux machine? <<
no, look at sdl
win gdi cant be mixed with opengl without a big performance drop + also flickering. look at using texture mapped fonts prolly nehe''s site will have an example of this

http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites