Archived

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

Jesper

Hadware acceleration

Recommended Posts

How do I make sure that my OpenGL app is using hardware acceleration? And how do I get exactly the screen mode I want, because the choosepixelformat function only gets the closest match. How do you get a screen mode(/pixelformat) with the resolution you want? Is it possible? Did that make any sense? Oh by the way this is in windows(if you haven''t figured it out by the choosepixelformat :-) ) thanks, Jesper BTW I did search trough the old postings, but I couldn''t find any answers. I see that people are getting flamed in this forum for not doing that.

Share this post


Link to post
Share on other sites
hello,

I can reply a part of your first question. I don''t see what you really want, and i assume you begin.
first of all, make sûre you''ve got a graphic card which support OpenGL (some cards only support directx). Then, you obligatory use the acceleration if you program and link with opengl and its libraries (under Windows it is OpenGL32.dll & .lib and Glu32.dll & .lib). Then your binary uses the hardware acceleration. Of course, all depends on the way you program and of what your graphic card support by hardware. Some hardware may be supported by some cards but not by another one. You need to see the specificities of you card in order to know that. Of course, main functionnalities are supported.

i hope this will help you.

Fratt

Share this post


Link to post
Share on other sites
quote:
Original post by Jesper
BTW I did search trough the old postings, but I couldn''t find any answers. I see that people are getting flamed in this forum for not doing that.
That''s interesting, because I just did a search for "hardware acceleration" in this forum for the past month and got a half dozen hits, including the following threads which should help:

http://www.gamedev.net/community/forums/topic.asp?topic_id=76657
http://www.gamedev.net/community/forums/topic.asp?topic_id=80010

As far as getting the resolution you want, you can find all the pixel formats supported by your drivers by iteratively calling DescribePixelFormat and examining the results to find the closest match.

Share this post


Link to post
Share on other sites
Just wanna let you know that I found what I was looking for.
The stuff below is my old reply.

--------

Myopic Rhino,
it seems that you are flaming me for not doing a proper search. hmmm...

Anyway thanks for the help, both of you. I'm used to working with D3D so I thought you had to choose whether you wanted to use hardware or software. I just wanted a straight answer.
I don't know why I´m fucking apologizing right now.

But I still have a question:
How do I get the resolution from the pixelformatdesc that I get from describepixelformat?

Right now I don't care much for doing a search on this, so go ahead and flame me.

- Jesper


Edited by - jesper on February 20, 2002 1:39:21 PM

Share this post


Link to post
Share on other sites
No, I guess you didn''t. I just took it as a flame.
I searched the messageboard between classes so I was kinda in a hurry.

Is it possible to get the resolution from the pfd?
Isn''t there another function that returns the resolution?
I haven''t been able to find the resolution in the pfd.

Thanks for replying so fast.

Jesper

Share this post


Link to post
Share on other sites
I wasn''t thinking earlier. The PFD has nothing to do with the resolution. A few days ago, someone posted about enumerating the available resolutions. You can see that here.

Share this post


Link to post
Share on other sites
I actually did search on "resoulution" and found someone who was talking about the enumdisplaysettings function, so I looked it up in the winapi. It''s a bit confusing going from directx to opengl ''cause opengl is half opengl and half windows, if you know what I mean.
Thanks again for your help.

Jesper

Share this post


Link to post
Share on other sites