OpenGL integration!

Sam Lantinga wrote:

Thanks for the tip!
The CVS snapshot of SDL has a demo library using Mesa for GL rendering! :slight_smile:

Hmm can’t get it to work, it gives me an error message about clock skew
detected???, anyway, it’s under GPL, so not really all that useful to me.

emblem

Thanks for the tip!
The CVS snapshot of SDL has a demo library using Mesa for GL rendering! :slight_smile:
Check out SDL-demos/OpenGL/

I can’t get it to compile, but from looking at the source I don’t think you
resolved one of the problems I’m having, namely that OSMesa thinks it real
cool to but pixel 0 in the Lower left hand corner of the screen, so
everything is upside down…hmm…

I have managed to resolve my OpenGL problems by using the OSMESA
functions which render into an Offscreen Buffer. I will provide an SDL
BackBuffer as the pointer for this function and hope everything works
out.

emblem

Thanks for the tip!
The CVS snapshot of SDL has a demo library using Mesa for GL rendering! :slight_smile:
Check out SDL-demos/OpenGL/

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Thanks for the tip!
The CVS snapshot of SDL has a demo library using Mesa for GL rendering! :slight_smile:
Check out SDL-demos/OpenGL/

I can’t get it to compile, but from looking at the source I don’t think you
resolved one of the problems I’m having, namely that OSMesa thinks it real
cool to but pixel 0 in the Lower left hand corner of the screen, so
everything is upside down…hmm…

It does resolve that problem:

    /* Tell OSMesa that we use top-down bitmaps */
    OSMesaPixelStore(OSMESA_Y_UP, 0);

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/