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.