Archived

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

Dip2K

[Q] How can I select Hardware Accelator for OpenGL?

Recommended Posts

Dip2K    122
How can I select Hardware Accelator for OpenGL? I want end-user to select supporting hardware accelator or not supporting no hardware accelator. How Can I do it ? Thanks for your reading, Have a good, guys..

Share this post


Link to post
Share on other sites
mars_888    122
I don''t think you can. It doesn''t work like D3D where you have to go trough all the steps to select a hardware accelerator. I think it all depends on which OpenGL driver the user has installed. But correct me if I''m wrong about this.

Share this post


Link to post
Share on other sites
NeoGL    122
If u want h/w acceleration, use extensions in your code. But make sure that in the absence of those extensions, the code still works in s/w mode. Apart from that if you want to give the user the ability to choose which driver they want like heidi or opengl, then you would have to dynamically load the opengl dlls.
Use LoadLibrary and then GetProcAddress() to get the address of all GL functions and typecast them to your function pointers/handlers. There is a lot more to it than just these,I suggest you read up on dynamic loading and if you have problems, mail me.

NeoGL

Share this post


Link to post
Share on other sites
zedzeek    529
it depends on what card you've got some cards only accelerate in 16bit colour or with smaller windows (640x480) or only fullscreen
so what u haveto do is enumerate all the pixel formats and see which ones are accelerated
take a scuzzy here http://www.pseudonymz.demon.co.uk/suppwin.html

http://members.xoom.com/myBollux

Edited by - zedzeek on October 29, 2000 8:42:15 PM

Share this post


Link to post
Share on other sites