PDA

View Full Version : CUBE help :(



darketernal
02-17-2002, 11:48 AM
Can you post a simple CUBE code for me that i can copy paste to start out with Opengl , and use in Borland Builder 5.0?

Any response would be greatly appreciated http://www.opengl.org/discussion_boards/ubb/smile.gif



[This message has been edited by darketernal (edited 02-17-2002).]

nexusone
02-17-2002, 12:03 PM
You can find good examples here:
http://nehe.gamedev.net



Originally posted by darketernal:
Can you post a simple CUBE code for me that i can copy paste to start out with Opengl , and use in Borland Builder 5.0?

Any response would be greatly appreciated http://www.opengl.org/discussion_boards/ubb/smile.gif

[This message has been edited by darketernal (edited 02-17-2002).]

Gavin
02-18-2002, 06:52 AM
Use the glut function

darketernal
02-18-2002, 12:07 PM
No, those don't compile under Borland like i asked http://www.opengl.org/discussion_boards/ubb/frown.gif

rpxmaster
02-18-2002, 06:33 PM
Originally posted by darketernal:
No, those don't compile under Borland like i asked http://www.opengl.org/discussion_boards/ubb/frown.gif
Why don't they compile under Borland? Are you getting any linker errors? If you tell us what kind of problems you're having with NeHe's code, maybe we can help.

The code I write is based off of NeHe's VC++ code, and I use Borland C++ 5.02.

PigeonRat
02-19-2002, 12:15 AM
NeHe's code should work with Borland C++ Builder 5 - I don't use NeHe's code or Borland (Dev-C++ rocks) but it should compile.

What errors are you getting?

dutchstud
02-19-2002, 01:38 PM
http://www.sgi.com/software/opengl/examples/win32_tutorial/

all those worked for me, but i don't know what version i have.

john
02-19-2002, 01:41 PM
Of course they work for borland. do you know how many reserved words that are used in other compilers that DON"T work under the borland C++ compiler?
answer: not a hell of a lot. Maybe 'export' doesn't work, but that's probably it.

try and learn how to use your compiler before you start working out how to program with a graphics library?

cheers,
John