/* -*- Mode:C; Coding:us-ascii-unix; fill-column:132 -*- */
/**********************************************************************************************************************************/
/**
@file boxNaxis.h
@author Mitch Richling <http://www.mitchr.me>
@Copyright Copyright 1997 by Mitch Richling. All rights reserved.
@brief Build up geometry for a cube.@EOL
@Keywords none
@Std C89
***********************************************************************************************************************************/
/**********************************************************************************************************************************/
#define RADIUS 1
/**********************************************************************************************************************************/
void computeGeometry() {
/* Build our geometry up */
glNewList(1, GL_COMPILE);
glColor3f(1,1,1);
glPointSize(10.0);
/* Draw the x/y/z axis */
glBegin(GL_LINE_STRIP);
glColor3f(1, 0, 0);
glVertex3f( 0, 0, 0);
glVertex3f(1, 0, 0);
glVertex3f( 0, 0, 0);
glColor3f(0, 1, 0);
glVertex3f( 0, 0, 0);
glVertex3f(0, 1, 0);
glVertex3f( 0, 0, 0);
glColor3f(0, 0, 1);
glVertex3f(0, 0, 0);
glVertex3f(0, 0, 1);
glEnd();
/* Draw the box */
glBegin(GL_LINE_STRIP);
glColor3f(1, 1, 1);
glVertex3f( 1, -1, -1);
glVertex3f( 1, 1, -1);
glVertex3f(-1, 1, -1);
glVertex3f(-1, -1, -1);
glVertex3f( 1, -1, -1);
glVertex3f( 1, -1, 1);
glVertex3f( 1, 1, 1);
glVertex3f(-1, 1, 1);
glVertex3f(-1, -1, 1);
glVertex3f( 1, -1, 1);
glVertex3f( 1, 1, 1);
glVertex3f( 1, 1, -1);
glVertex3f(-1, 1, -1);
glVertex3f(-1, 1, 1);
glVertex3f(-1, -1, 1);
glVertex3f(-1, -1, -1);
glEnd();
glEndList();
} /* end func computeGeometry */
Generated by GNU Enscript 1.6.5.90.