cogl: Pull in the code for GLU tesselator from Mesa/SGI
authorNeil Roberts <neil@linux.intel.com>
Thu, 15 Apr 2010 23:28:15 +0000 (00:28 +0100)
committerNeil Roberts <neil@linux.intel.com>
Tue, 29 Jun 2010 19:37:13 +0000 (20:37 +0100)
commitfae4d6010639705b4a33367ce3850335e15e46ee
tree67f3074b3f0469ddb3097c6790660d8de19f342f
parent347f3b614dc542318065cefce7a4b6db56bc55e0
cogl: Pull in the code for GLU tesselator from Mesa/SGI

This copies the files for the GLU tesselator from Mesa. The Mesa code
is based on the original SGI code and is released under a BSD license.

The memalloc.h header has been replaced with one that forces the code
to use g_malloc and friends. The rest of the files are not altered
from the original so it should be possible to later upgrade the files
by simply overwriting them.

There is a tesselator.h header which is expected to be included by
rest of Cogl to use the tesselator. This contains a trimmed down
version of glu.h that only includes parts that pertain to the
tesselator. There is also a stub glu.h in the GL directory which is
just provided so that the tesselator code can include <GL/gl.h>
without depending on the system header. It just redirects to
tesselator.h
30 files changed:
clutter/cogl/cogl/Makefile.am
clutter/cogl/cogl/tesselator/GL/glu.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/Makefile.am [new file with mode: 0644]
clutter/cogl/cogl/tesselator/README [new file with mode: 0644]
clutter/cogl/cogl/tesselator/dict-list.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/dict.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/dict.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/geom.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/geom.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/gluos.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/memalloc.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/mesh.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/mesh.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/normal.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/normal.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/priorityq-heap.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/priorityq-heap.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/priorityq-sort.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/priorityq.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/priorityq.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/render.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/render.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/sweep.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/sweep.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/tess.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/tess.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/tesselator.h [new file with mode: 0644]
clutter/cogl/cogl/tesselator/tessmono.c [new file with mode: 0644]
clutter/cogl/cogl/tesselator/tessmono.h [new file with mode: 0644]
configure.ac