Hi, I was trying to make an OpenGL/SDL program with 3D graphics, but the code I've written doesn't work. I made an OpenGL/SDL program that displays in 2D with no problems, so I think my OpenGL code is the problem and not my SDL code (I'm not entirely sure though).

The program runs and displays a black window, and closes when I click the window's close button.

Attached is my C source, which is linked against SDL, SDLmain, OpenGL, and GLU.

Fixed the problem, turns out all I had to do was add Z values.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.