CUBE help :(

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

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

You can find good examples here:
http://nehe.gamedev.net

Originally posted by darketernal:
[b]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

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

Use the glut function

No, those don’t compile under Borland like i asked

Originally posted by darketernal:
No, those don’t compile under Borland like i asked

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.

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?

http://www.sgi.com/software/opengl/examples/win32_tutorial/

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

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