User forums > Using Code::Blocks

Stupid Question

(1/7) > >>

FlyingIsFun1217:
Hey, I'm back to bother again! :P

This time my question is simple. The answer isn't though, I'm sure.
What I am interested in doing is learning openGL, preferably using Code::Blocks to learn. What needs to be done before I can create my first app using OGL? Is there anything in particular that I need to download? Is there a way I need to set it up in C::B to compile right?
Also, are there any good tutorials that anybody knows of? I prefer anything without use of the Win32 API. I'm a wxWidgets kinda guy :)

Please don't consider this spam or off-topic. I just want to know this stuff before diving into OGL :)

Thanks!
FlyingIsFun1217

Auria:
You need to install OpenGL (duh! i'm being helpful :p ) and some windowing toolkit (GLUT, GLFW, SDL, wxWidgets, etc.) depending on your needs.

For Code::Blocks... just learn how to add header include paths and libs to it, should work the same with pretty much all libs.

courage:

--- Quote from: FlyingIsFun1217 on March 16, 2007, 01:05:15 am ---Also, are there any good tutorials that anybody knows of? I prefer anything without use of the Win32 API. I'm a wxWidgets kinda guy :)

--- End quote ---

NeHe OpenGL tutorials is the best tutorials I ever seen!
http://nehe.gamedev.net/

However, I consider you don't need to install OpenGL,
if you have an OpenGL accelerator video card or you don't use Win95/98.
Then, you could download any toolkit you like to instead of Win32 API.
I recommend SDL, because it supports the most platforms and has many optional packs to use.
(But in my early experience, glut seems to flip the video buffer more smoothly then SDL.
It's very strange. :?)

FlyingIsFun1217:
So really, everything that I need for coding in OGL is the machine I already have? I assume that there would be more setup to it than that... :)

I did see the NeHe tutorials, and they seemed great! The only problem I saw with them was that they all had refrences to the win32 API, which of course I wouldn't want to use.

I guess I can look more into using wxWidgets to display the OGL stuff. From what I've heard, it's not that easy though (Auria, can you say whether or not it's very difficult?), but nontheless, I will look into it :)

Thanks!
FlyingIsFun1217

Auria:

--- Quote from: FlyingIsFun1217 on March 16, 2007, 05:32:48 pm ---So really, everything that I need for coding in OGL is the machine I already have? I assume that there would be more setup to it than that... :)

I did see the NeHe tutorials, and they seemed great! The only problem I saw with them was that they all had refrences to the win32 API, which of course I wouldn't want to use.

I guess I can look more into using wxWidgets to display the OGL stuff. From what I've heard, it's not that easy though (Auria, can you say whether or not it's very difficult?), but nontheless, I will look into it :)

Thanks!
FlyingIsFun1217

--- End quote ---

Take a look here http://wxforum.shadonet.com/viewtopic.php?t=13195 at the bottom of the page i gave a sample of how to do it to a guy. Of course it depends what you want to do. I would recommend wxWidgets for applications, but if you want to make a game then GLFW or SDL would be more appropriate

Navigation

[0] Message Index

[#] Next page

Go to full version