Glut for OS 9.2

Hello People,
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,
Ilya

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.
Thanks,
Ilya
(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 <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include #glut headder#
#include #openGL headder#
#include <fstream.h>

int appW = 600;
int appH = 600;
float mX,mY;
//drawing stuff

void draw()
{
glBegin (GL_POLYGON);
glVertex3f (0,0,0);
glVertex3f (10,0,0);
glVertex3f (10,10,0);
glVertex3f (0,10,10);
glVertex3f (0,0,10);
glVertex3f (10,10,10);
glEnd();
}

void myDisplay(void)
{
// 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
abort();

}

void mySpecialKey(int key, int x, int y)
{
}

void myIdle(void)
{
}

void init()
{
glPointSize(3.0);
glPointSize(3.0);
//clear display
glClearColor(0,0,0,0);

 //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)
{
srand (clock());

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.
Ilya

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
Ilya

Well… when I tried to do that it gave me an Error -39 as fast as it finished to dl.
Thnx,
Ilya

The download works fine. Try again.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.