Documentation suggestion (OpenGL with dynamically loaded library)

Hi,

I’m new to SDL, OpenGL and MingGW, and I’m trying to write some
portable OpenGL code. My development machine is Gentoo Linux, and I
setup MinGW as a cross-compiler.

Earlier today my code had a bug - the Windows version crashed (during
the return from the function that uses OpenGL) with a segmentation
fault when I try using “simple” OpenGL functions. The Linux version of
my code worked perfectly.

I spent around 10 hours trying different packages, different version
of SDL, installing MinGW on Windows to see if that was different,
trying test/example code, debugging, etc. Nothing I did helped, other
peoples code had the same bug, hair loss was at record levels…

In the documentation for SDL_GL_GetProcAddress(), can someone add some
notes about using “APIENTRY”?

It’d help - I promise… :slight_smile:

Cheers,

Brendan

Brendan Trotter escreveu:

In the documentation for SDL_GL_GetProcAddress(), can someone add some
notes about using “APIENTRY”?

Even better, add a note about using GLEW instead. No need to get your
hands dirty with GetProcAddress. :P—
Daniel K. O.

Daniel K. O. wrote:

Brendan Trotter escreveu:

In the documentation for SDL_GL_GetProcAddress(), can someone add some
notes about using “APIENTRY”?

Even better, add a note about using GLEW instead. No need to get your
hands dirty with GetProcAddress. :stuck_out_tongue:


Daniel K. O.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

and add those notes to the documentation wiki on the sdl-homepage!