Home My Page Projects Code Snippets Project Openings 3D graphics for Standard ML
Summary Activity SCM

SCM Repository

[sml3d] View of /trunk/doc/src/sml3d/vector.txt
ViewVC logotype

View of /trunk/doc/src/sml3d/vector.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1341 - (download) (annotate)
Thu Mar 20 17:23:26 2014 UTC (3 years, 6 months ago) by jhr
File size: 819 byte(s)
  Working on documentation
SML3d vector types
------------------

The SML3d library provides support for standard OpenGL vector types.

=== Floating-point vector types

[source,sml]
-------------------------
sys::[{sml3d-docbin}/extract-code.sh {sml3d-srcdir}/base/vec2-sig.sml]
-------------------------

[source,sml]
-------------------------
sys::[{sml3d-docbin}/extract-code.sh {sml3d-srcdir}/base/vec3-sig.sml]
-------------------------

[source,sml]
-------------------------
sys::[{sml3d-docbin}/extract-code.sh {sml3d-srcdir}/base/vec4-sig.sml]
-------------------------

=== Integer-vector types

OpenGL also allows data to be specified as vectors of 8-bit, 16-bit, and 32-bit signed
and unsigned numbers.
The SML3d library provides type definitions for these as well, but does not provide
any linear-algebra operations for these types.

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0