Sign in to follow this  
IanPallton

(SDL) SDL_GetVideoInfo

Recommended Posts

If you have read the book Focus on SDL, there is a code example pretty early in there that uses SDL_GetVideoInfo to retrieve information about graphics capabilities. Compiling and running that program on my Linux machine reveals i get a 0 in all fields except for the wm_available field, i.e. there is no hardware capabilities at all. This sounds rather peculiar to me since my GFX card is a NVIDIA 6600GT and surely it has hardware support for blitting etc (I was expecting ones in all fields of the SDL_VideoInfo structure) Is this likely to be a driver issue on my linux system, or is this something else ? (i do not have the possibility to test on an Windows machine) Another intruiging bit of information is that on my laptop, with intel graphics the result is absolutely the same. Though both systems run Ubuntu 6.10 if that is vital. Best Regards

Share this post


Link to post
Share on other sites
Thanks for the information.

Though I fail to make it work with dga, I understand that it is buggy anyway, hopefully in the future we see better hardware support (not only in SDL)on linux and unix platforms.

If using SDL as a "helper" to set things up and load images etc though rendering the actual graphics using OpenGL, then I do get all the hardware benefits of the GPU ?

Best Regards

Share this post


Link to post
Share on other sites
Quote:
Original post by IanPallton
Thanks for the information.

Though I fail to make it work with dga, I understand that it is buggy anyway, hopefully in the future we see better hardware support (not only in SDL)on linux and unix platforms.

If using SDL as a "helper" to set things up and load images etc though rendering the actual graphics using OpenGL, then I do get all the hardware benefits of the GPU ?

Best Regards


Of course. Opengl through SDL is the same as through native window manager code.

It must be noted that SDL software mode can perform more than adequetly depending on what you are doing. I've never found it to be too slow for me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this