[SDL] Proposal: SDL_GL_VIDEO_RAM

Ryan C. Gordon icculus at icculus.org
Mon Nov 13 11:37:26 PST 2006


A game I'm working on wants to know how much video RAM is available to 
the GL, so I wanted to hide the details inside SDL instead of link 
against Xlib directly.

Attached is a patch to implement this as a query to 
SDL_GL_GetAttribute(). Currently this is only implemented on X11, and 
only in cases where we have a means to determine it (that's with 
Nvidia's closed source drivers, or DRI on Linux, at the moment).

Mac OS X and Windows could implement this, too, in their own ways.

This isn't a complete patch, just enough to give you an idea of what I'm 
shooting for here.

--ryan.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SDL-glvideoram-RYAN1.diff
Url: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061113/1a346d3e/attachment.diff 


More information about the SDL mailing list