Commit Graph

11 Commits

Author SHA1 Message Date
Julien Fischer
4fac134384 Update programming style in OpenGL gears example.
extras/graphics/samples/gears/gears.m:
    As above.

    Replace tabs with spaces; delete trailing whitespace.
2022-01-23 15:02:29 +11:00
Julien Fischer
03c441fa8a Update programming style in OpenGL maze example.
Fix Makefiles for OpenGL examples on macOS.

extras/graphics/samples/maze.m:
extras/graphics/samples/globals.m:
    Update programming style.

    Replace tabs with spaces.

extras/graphics/samples/gears/Mmakefile.MacOSX:
extras/graphics/samples/maze/Mmakefile.MacOSX:
    Set header includes for the C compiler.

    Add a "run" target that sets DYLD_LIBRARY_PATH appropriately
    for running the examples in situ.
2022-01-23 14:49:50 +11:00
Paul Bone
fc4b3ff196 Remove .cvsignore files
Remove old .cvsignore files, moving their contents to .gitignore files.
There are now no .cvsignore files in the repository.

I've also sorted some .gitignore files and avoided repeating a pattern in a
subdirectory's .gitignore file when it is already mentioned in the parent
.gitignore file.
2017-04-04 12:05:56 +10:00
Julien Fischer
e7010327d9 Delete references to picreg.
browser/interactive_query.m:
extras/dynamic_linking/Mmakefile:
extras/graphics/mercury_glut/Mmakefile:
extras/graphics/mercury_glut/Mmakefile.MacOSX:
extras/graphics/samples/calc/Makefile:
extras/graphics/samples/gears/Mmakefile:
extras/graphics/samples/maze/Mmakefile:
extras/graphics/samples/pent/Mmakefile:
extras/morphine/non-regression-tests/Mmakefile:
extras/morphine/source/collect.op:
    As above.
2016-04-26 14:03:04 +10:00
Zoltan Somogyi
d33273d033 Tell vim not to expand tabs in Makefiles.
This file-specific setting will override a default setting of expandtabs
in $HOME/.vimrc.

*/Makefile:
*/Mmakefile:
    As above.

tests/hard_coded/.gitignore:
    Don't ignore the purity subdir. This ignore must have been left over
    from when purity.m was a test in hard_coded, not hard_coded/purity,
    and it ignored an executable, not a directory.
2015-01-08 22:07:29 +11:00
Julien Fischer
456d23953a Update the OpenGL samples to conform with recent standard library
Estimated hours taken: 0.1
Branches: main

Update the OpenGL samples to conform with recent standard library
changes.

extras/graphics/samples/gears/gears.m:
extras/graphics/samples/maze/maze.m:
extras/graphics/samples/maze/globals.m:
	Conform to recent library changes.

extras/graphics/mercury_glut/Mmakefile:
extras/graphics/mercury_opengl/Mmakefile:
extras/graphics/samples/gears/Mmakefile:
extras/graphics/samples/maze/Mmakefile:
	Update the list of X libraries required by Mesa.
2006-03-30 02:52:45 +00:00
Julien Fischer
66e5a99f43 Provide an example of a how mutables can be used with the OpenGL/GLUT
Estimated hours taken: 0.5
Branches: main

Provide an example of a how mutables can be used with the OpenGL/GLUT
bindings.

extras/graphics/samples/gears/gears.m:
	Use the mutables in place of the globals module we previously used.

	Don't pass the limit argument down to gears.init/2.  We can set its
	value directly after option processing now.

extras/graphics/samples/gears/globals.m:
	Delete this module.
2005-10-10 04:41:05 +00:00
Julien Fischer
aeca8fd712 Provide an example of how to use an initialise declaration in a library
Estimated hours taken: 0.1
Branches: main

Provide an example of how to use an initialise declaration in a library
binding.

extras/graphics/mercury_glut/glut.m:
	Use an initialise declaration to automatically initialise the GLUT
	binding.

extras/graphics/samples/gears/gears.m:
extras/graphics/samples/maze/maze.m:
	Conform to the above change.
2005-10-06 09:25:23 +00:00
Julien Fischer
cf0e6bc496 Make the OpenGL/GLUT bindings compatible with OS X.
Estimated hours taken: 3
Branches: main, release

Make the OpenGL/GLUT bindings compatible with OS X.

extras/graphics/mercury_opengl/mogl.m:
extras/graphics/mercury_opengl/mglu.m:
extras/graphics/mercury_glut/glut*.m:
	Make sure the appropriate header files are included on OS X
	systems.

	Remove some unecessary imports and change the imports so that
	they are one-per-line.

	Workaround a problem with Apple's OpenGL implementation.

extras/graphics/mercury_glut/README:
extras/graphics/mercury_opengl/README:
	Refer users to Mmakefile.MacOSX for instructions on how to build
	the binding on OS X.

extras/graphics/mercury_opengl/Mmakefile.MacOSX:
extras/graphics/mercury_glut/Mmakefile.MacOSX:
	New file.  OS X specific Mmakefile for the GLUT binding.

extras/graphics/samples/gears/*.m:
	Remove unecessary module imports.  Import modules
	one-per-line.

extras/graphics/*/.cvsignore:
	Add .cvsignore files.
2005-06-29 05:21:45 +00:00
Julien Fischer
080d0484b1 Provide a binding for glGetString().
Estimates hours taken: 1.5
Branches main.

extras/graphics/mercury_opengl/mogl.m:
	Provide a binding for glGetString().

	Fix the foreign proc attributes on mogl.is_list/4.  It doesn't make
	calls back to Mercury.

	Fix some typos.

extras/graphics/samples/gears/gears.m:
	Use mogl.get_string/4 to print out various details of the GL
	implementation at the beginning of this demo.
2005-01-06 05:45:19 +00:00
Julien Fischer
b4b56c8f3d Add a sample program that demonstrates the use of the
Estimated hours taken: 1.5
Branches: main

Add a sample program that demonstrates the use of the
GLUT binding.

extras/graphics/samples/gears/Mmakefile:
extras/graphics/samples/gears/gears.m:
extras/graphics/samples/gears/globals.m:
	Add a sample program for the GLUT binding.
2004-06-14 11:34:06 +00:00