[Q] How can I select Hardware Accelator for OpenGL?
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..
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.
Prosser: But the plans were on display.Arthur Dent: On display? I eventually had to go down to the cellar.Prosser: That's the display department.Arthur Dent: With a torch.Prosser: The lights had probably gone.Arthur Dent: So had the stairs.Prosser: But you did see the notice, didn't you?Arthur Dent: Oh, yes. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign outside the door saying "Beware of the Leopard." Ever thought of going into advertising?
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
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
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement