Open GL

May 27, 2010 at 4:45am
I am trying to learn OpenGL from a Book called Addison.Wesley.OpenGL.Programming.Guide.7th.Ed

But my question is

Can I write the OpenGL code in devc++ ?


And What should I do So i can Compile it

How should I add library Can anybody give me a reference or step by step info
May 27, 2010 at 10:26am
http://nehe.gamedev.net/

This is a tutorial for OpenGL that specifically adresses development in a C++ environment.
May 27, 2010 at 10:58am
... and only applies to windows.
May 27, 2010 at 11:33am
I assumed that would not be a problem since he want to use devc++
May 27, 2010 at 11:58am
True, but I don't think people should actively taught to do things in a platform-specific way. Where unavoidable and practical, yeah; but OpenGL is specifically designed to be cross-platform.

@OP,
I would recommend you learn to use SFML (Simple and Fast Multimedia Library). It is a very powerful, flexible, intuitive, easy-to-learn and easy-to-use library which has an excellent OpenGL interface, as well as support for playing sounds, interfacing with mouse, keyboard and joysticks, and it also has timers, random number generators and a cross-platform threading library. In short, it's an excellent library.

You can download it here: http://www.sfml-dev.org/download.php
And learn how to use it here: http://www.sfml-dev.org/tutorials/1.6

Can I write the OpenGL code in devc++ ?

Yes, but I would not recommend it. The SFML tutorial I linked above describes how to set up SFML with the Code::Blocks IDE, which is far superior to Dev-C++ (Dev-C++ hasn't been updated since 2005).

What should I do So i can Compile it

Once you have downloaded and installed SFML and Code::Blocks, follow the instructions to set up SFML with Code::Blocks. After this, you can simply follow the SFML tutorials and then start with the book. I'd guess you'll need to download, install and configure OpenGL too. It shouldn't be difficult.

You can get OpenGL here: http://www.opengl.org/
Code::Blocks can be found here: http://www.codeblocks.org/downloads

I think I've answered the third question already.
May 27, 2010 at 12:28pm
I wanted to ask that can I make small games like snake and all in SFML and C++?

And also one more thing Is it there How to move snake or that object which i want?
Last edited on May 27, 2010 at 12:30pm
Topic archived. No new replies allowed.