Setup OpenGL? - complete noob here

Hi, I’m new! :smiley:

I have a C++ project running which I’m working on (2d side-view platformer shooter (like mario, but then with guns)), and I want to include some OpenGL for some nice effects (lightning, particles).

I first need to setup OpenGL I think, and I wonder if you guys could help me out.

I use Dev-C++.

Originally posted by SharQueDo:
[b]Hi, I’m new! :smiley:

I have a C++ project running which I’m working on (2d side-view platformer shooter (like mario, but then with guns)), and I want to include some OpenGL for some nice effects (lightning, particles).

I first need to setup OpenGL I think, and I wonder if you guys could help me out.

I use Dev-C++.[/b]
I think that in Dev-C++ you should already have everything you need for openGL programming ( look at include/GL/… and lib/libopengl32.a in your dev-cpp directory )
If you want to use for example GLUT then ( I think ) you can download it as a Package for Dev-Cpp ( Tools/“Check for Updates/Packages” )

I heard about GL, GLu, GLUT and GLaux. What are they? Which ones do I need?

And I’m using SDL on Windows, can I use SDL_opengl.h? :rolleyes:

See http://nehe.gamedev.net

This site has tutorials that will walk you through the basics and beyond

Okay, I included SDL_opengl.h and now I need to init it.

I’m making a 2d game, not with any 3d or depths or something.

Can anyone tell/explain me what (init functions) I need?

SDL provides very good documentation:

http://www.libsdl.org/index.php