PDA

View Full Version : Anyway to program OpenGL/GLUT NOT in VC++



08-12-2001, 09:13 PM
Ok, here's my dilemma in short. Last 2 weeks I've been searching off and on for a way to program in Opengl without using a system specific programming language *cough*VC++*cough*

It says GLUT is multiplatform, then when I go to the windows section to find out how to set it up so that I can program with it, it points me to VC++ ... excuse me while I gag http://www.opengl.org/discussion_boards/ubb/tongue.gif

99% of the windows tutorials for GLUT I've seen show how to program openGL in VC++. I'm a college student, so I don't have unlimited funds to pay for a $200 copy of a visual C++ program. I use the free command line program that Borland offers or I also have a copy of Codewarrior that I got last summer. I downloaded GLUT and stuck all the .h files in \include and .lib files in \lib.

What I'm looking for is a tutorial that shows me how to install/use it with the command line compiler or with Codewarrior. I know there has to be some way to program in Windows without using VC++ since it is said to be crossplatform.

mikael_aronsson
08-13-2001, 12:10 AM
Hi !

I guess it depends a bit on what you want to do, you could for example use Python to do OpenGL applications, this gives you pretty good platform independance, but it is not the fastest language in thw world...

Mikael

mikael_aronsson
08-13-2001, 12:12 AM
Hi again !

I do think I saw a tutorial on it some time ago, I will see if I can dig it up again....

Mikael

tfpsly
08-13-2001, 01:48 AM
Get cygwin. It's a free unix like C/C++ development enviroment for windows. Just great. That's what I use to compile my OpenGL/Glut Unix progs under win

Michael Steinberg
08-13-2001, 04:53 AM
BTW: Here in germany I could get a copy of VC++ as a student version for less than 50 bucks. Same applies to the OS.

tfpsly
08-13-2001, 06:52 AM
More important : cygwin does support OpenGL 1.2
No more function ptr to get, less extension to use...

[This message has been edited by tfpsly (edited 08-13-2001).]

SED
08-13-2001, 07:03 AM
http://www.mingw.org/

I compiled a few glut and OpenGL Win32 API executables with this compiler. It's free and it worked great. Id probably still be using it if I could have found a good IDE for it.

MSVC has spoiled me, 'specially when it comes to debugging.
Sean

Michael Steinberg
08-13-2001, 08:09 AM
tfpsly
Are you kidding?

Michael Steinberg
08-13-2001, 08:11 AM
Nothing I ever saw beats VC++ IDE. For release builds I'd then switch to the free borland compiler who is said to produce faster code.

Rob The Bloke
08-13-2001, 04:26 PM
Getting glut running is a bit of a pain with the borland command line compiler, you have to hack it a bit.....

I've got the pre-compiled libs and headers if you want them.....

tfpsly
08-13-2001, 10:27 PM
Michael, I am no kidding no
You can use cygwin with opengl1.2 headers and lib, having all the opengl1.2 and opengl extensions (if you #define GL_GLEXT_PROTOTYPE before including gl.h if I remember well) prototypes in the headers

08-16-2001, 08:56 AM
Cough up the $200 and use what real programmers use. Beg the money from your parents: tell them it's tuition for the real world

rts
08-16-2001, 12:21 PM
Originally posted by Kevgor:
Cough up the $200 and use what real programmers use. Beg the money from your parents: tell them it's tuition for the real world

?

"Real" programmers use gcc + gdb... and they don't cost $200.

DFrey
08-16-2001, 12:42 PM
Everybody knows "real" programmers just use hex editors.

mikael_aronsson
08-16-2001, 01:51 PM
Hi !
http://www.bloodshed.net/index.html

Bloodshed has a pretty good IDE for Mingw32, it's not perfect but OK.

Mikael