PDA

View Full Version : Setup OpenGL? - complete noob here



SharQueDo
10-23-2005, 05:23 AM
Hi, I'm new! :D

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++.

Trahern
10-23-2005, 05:49 AM
Originally posted by SharQueDo:
Hi, I'm new! :D

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++.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" )

SharQueDo
10-23-2005, 09:30 AM
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:

UrbanLegend
10-23-2005, 09:47 AM
See http://nehe.gamedev.net

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

SharQueDo
10-23-2005, 09:51 AM
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?

jide
10-23-2005, 12:01 PM
SDL provides very good documentation:

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