OpenGL--help a newbie

Hey,

I’m trying to learn the SDL, and OpenGL, but the OpenGL Tutorial’s that =
SDL’s site points me to are way too generic. None of the examples use =
SDL headers or anything, so I was wondering if anyone could just send me =
a quick (basic) example of how to blit a white triangle or something =
onto the screen.

Thanks,
Cameron Matheson

If you want to learn openGL… you will find a lots of links for tutorial’s on
http://www.gamedev.net

See those on NeHe Production (there is a link on gamedev), they’re good.

–JeKoOn mer, 01 nov 2000, you wrote:

Hey,

I’m trying to learn the SDL, and OpenGL, but the OpenGL Tutorial’s that =
SDL’s site points me to are way too generic. None of the examples use =
SDL headers or anything, so I was wondering if anyone could just send me =
a quick (basic) example of how to blit a white triangle or something =
onto the screen.

Thanks,
Cameron Matheson


C’est ainsi que s’ach?ve ce mail… Et en vous laissant ? vos
m?ditations profondes, je vous souhaite le bonsoir.

from : @J.C

Hey,

I’m trying to learn the SDL, and OpenGL, but the OpenGL Tutorial’s that =
SDL’s site points me to are way too generic. None of the examples use =
SDL headers or anything, so I was wondering if anyone could just send me =
a quick (basic) example of how to blit a white triangle or something =
onto the screen.

If you download the source code to the tutorials on the page, you’ll see
that they all compile with SDL:
http://www.libsdl.org/opengl/intro.html

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Hi have a sengmant fault with SDL_DisplayFormat how make the code good.

I’m trying to learn the SDL, and OpenGL, but the OpenGL Tutorial’s that =
SDL’s site points me to are way too generic.

There is also good OpenGL information at
http://www.opengl.org/--

Nigel Stewart (@Nigel_Stewart)
Research Student, Software Developer
Y2K is the new millenium for the mathematically challenged.

Hi have a sengmant fault with SDL_DisplayFormat how make the code good.

Are you calling it on a valid surface after you have set a video mode?

A short code snippet might help.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software