itex demo
#
# Revision 3.0  1998/06/10 02:55:51  brianp
# initial revision
#


##### MACROS #####

INCDIR = ../include
LIBDIR = ../lib

GL_LIBS = -L$(LIBDIR) -lglut -lMesaGLU -lMesaGL -lm $(WLIBS)

LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)

PROGS = clearspd drawpix gamma gears glinfo glutfx isosurf \
	morph3d multiext osdemo paltex pointblast reflect \
	renormal spectex stex3d tessdemo texcyl texobj trispd winpos


##### RULES #####

.SUFFIXES:
.SUFFIXES: .c

.c: $(LIB_DEP)
	$(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@


##### TARGETS #####

default:
	@echo "Specify a target configuration"

clean:
	-rm *.o *~

realclean:
	-rm $(PROGS:=.exe)
	-rm *.o *~

targets: $(PROGS)

include ../Make-config


                                                                                                                                                                                                                                                                                            /* $Id: bounce.c,v 3.3 1999/03/18 08:16:14 joukj Exp $ */

/*
 * Bouncing ball demo.  Color index mode only!
 *
 * This program is in the public domain
 *
 * Brian Paul
 */

/* Conversion to GLUT by Mark J. Kilgard */

/*
 * $Log: bounce.c,v $
 * Revision 3.3  1999/03/18 08:16:14  joukj
 *
 *     cmpstr needs string.h to included to avoid warnings
 *
 * Revision 3.2  1998/11/28 01:13:02  brianp
 * now sets an initial window position and size
 *
 * Revision 3.1  1998/11/28 01:06:57  brianp
 * now works in RGB mode by default
 *
 * Revision 3.0  1998/02/14 18:42:29  brianp
 * initial rev
 *
 */


#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <GL/glut.h>

#define COS(X)   cos( (X) * 3.14159/180.0 )
#define SIN(X)   sin( (X) * 3.14159/180.0 )

#define RED 1
#define WHITE 2
#define CYAN 3

GLbool