README.skia
1This is a nearly verbatim copy of the GLU tessellator source code from
2SGI's OpenGL Sample Implementation at
3http://oss.sgi.com/projects/ogl-sample/ . Per
4http://oss.sgi.com/projects/FreeB/ , the code is covered under the SGI
5Free Software License B, version 2.0, a copy of which is in
6LICENSE.txt in this directory.
7
8The following changes were made in order to incorporate this code:
9
10 - The addition of a simplified gluos.h to eliminate operating system
11 dependencies. The entry points to the tessellator were prefixed with
12 Sk_ to avoid symbol collisions with any host OS version of GLU via
13 #defines in gluos.h.
14
15 - The removal of inclusion of GL/glu.h and replacement with an
16 include of sk_glu.h.
17
18 - In tess.c, the obsolete entry points gluBeginPolygon,
19 gluNextContour and gluEndPolygon in tess.c were #if 0'd out.
20 Default branches were added to the switch statements in GotoState.
21
22 - In memalloc.h, the include of malloc.h was changed to an include
23 of stdlib.h.
24
25 - In normal.c, an unused variable "w" was removed from
26 __gl_projectPolygon. #if guards were placed around the definition
27 of the unused Normalize function.
28
29 - In priorityq-heap.c, an #include of <limits.h> was added.
30
31 - In sweep.c, IsWindingInside() was given a return value to silence a
32 warning-as-error in release builds.
33
34 - In sweep.c, DoneEdgeDict()'s fixedEdges was wrapped in #indef NDEBUG, to
35 silence a warning-as-error in release builds.
36
37 - In priorityq.c, render.c, and others: the construct "if(1)...else" was
38 replaced with "do{...}while(1)" to silence a warning-as-error in Mac builds.
39
40 - rename all __gl_ functions to Sk__gl_ to avoid conflicting with other
41 static linkers of this library.
42