[Plib-cvs] plib/examples/src/ssg/majik majik_demo.cxx,1.6,1.7
Brought to you by:
sjbaker
|
From: Sebastian U. <ud...@us...> - 2002-09-01 06:58:03
|
Update of /cvsroot/plib/plib/examples/src/ssg/majik
In directory usw-pr-cvs1:/tmp/cvs-serv6971/ssg/majik
Modified Files:
majik_demo.cxx
Log Message:
Mac OS-X compatibility; Minor cleanups
Index: majik_demo.cxx
===================================================================
RCS file: /cvsroot/plib/plib/examples/src/ssg/majik/majik_demo.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- majik_demo.cxx 1 Sep 2002 01:11:00 -0000 1.6
+++ majik_demo.cxx 1 Sep 2002 06:57:59 -0000 1.7
@@ -3,14 +3,23 @@
#include <ctype.h>
#include <string.h>
#ifdef WIN32
-#include <windows.h>
+# include <windows.h>
#else
-#include <unistd.h>
+# include <unistd.h>
#endif
#include <math.h>
#include <plib/ssg.h>
[...91 lines suppressed...]
sgVec4 *scolors = new sgVec4 [ (ntris+1) * (ntris+1) ] ;
sgVec2 *tcoords = new sgVec2 [ (ntris+1) * (ntris+1) ] ;
@@ -304,7 +313,7 @@
}
-void createTile ( ssgTransform *tile, int x, int y, ssgSimpleState *state )
+static void createTile ( ssgTransform *tile, int x, int y, ssgSimpleState *state )
{
float rr[] = { 0.0f, 6000.0f, 7000.0f, 12000.0f } ;
ssgRangeSelector *lod = new ssgRangeSelector () ;
@@ -322,7 +331,7 @@
Load a simple database
*/
-void load_database ()
+static void load_database ()
{
/*
Set up the path to the data files
|