[m-rev.] diff: add GLUT binding to extras

Julien Fischer juliensf at cs.mu.OZ.AU
Mon May 17 17:54:45 AEST 2004


Estimated hours taken: 12
Branches: main

This is for post-commit review (if anyone is interested).

Add the GLUT binding to extras.  I posted most of this the
other week, so the diff below only includes the Mmakefile and
README file.

I'll add some samples that makes use of this (and the opengl
binding) soon.

extras/graphics/mercury_glut/Mmakefile:
extras/graphics/mercury_glut/README:
extras/graphics/mercury_glut.m:
extras/graphics/mercury_glut/glut.m:
extras/graphics/mercury_glut/glut.window.m:
extras/graphics/mercury_glut/glut.overlay.m:
extras/graphics/mercury_glut/glut.model.m:
extras/graphics/mercury_glut/glut.callback.m:
extras/graphics/mercury_glut/glut.color_map.m:
	Add the GLUT binding to extras.

Julien.

Index: Mmakefile
===================================================================
RCS file: Mmakefile
diff -N Mmakefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Mmakefile	17 May 2004 07:17:36 -0000
@@ -0,0 +1,34 @@
+# To build the GLUT binding, do the following:
+#
+# $ mmake depend
+# $ mmake
+#
+# After which you can install by ...
+#
+# $ mmake install
+
+
+MAIN_TARGET = libmercury_glut
+
+# The following libraries are for X on Linux (Debian) using Mesa.
+
+# Libaries required by X windows.
+X_LIBS = -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -L/usr/X11R6/lib
+
+# Libraries required by OpenGL.
+GL_LIBS = -lGL -LGL
+
+MCFLAGS-mercury_glut+=--no-warn-nothing-exported --no-warn-interface-imports
+
+MCFLAGS += --halt-at-warn --transitive-intermodule-optimization \
+	--enable-termination
+
+MGNUCFLAGS = --pic-reg
+EXTRA_MLFLAGS = -shared
+
+MLLIBS = -lglut $(X_LIBS) $(GL_LIBS)
+
+depend: mercury_glut.depend
+
+install: libmercury_glut.install
Index: README
===================================================================
RCS file: README
diff -N README
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ README	17 May 2004 07:17:28 -0000
@@ -0,0 +1,12 @@
+This directory contains the package `mercury_glut'
+which is a Mercury binding to the GL utility toolkit (GLUT).
+
+GLUT provides a (relatively) platform independent API for
+writing OpenGL applications.  It provides most of the system
+dependent bits, such as window management, that the OpenGL API doesn't.
+
+See <http://www.opengl.org/resources/libraries/glut.html> for further
+details.
+
+The Mmakefile includes instructions for building and installing
+the library.

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list