I have recently got an internship which required me to use Mac (OS 9.2). I am a win2k and linux user so I am not very familiar to Mac. I was wondering is there and where I can download glut for OS 9.2. Thank you very much,
You can download the OpenGL 1.2.1 SDK for Mac OS 9 from http://developer.apple.com (sorry you’ll have to hunt a bit).
It includes GLUT.
yes but the only library that I found their was “openglutility” library.
(actuall glut seems to be only found for os X)
In the libraries folder on the disk image that the SDK comes on there’s carbon_glut.lib, glut.lib, mui.lib and OpenGLLibraryStub, OpenGLMemoryStub, OpenGLUtilityStub.
If you’re doing a Carbon program, you’ll need carbon_glut.lib, OpenGLLibraryStub and OpenGLUtilityStub at least.
what I meant is is their like a glut.h? I am trying to compile the code below, it is a working (on windows) basecode that currently does nothing more then create one polygon…
#include #glut headder#
#include #openGL headder#
int appW = 600;
int appH = 600;
// clear display
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
// set viewing glViewport( 0,0,appW,appH ); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(55, appW/appH, 1, 400); gluLookAt(0,0,50,0,0,0,1,0, 0); // set modeling glMatrixMode(GL_MODELVIEW); glLoadIdentity(); // draw code here draw (); // post draw glutSwapBuffers(); glutPostRedisplay();
void myReshape(int width, int height)
appW = width;
appH = height;
void myMouse( int button, int state, int x, int y )
void myMouseMotion( int x, int y )
mX = x;
mY = appH-y;
void myPassiveMotion( int x, int y )
void myKey(unsigned char key, int x, int y)
if (key==27) // escape key
void mySpecialKey(int key, int x, int y)
//enable things glEnable( GL_COLOR_MATERIAL ); glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glShadeModel(GL_SMOOTH); glDisable( GL_TEXTURE_2D ); printf ("Loading Modle... "); //in future I'll beed to load csv strings here printf ("Modle Loaded.
int main(int argc, char **argv)
glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); glutInitWindowSize(appW,appH); glutInitWindowPosition (100, 150); glutCreateWindow("OBJ loader"); //glutFullScreen(); glutDisplayFunc(myDisplay); glutReshapeFunc(myReshape); glutMouseFunc(myMouse); glutMotionFunc(myMouseMotion); glutPassiveMotionFunc(myPassiveMotion); glutKeyboardFunc(myKey); glutSpecialFunc(mySpecialKey); glutIdleFunc(myIdle); init(); glutMainLoop(); return 0;
“libraries folder on the disk image that the SDK comes on there’s carbon_glut.lib, glut.lib, mui.lib and OpenGLLibraryStub, OpenGLMemoryStub, OpenGLUtilityStub.”
srry I really don’t know what you are talking about (“libraries folder on the disk image that the SDK comes on”) I don’t have glut.lib, that is I am sure of. I am using os 9.2. It is my first time on mac… i usually use win or linux.
It’s all in the SDK. Download it from developer.apple.com. Do a search for “OpenGL 1.2.1 SDK” on that site. You’ll find OpenGL_SDK_1.2.img.bin which has headers, libraries, example projects and source, and probably instructions for setting it all up in CW.
k, thnx, i’ll try
Well… when I tried to do that it gave me an Error -39 as fast as it finished to dl.
The download works fine. Try again.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.