Commit 0940ba85 authored by pixhawk's avatar pixhawk

Removed GLUT

parent 964d7bcc

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

This diff is collapsed.
This diff is collapsed.
XCOMM Copyright (c) Mark J. Kilgard, 1994, 1997, 1998.
XCOMM Glut.cf - GLUT distribution Imakefile configuration info
/* LINUX USERS: Remove the "/* " characters in the #define line
below this comment in order to use Linux shared objects. */
/* #define UseSharedObjects 1 /**/
/* MESA USERS: Remove the "/* " characters in the #define line
below this comment and change the "#define MesaDir" line to
match the top-level directory of your Mesa source tree. */
/* #define UseMesa 1 /**/
#define MesaDir /usr/Mesa-3.0 /* UPDATE ME! */
#ifdef UseMesa
XCOMM using Mesa (the freeware OpenGL implementation) by Brian Paul
MESA_DIR = MesaDir
MESA_INCLUDE = -I$(MESA_DIR)/include
MESA_LIB = -L$(MESA_DIR)/lib
MESAGL = $(MESA_LIB) -lMesaGL
MESAGLU = $(MESA_LIB) -lMesaGLU
#endif
#ifndef MathLibrary /* introduced with X11R6 */
#define MathLibrary -lm
#endif
#ifndef SaberProgramTarget /* in X11R5 but removed in X11R6 */
#define SaberProgramTarget(program,srclist,objlist,locallibs,syslibs)
#endif
#ifdef SunArchitecture
/*
* Solaris has a non-standard way of placing libraries
* and header files. This should work for Template Graphics Systems'
* OpenGL implementation, assuming your OGLHOME and OPENWINHOME
* environment variables are set correctly.
*/
EXTRA_INCLUDES = -I$(TOP)/include -I$(OGLHOME)/include -I$(OPENWINHOME)/include $(MESA_INCLUDE)
#ifdef UseMesa
OPENGL = $(MESAGL)
GLU = $(MESAGLU)
#else
OPENGL = -L$(OGLHOME)/lib -lGL -L$(OPENWINHOME) -ldga
GLU = -L$(OGLHOME)/lib -lGLU
#endif
/* XXX Is this right, Template?? */
INVENTOR = -L$(OGLHOME)/lib -lInventor
GLUT_DEPLIBS = $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
GLUT_LIBS = $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
MUI_DEPLIBS = $(DEPMUI) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
MUI_LIBS = $(MUI) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
GLE_DEPLIBS = $(DEPGLE) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
GLE_LIBS = $(GLE) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
GLSMAP_DEPLIBS = $(DEPGLSMAP) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
GLSMAP_LIBS = $(GLSMAP) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
#else /* Everybody but Sun... */
#ifdef AlphaArchitecture
/* Alpha suggestions from Andrej Panjkov (mataap@pop.latrobe.edu.au). */
/* Andrej writes: There is a bug in one of the imake configuration
files supplied with Digital Unix 3.2c that will cause the build to
fail. In the file /usr/lib/X11/config/osflib.tmpl, the reference to
libXi.a should be changed to libXi.so (which is in the correct
directory /usr/shlib). Root access is needed to fix this bug. I
don't know if the bug persists in later versions of DU. */
#if 0 /* Not using now. */
/*
* Digital puts all Imake symbols for use with OpenGL in OpenGL.tmpl, so use
* the contents of that file instead of the definitions here.
*/
#include <OpenGL.tmpl>
EXTRA_INCLUDES = GLUTInclude $(MESA_INCLUDE)
#else
EXTRA_INCLUDES = -I$(TOP)/include $(MESA_INCLUDE)
#endif
INVENTOR = -lInventor
/* Suggested by Andrej Panjkov (mataap@pop.latrobe.edu.au) */
DEPGLUTLIB = $(TOP)/lib/glut/libglut.a
GLUTLIB = $(TOP)/lib/glut/libglut.a
GLUT_LIBS = $(GLUTLIB) $(GLULIB) $(GLLIB) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
GLUT_DEPLIBS = $(DEPGLUTLIB) $(DEPGLULIB) $(DEPGLLIB) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
MUI_LIBS = $(MUI) $(GLUTLIB) $(GLULIB) $(GLLIB) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
MUI_DEPLIBS = $(DEPMUI) $(DEPGLUTLIB) $(DEPGLULIB) $(DEPGLLIB) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
GLE_LIBS = $(GLE) $(GLUTLIB) $(GLULIB) $(GLLIB) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
GLE_DEPLIBS = $(DEPGLE) $(DEPGLUTLIB) $(DEPGLULIB) $(DEPGLLIB) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
GLSMAP_LIBS = $(GLSMAP) $(GLUTLIB) $(GLULIB) $(GLLIB) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
GLSMAP_DEPLIBS = $(DEPGLSMAP) $(DEPGLUTLIB) $(DEPGLULIB) $(DEPGLLIB) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
#else /* Everybody but Sun or DEC Alpha... */
/*
* This should work for normal vendors that put their OpenGL and X
* libraries and headers in standard places (or at least where
* imake configuration files know where they are).
*/
#ifdef HPArchitecture
/* Nate Robbins (E&S) reports that HP does not have its Xmu.h header in
the standard place. */
XMU_HEADERS = /usr/contrib/X11R5/include/
EXTRA_INCLUDES = -I$(TOP)/include -I$(XMU_HEADERS) $(MESA_INCLUDE)
#else
EXTRA_INCLUDES = -I$(TOP)/include $(MESA_INCLUDE)
#endif
GLUT_DEPLIBS = $(DEPGLUT) $(DEPXMULIB) $(DEPXLIB)
GLUT_LIBS = $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XLIB) MathLibrary
#ifdef UseMesa
OPENGL = $(MESAGL)
GLU = $(MESAGLU)
#else
OPENGL = -lGL
GLU = -lGLU
#endif
INVENTOR = -lInventor
GLUT_DEPLIBS = $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
GLUT_LIBS = $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
MUI_DEPLIBS = $(DEPMUI) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
MUI_LIBS = $(MUI) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
GLE_DEPLIBS = $(DEPGLE) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
GLE_LIBS = $(GLE) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
GLSMAP_DEPLIBS = $(DEPGLSMAP) $(DEPGLUT) $(DEPXMULIB) $(DEPXILIB) $(DEPXLIB)
GLSMAP_LIBS = $(GLSMAP) $(GLUT) $(GLU) $(OPENGL) $(XMULIB) $(XILIB) $(XLIB) MathLibrary
#endif
#endif
#ifdef UseSharedObjects
# for Linux shared objects
#ifndef AlphaArchitecture
DEPGLUT = $(TOP)/lib/glut/libglut.so /* from PFM 6/31/96 */
GLUT = $(TOP)/lib/glut/libglut.so /* from PFM 6/31/96 */
#endif
DEPMUI = $(TOP)/lib/mui/libmui.so
MUI = $(TOP)/lib/mui/libmui.so
DEPGLE = $(TOP)/lib/gle/libgle.so
GLE = $(TOP)/lib/gle/libgle.so
DEPGLSMAP = $(TOP)/lib/glsmap/libglsmap.so
GLSMAP = $(TOP)/lib/glsmap/libglsmap.so
#else
# for static objects
#ifndef AlphaArchitecture
DEPGLUT = $(TOP)/lib/glut/libglut.a
GLUT = $(TOP)/lib/glut/libglut.a
#endif
DEPMUI = $(TOP)/lib/mui/libmui.a
MUI = $(TOP)/lib/mui/libmui.a
DEPGLE = $(TOP)/lib/gle/libgle.a
GLE = $(TOP)/lib/gle/libgle.a
DEPGLSMAP = $(TOP)/lib/glsmap/libglsmap.a
GLSMAP = $(TOP)/lib/glsmap/libglsmap.a
#endif
CXXEXTRA_INCLUDES = -I/usr/include/CC $(EXTRA_INCLUDES) $(MESA_INCLUDE)
GLUT_INVENTOR_DEPLIBS = $(GLUT_DEPLIBS)
GLUT_INVENTOR_LIBS = $(INVENTOR) $(GLUT_LIBS)
#ifdef SGIArchitecture
/* For SGI C++ compiler, need to search extra dirs in make depend */
#undef CplusplusDependIncludes
#define CplusplusDependIncludes -I$(ROOT)/usr/include/CC
#endif
#ifndef NullParameter
/*
* NullParameter should be #define'ed to nothing in Imake.rules, but it has
* been reported to me that this is not always the case. If not, let
* Glut.cf #define it to nothing.
*/
#define NullParameter
#endif
#define GlutTestProgramTarget(name) NormalProgramTarget(name,name.o,$(GLUT_DEPLIBS),$(GLUT_LIBS),NullParameter)
#define MuiTestProgramTarget(name) NormalProgramTarget(name,name.o,$(MUI_DEPLIBS),$(MUI_LIBS),NullParameter)
#define SimpleGlutProgramTarget(name) NormalProgramTarget(name,name.o,$(GLUT_DEPLIBS),$(GLUT_LIBS),NullParameter)
#define NormalGlutProgramTarget(name,objs) NormalProgramTarget(name,objs,$(GLUT_DEPLIBS),$(GLUT_LIBS),NullParameter)
#define SimpleMuiProgramTarget(name) NormalProgramTarget(name,name.o,$(MUI_DEPLIBS),$(MUI_LIBS),NullParameter)
#define NormalMuiProgramTarget(name,objs) NormalProgramTarget(name,objs,$(MUI_DEPLIBS),$(MUI_LIBS),NullParameter)
#define SimpleGleProgramTarget(name) NormalProgramTarget(name,name.o,$(GLE_DEPLIBS),$(GLE_LIBS),NullParameter)
#define NormalGleProgramTarget(name,objs) NormalProgramTarget(name,objs,$(GLE_DEPLIBS),$(GLE_LIBS),NullParameter)
#define SimpleGlsmapProgramTarget(name) NormalProgramTarget(name,name.o,$(GLSMAP_DEPLIBS),$(GLSMAP_LIBS),NullParameter)
#define NormalGlsmapProgramTarget(name,objs) NormalProgramTarget(name,objs,$(GLSMAP_DEPLIBS),$(GLSMAP_LIBS),NullParameter)
#define SimpleGlutInventorProgramTarget(name) NormalCplusplusProgramTarget(name,name.o,$(GLUT_INVENTOR_DEPLIBS),$(GLUT_INVENTOR_LIBS),NullParameter)
#define NormalGlutInventorProgramTarget(name,objs) NormalCplusplusProgramTarget(name,objs,$(GLUT_INVENTOR_DEPLIBS),$(GLUT_INVENTOR_LIBS),NullParameter)
XCOMM end Glut.cf - GLUT distribution Imakefile configuration info
Title: OpenGL Utility Toolkit (GLUT)
Version: 3.7
Description: A 3-D graphics library which uses the OpenGL API.
Author: Mark J. Kilgard mjk@nvidia.com
Maintained-by: Mark J. Kilgard mjk@nvidia.com
Maintained-at: http://reality.sgi.com/opengl/glut3/glut3.html
Platforms: Any Unix system with ANSI C and X and OpenGL or Mesa -OR- Windows 95 or NT PC.
Copying-Policy: Freely redistributable, not public domain, see NOTICE
Keywords: Mesa, OpenGL, GLUT, windowing library
#define IHaveSubdirs
#define PassCDebugFlags
SUBDIRS = lib test progs
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
NOTICE: The OpenGL Utility Toolkit (GLUT) distribution contains source
code published in a book titled "Programming OpenGL for the X Window
System" (ISBN: 0-201-48359-9) published by Addison-Wesley. The
programs and associated files contained in the distribution were
developed by Mark J. Kilgard and are Copyright 1994, 1995, 1996, 1997, 1998
by Mark J. Kilgard (unless otherwise noted). The programs are not in the
public domain, but they are freely distributable without licensing
fees. These programs are provided without guarantee or warrantee
expressed or implied.
I acknowledge the assistance provided by William Mitchell in developing
GLUT's "fbc" interface for use by the f90gl Fortran 90 binding.
- Mark Kilgard
August 28, 1998
This note collects a bunch of portability issues that I've found in
ensuring that GLUT example source code is truly portable. I encourage
contributors to the GLUT source code distribution to review these
guidelines:
o Avoid variables, routines, or structure elements named "new" or
"delete" to avoid these C++ keywords.
o Avoid the "near" and "far" keywords introduced by Intel. Instead
try using "nnear" and "ffar" since these are common names in
graphics programming.
o Do not assume the <math.h> defines M_PI. Instead, after including
<math.h>, say the following:
-----------------------------------------------------------------------
/* Some <math.h> files do not define M_PI... */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
-----------------------------------------------------------------------
o If you use the GLU tessellator, when you define or declare
callback functions, use the "CALLBACK" calling convention
identifier. This is required for the callbacks to work correctly
under Win32. After including <GL/glut.h>, say the following:
-----------------------------------------------------------------------
/* Win32 calling conventions. */