[SDL] OpenGL Extensions
ali_lowe at sky.com
Mon Aug 10 11:03:52 PDT 2009
It's really early days but linked below is my first attempt at GLEW like
functionality for SDL.
I got around my linker issue with variables by passing it through a function
as you'll see in the code. If anyone knows how to do this correctly please
mail me as I'd really like to know!
All the code is automatically generated (and thus easy to maintain), I
tested this using the gl2 test under Windows by replacing the SDL_opengl.h
file and adding SDL_opengl.c to the VC project. I did have to comment out
2-3 references to the in-progress gl renderer in sdl_video.c due to a
conflict where it's trying to do some of the job that this new code now
handles. If we can get this code stable the conflict can simply be removed
from the gl renderer.
Many thanks to anyone who is willing to put aside some time and give this a
try or provide feedback.
Sam Lantinga-4 wrote:
> Sure, I'd be interested in seeing what you come up with. As you noted one
> of the issues with providing something like GLEW is keeping it up to date
> the spec changes.
> See ya!
> On Sun, Aug 9, 2009 at 4:29 AM, GMScribe <ali_lowe at sky.com> wrote:
>> I'm looking looking for code that is up to date. GLEW and GLEE seem to
>> hit a road block at openGL 3.0. I've checked the SVNs and these are also
>> lacking full support.
>> After looking at the code I've also come to the conclusion that updating
>> them would be a pain in the ass as how they're written is a little all
>> the place.
>> I'm considering, and yes partly to teach myself more about the basics of
>> openGL that aren't usually exposed to me (I've used GLEW in the past), to
>> create similar code based on SDL's existing functions like the one listed
>> that I can create a maintainable system that shares SDL's portability
>> than needing a slew of workarounds.
>> I'm also interested to see if people would like this feature as core to
>> As Sam mentioned in a previous post, the concept of SDL is to make a
>> and get out the way so that people can use whatever extensions they like,
>> however, the biggest pain in the ass is that anyone using openGL above
>> has a load of core extensions to load and possibly some none core too,
>> ultimately leading to most of them needing GLEW etc as a necessity. If
>> a necessity, why not provide it from the point of context creation?
>> as an optional flag or an extra function not requiring the including of
>> extra API.
>> One other consideration was that now gl3.h exists, we may see some
>> compatability issues from users mixing future version of GLEW/GLee and
>> SDL_opengl.h etc so I'm wanting to pre-empt this if possible by having
>> complete control over gl.h/gl3.h includes. Just another matter to
>> Many thanks,
>> Paulo Pinto wrote:
>> > Hi,
>> > what would your automation offer that
>> > GLEW (http://glew.sourceforge.net/) and
>> > GLEE (http://elf-stone.com/glee.php)
>> > don't offer already?
>> > If you are doing this to learn, then yeah, those functions
>> > are working on most systems.
>> > --
>> > Paulo
>> > On Fri, Aug 7, 2009 at 6:20 PM, GMScribe <ali_lowe at sky.com> wrote:
>> >> Hi guys,
>> >> I'm wanting to implement some form of automation in respect to openGL
>> >> extensions.
>> >> Could someone confirm if the following would work on most/all openGL
>> >> capable
>> >> systems?
>> >> http://sdl.beuc.net/sdl.wiki/SDL_GL_GetProcAddress
>> >> ttp://sdl.beuc.net/sdl.wiki/SDL_GL_GetProcAddress
>> >> If not, what kind of modifications may be involved?
>> >> Many thanks.
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/OpenGL-Extensions-tp24867770p24867770.html
>> >> Sent from the SDL mailing list archive at Nabble.com.
>> >> _______________________________________________
>> >> SDL mailing list
>> >> SDL at lists.libsdl.org
>> >> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>> > _______________________________________________
>> > SDL mailing list
>> > SDL at lists.libsdl.org
>> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>> View this message in context:
>> Sent from the SDL mailing list archive at Nabble.com.
>> SDL mailing list
>> SDL at lists.libsdl.org
> -Sam Lantinga, Founder and President, Galaxy Gameworks LLC
> SDL mailing list
> SDL at lists.libsdl.org
View this message in context: http://www.nabble.com/OpenGL-Extensions-tp24867770p24904488.html
Sent from the SDL mailing list archive at Nabble.com.
More information about the SDL