C++ Learning Community Forum
August 01, 2010, 02:38:16 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Hello. Smiley
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: DevCPP and OpenGL  (Read 1154 times)
TheInfernoSin
I'm full of questions!
Geekoid
*
Posts: 155

I'm full of questions!


View Profile WWW
« on: October 09, 2007, 09:25:34 PM »

Dev C++ and OpenGL

There are 3 things that you need to do:

i Download and install Dev C++

ii Download glut (OpenGL) and install into Dev Cpp

iii Create a project to run a suitable.cpp program

Steps i and ii can be combined by downloading Dev C++ with OpenGL already installed from http://staff.bath.ac.uk/abscjkw/ComputerPrograms/DevCpp/Dev-Cpp.zip.

To try out step iii, download the program OpenGLSpheresPC.cpp and the project OpenGLSpheres.dev into the same folder. Double click the project to open it and then go to Execute-> Compile & Run.
Step i

Dev C++ can be downloaded from www.bloodshed.net.
Step ii

To use Open GL install the correct version of glut DevPack go to http://www.nigels.com/glt/devpak.

Download glut.3.7.6+.DevPak to a local folder

In Dev C++ open the package manager:

Tools->Package Manager

Install the glut package:

Package->Install Package

Browse to the local location where the package was downloaded to follow the installation wizard

The glut package should now appear in the main pane

Exit package manager
Step iii

To compile, build and run using Dev C++: make a new project:

File->New->Project...

Select Empty Project type from the Basic tab window

Make sure C++ project is selected

Create the new project in the folder with the source file

Add the .cpp file to the project:

Project->add to project

select the .cpp file

Define the linker options:

Project->Project options

In the Parameters tab window add the following line in the Linker pane:

-lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32

click ok

Compile and run the project:

Execute->Compile & run

( Source: http://staff.bath.ac.uk/abscjkw/ComputerPrograms/DevCpp/DevCppOpenGL.html )
Logged

CPP-Source CleanScriptCopyrights to my code on cpp-source

Quote from: Shonoby
Am i going to learn all that, should i learn all that and then i decided that i would...
snowfell
N00b!!1
*
Posts: 2



View Profile
« Reply #1 on: March 30, 2008, 07:12:11 PM »

What does it take to use OpenGL in a game?  I was just wondering what steps I need to go through to make and sell a game (possibly in OpengG).  Is their any license that needs to be followed or credit given?
Logged
zaqufant
Farmer Brown
Dr. of C++ology
****
Posts: 963


Harder, better, faster, stronger.


View Profile
« Reply #2 on: April 08, 2008, 11:49:55 PM »

I don't think so. Don't quote me on this. Go to the openGL website. And, do you know how to use OpenGL, cause or even program, cause if not, you won't be making a game, much less selling it for a long time. Unless you have a lot of time on your hands, or you are just a natural born programmer. Not to get you down, just a forwarning disclamer.
Logged
C-Man
Does anyone even read this ?
Global Moderator
Dr. of C++ology
*****
Posts: 988



View Profile WWW
« Reply #3 on: April 09, 2008, 06:38:10 AM »

it's possible to sell small adictive games at the moment maybe not directly but still possible however don't get your hopes up at making the next CoD4 or Crysis
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!