adtools / os4sdl

Automatically exported from code.google.com/p/os4sdl
GNU Lesser General Public License v2.1
2 stars 2 forks source link

Changes to SDL to allow dinamically GL functions #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i've made some small changes to SDL that allow to load dinamycally mingl
functions based on powersdl version

1) must checked what are the real functions that mingl supports and add an
#ifndef on them.
2) the makefile must be changed to add a new file (i've included it in
SDL_os4video.c)

i've used two test files. one is testgl changed to allow the loading of
dynamic functions and testdyngl. This second file doesn't show nothing on
the screen but doesn't crash. i've also test it statically and the result
isi the same. so the problem is on minigl. of course on window it wrorks
correctly.

i've also correct two bugs in SDL_GL_STENCIL_SIZE and SDL_GL_DEPTH_SIZE
that was returning wrong values.
Attached the changed files against r5

Original issue reported on code.google.com by andrea.palmate@gmail.com on 5 Mar 2010 at 2:38

Attachments:

GoogleCodeExporter commented 9 years ago
the libsdl needed for the test files..

Original comment by andrea.palmate@gmail.com on 5 Mar 2010 at 2:41

Attachments:

GoogleCodeExporter commented 9 years ago
the libsdl needed for the test files..

Original comment by andrea.palmate@gmail.com on 5 Mar 2010 at 2:45

Attachments:

GoogleCodeExporter commented 9 years ago
Changes commited to the trunk.
I've test the game UFOAI that use dynamic GL loading and works correctly

Original comment by andrea.palmate@gmail.com on 16 Mar 2010 at 11:22