├── README.md ├── bin ├── .DS_Store ├── data │ ├── .DS_Store │ ├── FuturaLT.ttf │ └── settings.xml └── emptyExample.app │ └── Contents │ ├── Frameworks │ └── GLUT.framework │ │ ├── GLUT │ │ ├── Headers │ │ ├── copy.h │ │ ├── extrude.h │ │ ├── glsmap.h │ │ ├── glsmapint.h │ │ ├── glut.h │ │ ├── glutbitmap.h │ │ ├── glutf90.h │ │ ├── glutstroke.h │ │ ├── gutil.h │ │ ├── intersect.h │ │ ├── port.h │ │ ├── rot.h │ │ ├── segment.h │ │ ├── tube.h │ │ ├── tube_gc.h │ │ └── vvector.h │ │ ├── Resources │ │ ├── Caution.tiff │ │ ├── English.lproj │ │ │ ├── GLUT.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ │ ├── GLUTClipboard.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ │ ├── GLUTPreferences.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ │ ├── GLUTUI.strings │ │ │ └── InfoPlist.strings │ │ ├── Info.plist │ │ ├── blankCursor.tiff │ │ ├── bottomCursor.tiff │ │ ├── bottomleftCursor.tiff │ │ ├── bottomrightCursor.tiff │ │ ├── crossCursor.tiff │ │ ├── cycleCursor.tiff │ │ ├── destroyCursor.tiff │ │ ├── fingerCursor.tiff │ │ ├── helpCursor.tiff │ │ ├── leftCursor.tiff │ │ ├── leftRightCursor.tiff │ │ ├── rightArrowCursor.tiff │ │ ├── rightCursor.tiff │ │ ├── sprayCursor.tiff │ │ ├── topCursor.tiff │ │ ├── topleftCursor.tiff │ │ ├── toprightCursor.tiff │ │ ├── upDownCursor.tiff │ │ └── waitCursor.tiff │ │ └── Versions │ │ ├── A │ │ ├── GLUT │ │ ├── Headers │ │ │ ├── copy.h │ │ │ ├── extrude.h │ │ │ ├── glsmap.h │ │ │ ├── glsmapint.h │ │ │ ├── glut.h │ │ │ ├── glutbitmap.h │ │ │ ├── glutf90.h │ │ │ ├── glutstroke.h │ │ │ ├── gutil.h │ │ │ ├── intersect.h │ │ │ ├── port.h │ │ │ ├── rot.h │ │ │ ├── segment.h │ │ │ ├── tube.h │ │ │ ├── tube_gc.h │ │ │ └── vvector.h │ │ └── Resources │ │ │ ├── Caution.tiff │ │ │ ├── English.lproj │ │ │ ├── GLUT.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ │ ├── GLUTClipboard.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ │ ├── GLUTPreferences.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ │ ├── GLUTUI.strings │ │ │ └── InfoPlist.strings │ │ │ ├── Info.plist │ │ │ ├── blankCursor.tiff │ │ │ ├── bottomCursor.tiff │ │ │ ├── bottomleftCursor.tiff │ │ │ ├── bottomrightCursor.tiff │ │ │ ├── crossCursor.tiff │ │ │ ├── cycleCursor.tiff │ │ │ ├── destroyCursor.tiff │ │ │ ├── fingerCursor.tiff │ │ │ ├── helpCursor.tiff │ │ │ ├── leftCursor.tiff │ │ │ ├── leftRightCursor.tiff │ │ │ ├── rightArrowCursor.tiff │ │ │ ├── rightCursor.tiff │ │ │ ├── sprayCursor.tiff │ │ │ ├── topCursor.tiff │ │ │ ├── topleftCursor.tiff │ │ │ ├── toprightCursor.tiff │ │ │ ├── upDownCursor.tiff │ │ │ └── waitCursor.tiff │ │ └── Current │ │ ├── GLUT │ │ ├── Headers │ │ ├── copy.h │ │ ├── extrude.h │ │ ├── glsmap.h │ │ ├── glsmapint.h │ │ ├── glut.h │ │ ├── glutbitmap.h │ │ ├── glutf90.h │ │ ├── glutstroke.h │ │ ├── gutil.h │ │ ├── intersect.h │ │ ├── port.h │ │ ├── rot.h │ │ ├── segment.h │ │ ├── tube.h │ │ ├── tube_gc.h │ │ └── vvector.h │ │ └── Resources │ │ ├── Caution.tiff │ │ ├── English.lproj │ │ ├── GLUT.nib │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── objects.nib │ │ ├── GLUTClipboard.nib │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── objects.nib │ │ ├── GLUTPreferences.nib │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── objects.nib │ │ ├── GLUTUI.strings │ │ └── InfoPlist.strings │ │ ├── Info.plist │ │ ├── blankCursor.tiff │ │ ├── bottomCursor.tiff │ │ ├── bottomleftCursor.tiff │ │ ├── bottomrightCursor.tiff │ │ ├── crossCursor.tiff │ │ ├── cycleCursor.tiff │ │ ├── destroyCursor.tiff │ │ ├── fingerCursor.tiff │ │ ├── helpCursor.tiff │ │ ├── leftCursor.tiff │ │ ├── leftRightCursor.tiff │ │ ├── rightArrowCursor.tiff │ │ ├── rightCursor.tiff │ │ ├── sprayCursor.tiff │ │ ├── topCursor.tiff │ │ ├── topleftCursor.tiff │ │ ├── toprightCursor.tiff │ │ ├── upDownCursor.tiff │ │ └── waitCursor.tiff │ ├── Info.plist │ ├── MacOS │ ├── emptyExample │ └── libfmodex.dylib │ └── PkgInfo ├── emptyExample.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── kamend.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcshareddata │ └── xcschemes │ │ ├── emptyExample Debug.xcscheme │ │ └── emptyExample Release.xcscheme └── xcuserdata │ └── kamend.xcuserdatad │ ├── xcdebugger │ └── Breakpoints.xcbkptlist │ └── xcschemes │ └── xcschememanagement.plist ├── screen.png └── src ├── main.cpp ├── testApp.cpp └── testApp.h /README.md: -------------------------------------------------------------------------------- 1 | Kinect Delaunay Triangulation experiment 2 | ---------------------------------------- 3 | 4 | ![alt text](https://raw.github.com/kamend/KinectDelaunay/master/screen.png "Screenshot") 5 | 6 | Demo: 7 | 8 | Required Addons: 9 | 10 | https://github.com/neilmendoza/ofxPostProcessing 11 | https://github.com/obviousjim/ofxDelaunay 12 | https://github.com/ofTheo/ofxKinect 13 | https://github.com/openframeworks/openFrameworks/tree/master/addons/ofxGui 14 | 15 | -------------------------------------------------------------------------------- /bin/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/.DS_Store -------------------------------------------------------------------------------- /bin/data/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/data/.DS_Store -------------------------------------------------------------------------------- /bin/data/FuturaLT.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/data/FuturaLT.ttf -------------------------------------------------------------------------------- /bin/data/settings.xml: -------------------------------------------------------------------------------- 1 | 5 2 | 39.525001526 3 | 1.274999976 4 | 147 5 | 20 6 | 81.599998474 7 | 52.274997711 8 | 3 9 | 14.600000381 10 | 1 11 | 0 12 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/GLUT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/GLUT -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/copy.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * 4 | * Written By Linas Vepstas November 1991 5 | */ 6 | 7 | 8 | #define COPY_THREE_WORDS(A,B) { \ 9 | struct three_words { int a, b, c, }; \ 10 | *(struct three_words *) (A) = *(struct three_words *) (B); \ 11 | } 12 | 13 | #define COPY_FOUR_WORDS(A,B) { \ 14 | struct four_words { int a, b, c, d, }; \ 15 | *(struct four_words *) (A) = *(struct four_words *) (B); \ 16 | } 17 | 18 | /* ============================================================= */ 19 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/extrude.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * extrude.h 4 | * 5 | * FUNCTION: 6 | * prototypes for privately used subroutines for the tubing library 7 | * 8 | * HISTORY: 9 | * Linas Vepstas 1991 10 | */ 11 | 12 | #include "port.h" /* for gleDouble */ 13 | 14 | #ifndef M_PI 15 | #define M_PI 3.14159265358979323846 16 | #endif 17 | 18 | /* ============================================================ */ 19 | /* 20 | * Provides choice of calling subroutine, vs. invoking macro. 21 | * Basically, inlines the source, or not. 22 | * Trades performance for executable size. 23 | */ 24 | 25 | #define INLINE_INTERSECT 26 | #ifdef INLINE_INTERSECT 27 | #define INNERSECT(sect,p,n,v1,v2) { INTERSECT(sect,p,n,v1,v2); } 28 | #else 29 | #define INNERSECT(sect,p,n,v1,v2) intersect(sect,p,n,v1,v2) 30 | #endif /* INLINE_INTERSECT */ 31 | 32 | /* ============================================================ */ 33 | /* The folowing defines give a kludgy way of accessing the qmesh primitive */ 34 | 35 | /* 36 | #define bgntmesh _emu_qmesh_bgnqmesh 37 | #define endtmesh _emu_qmesh_endqmesh 38 | #define c3f _emu_qmesh_c3f 39 | #define n3f _emu_qmesh_n3f 40 | #define v3f _emu_qmesh_v3f 41 | */ 42 | 43 | /* ============================================================ */ 44 | 45 | extern void up_sanity_check (gleDouble up[3], /* up vector for contour */ 46 | int npoints, /* numpoints in poly-line */ 47 | gleDouble point_array[][3]); /* polyline */ 48 | 49 | 50 | extern void draw_raw_style_end_cap (int ncp, /* number of contour points */ 51 | gleDouble contour[][2], /* 2D contour */ 52 | gleDouble zval, /* where to draw cap */ 53 | int frontwards); /* front or back cap */ 54 | 55 | extern void draw_round_style_cap_callback (int iloop, 56 | double cap[][3], 57 | float face_color[3], 58 | gleDouble cut_vector[3], 59 | gleDouble bisect_vector[3], 60 | double norms[][3], 61 | int frontwards); 62 | 63 | extern void draw_angle_style_front_cap (int ncp, 64 | gleDouble bi[3], 65 | gleDouble point_array[][3]); 66 | 67 | extern void extrusion_raw_join (int ncp, /* number of contour points */ 68 | gleDouble contour[][2], /* 2D contour */ 69 | gleDouble cont_normal[][2],/* 2D contour normal vecs */ 70 | gleDouble up[3], /* up vector for contour */ 71 | int npoints, /* numpoints in poly-line */ 72 | gleDouble point_array[][3], /* polyline */ 73 | float color_array[][3], /* color of polyline */ 74 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 75 | 76 | 77 | extern void extrusion_round_or_cut_join (int ncp, /* number of contour points */ 78 | gleDouble contour[][2], /* 2D contour */ 79 | gleDouble cont_normal[][2],/* 2D contour normal vecs */ 80 | gleDouble up[3], /* up vector for contour */ 81 | int npoints, /* numpoints in poly-line */ 82 | gleDouble point_array[][3], /* polyline */ 83 | float color_array[][3], /* color of polyline */ 84 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 85 | 86 | 87 | extern void extrusion_angle_join (int ncp, /* number of contour points */ 88 | gleDouble contour[][2], /* 2D contour */ 89 | gleDouble cont_normal[][2],/* 2D contour normal vecs */ 90 | gleDouble up[3], /* up vector for contour */ 91 | int npoints, /* numpoints in poly-line */ 92 | gleDouble point_array[][3], /* polyline */ 93 | float color_array[][3], /* color of polyline */ 94 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 95 | 96 | /* -------------------------- end of file -------------------------------- */ 97 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/glsmap.h: -------------------------------------------------------------------------------- 1 | #ifndef __glsmap_h__ 2 | #define __glsmap_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1998. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #if defined(_WIN32) 11 | 12 | /* Try hard to avoid including to avoid name space pollution, 13 | but Win32's needs APIENTRY and WINGDIAPI defined properly. */ 14 | # if 0 15 | # define WIN32_LEAN_AND_MEAN 16 | # include 17 | # else 18 | /* XXX This is from Win32's */ 19 | # ifndef APIENTRY 20 | # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) 21 | # define APIENTRY __stdcall 22 | # else 23 | # define APIENTRY 24 | # endif 25 | # endif 26 | # ifndef CALLBACK 27 | /* XXX This is from Win32's */ 28 | # if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS) 29 | # define CALLBACK __stdcall 30 | # else 31 | # define CALLBACK 32 | # endif 33 | # endif 34 | /* XXX This is from Win32's and */ 35 | # ifndef WINGDIAPI 36 | # define WINGDIAPI __declspec(dllimport) 37 | # endif 38 | /* XXX This is from Win32's */ 39 | # ifndef _WCHAR_T_DEFINED 40 | typedef unsigned short wchar_t; 41 | # define _WCHAR_T_DEFINED 42 | # endif 43 | # endif 44 | 45 | #pragma warning (disable:4244) /* Disable bogus conversion warnings. */ 46 | #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ 47 | 48 | #endif /* _WIN32 */ 49 | 50 | #include 51 | 52 | #ifdef __cplusplus 53 | extern "C" { 54 | #endif 55 | 56 | typedef enum { 57 | SMAP_CLEAR_SMAP_TEXTURE = 0x1, 58 | SMAP_GENERATE_VIEW_MIPMAPS = 0x2, 59 | SMAP_GENERATE_SMAP_MIPMAPS = 0x4, 60 | SMAP_GENERATE_MIPMAPS = 0x6 /* both of above */ 61 | } SphereMapFlags; 62 | 63 | /* Cube view enumerants. */ 64 | enum { 65 | SMAP_FRONT = 0, 66 | SMAP_TOP = 1, 67 | SMAP_BOTTOM = 2, 68 | SMAP_LEFT = 3, 69 | SMAP_RIGHT = 4, 70 | SMAP_BACK = 5 71 | }; 72 | 73 | typedef struct _SphereMap SphereMap; 74 | 75 | extern SphereMap *smapCreateSphereMap(SphereMap *shareSmap); 76 | extern void smapDestroySphereMap(SphereMap *smap); 77 | 78 | extern void smapConfigureSphereMapMesh(SphereMap *smap, int steps, int rings, int edgeExtend); 79 | 80 | extern void smapSetSphereMapTexObj(SphereMap *smap, GLuint texobj); 81 | extern void smapSetViewTexObj(SphereMap *smap, GLuint texobj); 82 | extern void smapSetViewTexObjs(SphereMap *smap, GLuint texobjs[6]); 83 | extern void smapGetSphereMapTexObj(SphereMap *smap, GLuint *texobj); 84 | extern void smapGetViewTexObj(SphereMap *smap, GLuint *texobj); 85 | extern void smapGetViewTexObjs(SphereMap *smap, GLuint texobjs[6]); 86 | 87 | extern void smapSetFlags(SphereMap *smap, SphereMapFlags flags); 88 | extern void smapGetFlags(SphereMap *smap, SphereMapFlags *flags); 89 | 90 | extern void smapSetViewOrigin(SphereMap *smap, GLint x, GLint y); 91 | extern void smapSetSphereMapOrigin(SphereMap *smap, GLint x, GLint y); 92 | extern void smapGetViewOrigin(SphereMap *smap, GLint *x, GLint *y); 93 | extern void smapGetSphereMapOrigin(SphereMap *smap, GLint *x, GLint *y); 94 | 95 | extern void smapSetEye(SphereMap *smap, GLfloat eyex, GLfloat eyey, GLfloat eyez); 96 | extern void smapSetEyeVector(SphereMap *smap, GLfloat *eye); 97 | extern void smapSetUp(SphereMap *smap, GLfloat upx, GLfloat upy, GLfloat upz); 98 | extern void smapSetUpVector(SphereMap *smap, GLfloat *up); 99 | extern void smapSetObject(SphereMap *smap, GLfloat objx, GLfloat objy, GLfloat objz); 100 | extern void smapSetObjectVector(SphereMap *smap, GLfloat *obj); 101 | extern void smapGetEye(SphereMap *smap, GLfloat *eyex, GLfloat *eyey, GLfloat *eyez); 102 | extern void smapGetEyeVector(SphereMap *smap, GLfloat *eye); 103 | extern void smapGetUp(SphereMap *smap, GLfloat *upx, GLfloat *upy, GLfloat *upz); 104 | extern void smapGetUpVector(SphereMap *smap, GLfloat *up); 105 | extern void smapGetObject(SphereMap *smap, GLfloat *objx, GLfloat *objy, GLfloat *objz); 106 | extern void smapGetObjectVector(SphereMap *smap, GLfloat *obj); 107 | 108 | extern void smapSetNearFar(SphereMap *smap, GLfloat viewNear, GLfloat viewFar); 109 | extern void smapGetNearFar(SphereMap *smap, GLfloat *viewNear, GLfloat *viewFar); 110 | 111 | extern void smapSetSphereMapTexDim(SphereMap *smap, GLsizei texdim); 112 | extern void smapSetViewTexDim(SphereMap *smap, GLsizei texdim); 113 | extern void smapGetSphereMapTexDim(SphereMap *smap, GLsizei *texdim); 114 | extern void smapGetViewTexDim(SphereMap *smap, GLsizei *texdim); 115 | 116 | extern void smapSetContextData(SphereMap *smap, void *context); 117 | extern void smapGetContextData(SphereMap *smap, void **context); 118 | 119 | extern void smapSetPositionLightsFunc(SphereMap *smap, void (*positionLights)(int view, void *context)); 120 | extern void smapSetDrawViewFunc(SphereMap *smap, void (*drawView)(int view, void *context)); 121 | extern void smapGetPositionLightsFunc(SphereMap *smap, void (**positionLights)(int view, void *context)); 122 | extern void smapGetDrawViewFunc(SphereMap *smap, void (**drawView)(int view, void *context)); 123 | 124 | extern void smapGenViewTex(SphereMap *smap, int view); 125 | extern void smapGenViewTexs(SphereMap *smap); 126 | extern void smapGenSphereMapFromViewTexs(SphereMap *smap); 127 | extern void smapGenSphereMap(SphereMap *smap); 128 | extern void smapGenSphereMapWithOneViewTex(SphereMap *smap); 129 | 130 | extern int smapRvecToSt(float rvec[3], float st[2]); 131 | extern void smapStToRvec(float *st, float *rvec); 132 | 133 | #ifdef __cplusplus 134 | } 135 | 136 | #endif 137 | #endif /* __glsmap_h__ */ 138 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/glsmapint.h: -------------------------------------------------------------------------------- 1 | #ifndef __glsmapint_h__ 2 | #define __glsmapint_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1998. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #include "glsmap.h" 11 | 12 | enum { X = 0, Y = 1, Z = 2 }; 13 | 14 | #define INITFACE(mesh) \ 15 | int steps = mesh->steps; \ 16 | int sqsteps = mesh->steps * mesh->steps 17 | 18 | #define FACE(side,y,x) \ 19 | mesh->face[(side)*sqsteps + (y)*steps + (x)] 20 | 21 | #define FACExy(side,i,j) \ 22 | (&FACE(side,i,j).x) 23 | 24 | #define FACEst(side,i,j) \ 25 | (&FACE(side,i,j).s) 26 | 27 | #define INITBACK(mesh) \ 28 | int allrings = mesh->rings + mesh->edgeExtend; \ 29 | int ringedspokes = allrings * mesh->steps 30 | 31 | #define BACK(edge,ring,spoke) \ 32 | mesh->back[(edge)*ringedspokes + (ring)*mesh->steps + (spoke)] 33 | 34 | #define BACKxy(edge,ring,spoke) \ 35 | (&BACK(edge,ring,spoke).x) 36 | 37 | #define BACKst(edge,ring,spoke) \ 38 | (&BACK(edge,ring,spoke).s) 39 | 40 | typedef struct _STXY { 41 | GLfloat s, t; 42 | GLfloat x, y; 43 | } STXY; 44 | 45 | typedef struct _SphereMapMesh { 46 | 47 | int refcnt; 48 | 49 | int steps; 50 | int rings; 51 | int edgeExtend; 52 | 53 | STXY *face; 54 | STXY *back; 55 | 56 | } SphereMapMesh; 57 | 58 | struct _SphereMap { 59 | 60 | /* Shared sphere map mesh vertex data. */ 61 | SphereMapMesh *mesh; 62 | 63 | /* Texture object ids. */ 64 | GLuint smapTexObj; 65 | GLuint viewTexObjs[6]; 66 | GLuint viewTexObj; 67 | 68 | /* Flags */ 69 | SphereMapFlags flags; 70 | 71 | /* Texture dimensions must be a power of two. */ 72 | int viewTexDim; /* view texture dimension */ 73 | int smapTexDim; /* sphere map texture dimension */ 74 | 75 | /* Viewport origins for view and sphere map rendering. */ 76 | int viewOrigin[2]; 77 | int smapOrigin[2]; 78 | 79 | /* Viewing vectors. */ 80 | GLfloat eye[3]; 81 | GLfloat up[3]; 82 | GLfloat obj[3]; 83 | 84 | /* Projection parameters. */ 85 | GLfloat viewNear; 86 | GLfloat viewFar; 87 | 88 | /* Rendering callbacks. */ 89 | void (*positionLights)(int view, void *context); 90 | void (*drawView)(int view, void *context); 91 | 92 | /* Application specified callback data. */ 93 | void *context; 94 | 95 | }; 96 | 97 | /* Library internal routines. */ 98 | extern void __smapDrawSphereMapMeshSide(SphereMapMesh *mesh, int side); 99 | extern void __smapDrawSphereMapMeshBack(SphereMapMesh *mesh); 100 | extern void __smapValidateSphereMapMesh(SphereMapMesh *mesh); 101 | 102 | #endif /* __glsmapint_h__ */ 103 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/glutbitmap.h: -------------------------------------------------------------------------------- 1 | #ifndef __glutbitmap_h__ 2 | #define __glutbitmap_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1994. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #include "glut.h" 11 | 12 | typedef struct { 13 | const GLsizei width; 14 | const GLsizei height; 15 | const GLfloat xorig; 16 | const GLfloat yorig; 17 | const GLfloat advance; 18 | const GLubyte *bitmap; 19 | } BitmapCharRec, *BitmapCharPtr; 20 | 21 | typedef struct { 22 | const char *name; 23 | const int num_chars; 24 | const int first; 25 | const BitmapCharRec * const *ch; 26 | } BitmapFontRec, *BitmapFontPtr; 27 | 28 | typedef void *GLUTbitmapFont; 29 | 30 | #endif /* __glutbitmap_h__ */ 31 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/glutf90.h: -------------------------------------------------------------------------------- 1 | #ifndef __glutf90_h__ 2 | #define __glutf90_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard & Willam F. Mitchell, 1998. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | /* This header provides the binding interface for William Mitchell's 11 | f90gl Fortran 90 GLUT binding. Other GLUT language bindings 12 | can and should use this interace. */ 13 | 14 | /* I appreciate the guidance from William Mitchell 15 | (mitchell@cam.nist.gov) in developing this friend interface 16 | for use by the f90gl package. See ../../README.fortran */ 17 | 18 | #include 19 | 20 | #ifndef GLUTCALLBACK 21 | #define GLUTCALLBACK 22 | #endif 23 | #ifndef APIENTRY 24 | #define APIENTRY 25 | #endif 26 | 27 | /* Which callback enumerants for the __glutSetFCB/__glutGetFCB routines. */ 28 | /* NOTE These values are part of a binary interface for the f90gl Fortran 29 | 90 binding and so must NOT changes (additions are allowed). */ 30 | 31 | /* GLUTwindow callbacks. */ 32 | #define GLUT_FCB_DISPLAY 0 /* GLUTdisplayFCB */ 33 | #define GLUT_FCB_RESHAPE 1 /* GLUTreshapeFCB */ 34 | #define GLUT_FCB_MOUSE 2 /* GLUTmouseFCB */ 35 | #define GLUT_FCB_MOTION 3 /* GLUTmotionFCB */ 36 | #define GLUT_FCB_PASSIVE 4 /* GLUTpassiveFCB */ 37 | #define GLUT_FCB_ENTRY 5 /* GLUTentryFCB */ 38 | #define GLUT_FCB_KEYBOARD 6 /* GLUTkeyboardFCB */ 39 | #define GLUT_FCB_KEYBOARD_UP 7 /* GLUTkeyboardFCB */ 40 | #define GLUT_FCB_WINDOW_STATUS 8 /* GLUTwindowStatusFCB */ 41 | #define GLUT_FCB_VISIBILITY 9 /* GLUTvisibilityFCB */ 42 | #define GLUT_FCB_SPECIAL 10 /* GLUTspecialFCB */ 43 | #define GLUT_FCB_SPECIAL_UP 11 /* GLUTspecialFCB */ 44 | #define GLUT_FCB_BUTTON_BOX 12 /* GLUTbuttonBoxFCB */ 45 | #define GLUT_FCB_DIALS 13 /* GLUTdialsFCB */ 46 | #define GLUT_FCB_SPACE_MOTION 14 /* GLUTspaceMotionFCB */ 47 | #define GLUT_FCB_SPACE_ROTATE 15 /* GLUTspaceRotateFCB */ 48 | #define GLUT_FCB_SPACE_BUTTON 16 /* GLUTspaceButtonFCB */ 49 | #define GLUT_FCB_TABLET_MOTION 17 /* GLUTtabletMotionFCB */ 50 | #define GLUT_FCB_TABLET_BUTTON 18 /* GLUTtabletButtonFCB */ 51 | #define GLUT_FCB_JOYSTICK 19 /* GLUTjoystickFCB */ 52 | #define GLUT_FCB_WMCLOSE 20 /* GLUTwmcloseFCB */ 53 | /* Non-GLUTwindow callbacks. */ 54 | #define GLUT_FCB_OVERLAY_DISPLAY 100 /* GLUTdisplayFCB */ 55 | #define GLUT_FCB_SELECT 101 /* GLUTselectFCB */ 56 | #define GLUT_FCB_TIMER 102 /* GLUTtimerFCB */ 57 | 58 | /* GLUT Fortran callback function types. */ 59 | typedef void (GLUTCALLBACK *GLUTdisplayFCB) (void); 60 | typedef void (GLUTCALLBACK *GLUTwmcloseFCB) (void); 61 | typedef void (GLUTCALLBACK *GLUTreshapeFCB) (int *, int *); 62 | /* NOTE the pressed key is int, not unsigned char for Fortran! */ 63 | typedef void (GLUTCALLBACK *GLUTkeyboardFCB) (int *, int *, int *); 64 | typedef void (GLUTCALLBACK *GLUTmouseFCB) (int *, int *, int *, int *); 65 | typedef void (GLUTCALLBACK *GLUTmotionFCB) (int *, int *); 66 | typedef void (GLUTCALLBACK *GLUTpassiveFCB) (int *, int *); 67 | typedef void (GLUTCALLBACK *GLUTentryFCB) (int *); 68 | typedef void (GLUTCALLBACK *GLUTwindowStatusFCB) (int *); 69 | typedef void (GLUTCALLBACK *GLUTvisibilityFCB) (int *); 70 | typedef void (GLUTCALLBACK *GLUTspecialFCB) (int *, int *, int *); 71 | typedef void (GLUTCALLBACK *GLUTbuttonBoxFCB) (int *, int *); 72 | typedef void (GLUTCALLBACK *GLUTdialsFCB) (int *, int *); 73 | typedef void (GLUTCALLBACK *GLUTspaceMotionFCB) (int *, int *, int *); 74 | typedef void (GLUTCALLBACK *GLUTspaceRotateFCB) (int *, int *, int *); 75 | typedef void (GLUTCALLBACK *GLUTspaceButtonFCB) (int *, int *); 76 | typedef void (GLUTCALLBACK *GLUTtabletMotionFCB) (int *, int *); 77 | typedef void (GLUTCALLBACK *GLUTtabletButtonFCB) (int *, int *, int *, int *); 78 | typedef void (GLUTCALLBACK *GLUTjoystickFCB) (unsigned int *buttonMask, int *x, int *y, int *z); 79 | 80 | typedef void (GLUTCALLBACK *GLUTselectFCB) (int *); 81 | typedef void (GLUTCALLBACK *GLUTtimerFCB) (int *); 82 | typedef void (GLUTCALLBACK *GLUTmenuStateFCB) (int *); /* DEPRICATED. */ 83 | typedef void (GLUTCALLBACK *GLUTmenuStatusFCB) (int *, int *, int *); 84 | typedef void (GLUTCALLBACK *GLUTidleFCB) (void); 85 | 86 | /* Functions that set and return Fortran callback functions. */ 87 | extern void* APIENTRY __glutGetFCB(int which); 88 | extern void APIENTRY __glutSetFCB(int which, void *func); 89 | 90 | #endif /* __glutf90_h__ */ 91 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/glutstroke.h: -------------------------------------------------------------------------------- 1 | #ifndef __glutstroke_h__ 2 | #define __glutstroke_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1994. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #if defined(_WIN32) 11 | #pragma warning (disable:4244) /* disable bogus conversion warnings */ 12 | #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ 13 | #endif 14 | 15 | typedef struct { 16 | float x; 17 | float y; 18 | } CoordRec, *CoordPtr; 19 | 20 | typedef struct { 21 | int num_coords; 22 | const CoordRec *coord; 23 | } StrokeRec, *StrokePtr; 24 | 25 | typedef struct { 26 | int num_strokes; 27 | const StrokeRec *stroke; 28 | float center; 29 | float right; 30 | } StrokeCharRec, *StrokeCharPtr; 31 | 32 | typedef struct { 33 | const char *name; 34 | int num_chars; 35 | const StrokeCharRec *ch; 36 | float top; 37 | float bottom; 38 | } StrokeFontRec, *StrokeFontPtr; 39 | 40 | typedef void *GLUTstrokeFont; 41 | 42 | #endif /* __glutstroke_h__ */ 43 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/gutil.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * gutil.h 4 | * 5 | * FUNCTION: 6 | * Provide utilities that allow rotation to occur 7 | * around any axis. 8 | * 9 | * HISTORY: 10 | * created by Linas Vepstas 1990 11 | * added single & double precision, June 1991, Linas Vepstas 12 | */ 13 | 14 | #ifndef __GUTIL_H__ 15 | #define __GUTIL_H__ 16 | 17 | #ifdef __GUTIL_DOUBLE 18 | #define gutDouble double 19 | #else 20 | #define gutDouble float 21 | #endif 22 | 23 | 24 | #ifdef _NO_PROTO /* NO ANSI C PROTOTYPING */ 25 | 26 | /* Rotation Utilities */ 27 | extern void rot_axis_f (); 28 | extern void rot_about_axis_f (); 29 | extern void rot_omega_f (); 30 | extern void urot_axis_f (); 31 | extern void urot_about_axis_f (); 32 | extern void urot_omega_f (); 33 | 34 | /* double-precision versions */ 35 | extern void rot_axis_d (); 36 | extern void rot_about_axis_d (); 37 | extern void rot_omega_d (); 38 | extern void urot_axis_d (); 39 | extern void urot_about_axis_d (); 40 | extern void urot_omega_d (); 41 | 42 | /* viewpoint functions */ 43 | extern void uview_direction_d (); 44 | extern void uview_direction_f (); 45 | extern void uviewpoint_d (); 46 | extern void uviewpoint_f (); 47 | 48 | #else /* _NO_PROTO */ /* ANSI C PROTOTYPING */ 49 | 50 | /* Rotation Utilities */ 51 | extern void rot_axis_f (float omega, float axis[3]); 52 | extern void rot_about_axis_f (float angle, float axis[3]); 53 | extern void rot_omega_f (float axis[3]); 54 | extern void urot_axis_f (float m[4][4], float omega, float axis[3]); 55 | extern void urot_about_axis_f (float m[4][4], float angle, float axis[3]); 56 | extern void urot_omega_f (float m[4][4], float axis[3]); 57 | 58 | /* double-precision versions */ 59 | extern void rot_axis_d (double omega, double axis[3]); 60 | extern void rot_about_axis_d (double angle, double axis[3]); 61 | extern void rot_omega_d (double axis[3]); 62 | extern void urot_axis_d (double m[4][4], double omega, double axis[3]); 63 | extern void urot_about_axis_d (double m[4][4], double angle, double axis[3]); 64 | extern void urot_omega_d (double m[4][4], double axis[3]); 65 | 66 | /* viewpoint functions */ 67 | extern void uview_direction_d (double m[4][4], /* returned */ 68 | double v21[3], /* input */ 69 | double up[3]); /* input */ 70 | 71 | extern void uview_direction_f (float m[4][4], /* returned */ 72 | float v21[3], /* input */ 73 | float up[3]); /* input */ 74 | 75 | extern void uviewpoint_d (double m[4][4], /* returned */ 76 | double v1[3], /* input */ 77 | double v2[3], /* input */ 78 | double up[3]); /* input */ 79 | 80 | extern void uviewpoint_f (float m[4][4], /* returned */ 81 | float v1[3], /* input */ 82 | float v2[3], /* input */ 83 | float up[3]); /* input */ 84 | 85 | #endif /* _NO_PROTO */ 86 | 87 | #endif /* _GUTIL_H__ */ 88 | 89 | /* ------------------- end of file ---------------------- */ 90 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/port.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * port.h 4 | * 5 | * FUNCTION: 6 | * This file contains defines for porting the tubing toolkit from GL to 7 | * OpenGL to some callback scheme. 8 | * 9 | * HISTORY: 10 | * Created by Linas Vepstas -- February 1993 11 | * Added auto texture coord generation hacks, Linas April 1994 12 | */ 13 | 14 | #ifndef __GLE_PORT_H__ 15 | #define __GLE_PORT_H__ 16 | 17 | 18 | #ifndef TRUE 19 | #define TRUE 1 20 | #endif 21 | 22 | #ifndef FALSE 23 | #define FALSE 0 24 | #endif 25 | 26 | #ifndef M_PI 27 | #define M_PI 3.14159265358979323846 28 | #endif 29 | 30 | /* ====================================================== */ 31 | /* Some compilers can't handle multiply-subscripted array's */ 32 | 33 | #ifdef FUNKY_C 34 | typedef gleDouble gleVector; 35 | #define AVAL(arr,n,i,j) arr(6*n+3*i+j) 36 | #define VVAL(arr,n,i) arr(3*n+i) 37 | 38 | #else /* FUNKY_C */ 39 | typedef double gleVector[3]; 40 | typedef double glePoint[2]; 41 | #define AVAL(arr,n,i,j) arr[n][i][j] 42 | #define VVAL(arr,n,i) arr[n][i]; 43 | 44 | #endif /* FUNKY_C */ 45 | 46 | /* ====================================================== */ 47 | /* These are used to convey info about topography to the 48 | * texture mapping routines */ 49 | 50 | #define FRONT 1 51 | #define BACK 2 52 | #define FRONT_CAP 3 53 | #define BACK_CAP 4 54 | #define FILLET 5 55 | 56 | /* ====================================================== */ 57 | 58 | #define __GLE_DOUBLE 59 | 60 | /* ====================================================== */ 61 | 62 | #ifdef __GLE_DOUBLE 63 | #ifndef gleDouble 64 | #define gleDouble double 65 | #endif 66 | #define urot_axis(a,b,c) urot_axis_d(a,b,c) 67 | #define uview_direction(a,b,c) uview_direction_d(a,b,c) 68 | #define uviewpoint(a,b,c,d) uviewpoint_d(a,b,c,d) 69 | #define MULTMATRIX(m) MULTMATRIX_D(m) 70 | #define LOADMATRIX(m) LOADMATRIX_D(m) 71 | #define V3F(x,j,id) V3F_D(x,j,id) 72 | #define N3F(x) N3F_D(x) 73 | #define T2F(x,y) T2F_D(x,y) 74 | #else 75 | #define gleDouble float 76 | #define urot_axis(a,b,c) urot_axis_f(a,b,c) 77 | #define uview_direction(a,b,c) uview_direction_f(a,b,c) 78 | #define uviewpoint(a,b,c,d) uviewpoint_f(a,b,c,d) 79 | #define MULTMATRIX(m) MULTMATRIX_F(m) 80 | #define LOADMATRIX(m) LOADMATRIX_F(m) 81 | #define V3F(x,j,id) V3F_F(x,j,id) 82 | #define N3F(x) N3F_F(x) 83 | #define T2F(x,y) T2F_F(x,y) 84 | #endif 85 | 86 | /* ====================================================== */ 87 | 88 | #if (defined DEBUG_GL_32 || DEBUG_OPENGL_10) 89 | #undef GL_32 90 | #undef OPENGL_10 91 | 92 | #define BGNTMESH(i,len) printf ("bgntmesh() \n"); 93 | #define ENDTMESH() printf ("endtmesh() \n"); 94 | #define BGNPOLYGON() printf ("bgnpolygon() \n"); 95 | #define ENDPOLYGON() printf ("endpolygon() \n"); 96 | #define V3F_F(x,j,id) printf ("v3f(x) %f %f %f \n", x[0], x[1], x[2]); 97 | #define V3F_D(x,j,id) printf ("v3d(x) %f %f %f \n", x[0], x[1], x[2]); 98 | #define N3F_F(x) printf ("n3f(x) %f %f %f \n", x[0], x[1], x[2]); 99 | #define N3F_D(x) printf ("n3d(x) %f %f %f \n", x[0], x[1], x[2]); 100 | #define C3F(x) printf ("c3f(x) %f %f %f \n", x[0], x[1], x[2]); 101 | 102 | #define POPMATRIX() printf ("popmatrix () \n"); 103 | #define PUSHMATRIX() printf ("pushmatrix() \n"); 104 | #define MULTMATRIX_F(x) MULTMATRIX_D(x) 105 | #define LOADMATRIX_F(x) LOADMATRIX_D(x) 106 | 107 | 108 | #define LOADMATRIX_D(x) { \ 109 | int i, j; \ 110 | printf ("loadmatrix (x) \n"); \ 111 | for (i=0; i<4; i++) { \ 112 | for (j=0; j<4; j++) { \ 113 | printf ( "%f ", x[i][j]); \ 114 | } \ 115 | printf (" \n"); \ 116 | } \ 117 | } 118 | 119 | #define MULTMATRIX_D(x) { \ 120 | int i, j; \ 121 | printf ("multmatrix (x) \n"); \ 122 | for (i=0; i<4; i++) { \ 123 | for (j=0; j<4; j++) { \ 124 | printf ( "%f ", x[i][j]); \ 125 | } \ 126 | printf (" \n"); \ 127 | } \ 128 | } 129 | 130 | #define __IS_LIGHTING_ON (1) 131 | 132 | #endif 133 | 134 | /* ====================================================== */ 135 | 136 | #ifdef GL_32 137 | 138 | #include 139 | 140 | #define BGNTMESH(i,len) bgntmesh() 141 | #define ENDTMESH() endtmesh() 142 | #define BGNPOLYGON() bgnpolygon() 143 | #define ENDPOLYGON() endpolygon() 144 | #define V3F_F(x,j,id) v3f(x) 145 | #define V3F_D(x,j,id) v3d(x) 146 | #define N3F_F(x) n3f(x) 147 | #define T2F_F(x,y) 148 | #define T2F_D(x,y) 149 | #define C3F(x) c3f(x) 150 | 151 | #define POPMATRIX() popmatrix () 152 | #define PUSHMATRIX() pushmatrix() 153 | #define MULTMATRIX_F(x) multmatrix (x) 154 | #define LOADMATRIX_F(x) loadmatrix (x) 155 | 156 | #define N3F_D(x) { \ 157 | float nnn[3]; \ 158 | nnn[0] = (float) x[0]; \ 159 | nnn[1] = (float) x[1]; \ 160 | nnn[2] = (float) x[2]; \ 161 | n3f (nnn); \ 162 | } 163 | 164 | #define LOADMATRIX_D(x) { \ 165 | int i, j; \ 166 | float mmm[4][4]; \ 167 | for (i=0; i<4; i++) { \ 168 | for (j=0; j<4; j++) { \ 169 | mmm[i][j] = (float) x[i][j]; \ 170 | } \ 171 | } \ 172 | loadmatrix(mmm); \ 173 | } 174 | 175 | #define MULTMATRIX_D(x) { \ 176 | int i, j; \ 177 | float mmm[4][4]; \ 178 | for (i=0; i<4; i++) { \ 179 | for (j=0; j<4; j++) { \ 180 | mmm[i][j] = (float) x[i][j]; \ 181 | } \ 182 | } \ 183 | multmatrix(mmm); \ 184 | } 185 | 186 | /* #define __IS_LIGHTING_ON (MSINGLE == getmmode()) */ 187 | #define __IS_LIGHTING_ON (extrusion_join_style & TUBE_LIGHTING_ON) 188 | 189 | #endif /* GL_32 */ 190 | 191 | /* ====================================================== */ 192 | #ifdef OPENGL_10 193 | 194 | #if defined(_WIN32) 195 | #include 196 | #pragma warning (disable:4244) /* disable bogus conversion warnings */ 197 | #endif 198 | #include 199 | #include 200 | 201 | /* 202 | #define N3F_F(x) { \ 203 | float nnn[3]; \ 204 | nnn[0] = - (float) x[0]; \ 205 | nnn[1] = - (float) x[1]; \ 206 | nnn[2] = - (float) x[2]; \ 207 | glNormal3fv (nnn); \ 208 | } 209 | #define N3F_D(x) { \ 210 | float nnn[3]; \ 211 | nnn[0] = - (float) x[0]; \ 212 | nnn[1] = - (float) x[1]; \ 213 | nnn[2] = - (float) x[2]; \ 214 | glNormal3fv (nnn); \ 215 | } 216 | */ 217 | 218 | #define C3F(x) glColor3fv(x) 219 | #define T2F_F(x,y) glTexCoord2f(x,y) 220 | #define T2F_D(x,y) glTexCoord2d(x,y) 221 | 222 | #define POPMATRIX() glPopMatrix() 223 | #define PUSHMATRIX() glPushMatrix() 224 | 225 | #define MULTMATRIX_F(x) glMultMatrixf ((const GLfloat *)x) 226 | #define LOADMATRIX_F(x) glLoadMatrixf ((const GLfloat *)x) 227 | 228 | #define MULTMATRIX_D(x) glMultMatrixd ((const GLdouble *)x) 229 | #define LOADMATRIX_D(x) glLoadMatrixd ((const GLdouble *)x) 230 | 231 | #define __IS_LIGHTING_ON (glIsEnabled(GL_LIGHTING)) 232 | 233 | /* ====================================================== */ 234 | #ifdef AUTO_TEXTURE 235 | 236 | #define BGNTMESH(i,len) { \ 237 | if(_gle_gc -> bgn_gen_texture) (*(_gle_gc -> bgn_gen_texture))(i,len);\ 238 | glBegin (GL_TRIANGLE_STRIP); \ 239 | } 240 | 241 | #define BGNPOLYGON() { \ 242 | if(_gle_gc -> bgn_gen_texture) (*(_gle_gc -> bgn_gen_texture))();\ 243 | glBegin (GL_POLYGON); \ 244 | } 245 | 246 | #define N3F_F(x) { \ 247 | if(_gle_gc -> n3f_gen_texture) (*(_gle_gc -> n3f_gen_texture))(x); \ 248 | glNormal3fv(x); \ 249 | } 250 | 251 | #define N3F_D(x) { \ 252 | if(_gle_gc -> n3d_gen_texture) (*(_gle_gc -> n3d_gen_texture))(x); \ 253 | glNormal3dv(x); \ 254 | } 255 | 256 | #define V3F_F(x,j,id) { \ 257 | if(_gle_gc -> v3f_gen_texture) (*(_gle_gc -> v3f_gen_texture))(x,j,id);\ 258 | glVertex3fv(x); \ 259 | } 260 | 261 | #define V3F_D(x,j,id) { \ 262 | if(_gle_gc -> v3d_gen_texture) (*(_gle_gc -> v3d_gen_texture))(x,j,id); \ 263 | glVertex3dv(x); \ 264 | } 265 | 266 | #define ENDTMESH() { \ 267 | if(_gle_gc -> end_gen_texture) (*(_gle_gc -> end_gen_texture))(); \ 268 | glEnd (); \ 269 | } 270 | 271 | #define ENDPOLYGON() { \ 272 | if(_gle_gc -> end_gen_texture) (*(_gle_gc -> end_gen_texture))(); \ 273 | glEnd (); \ 274 | } 275 | 276 | /* ====================================================== */ 277 | #else /* AUTO_TEXTURE */ 278 | 279 | #define BGNTMESH(i,len) glBegin (GL_TRIANGLE_STRIP); 280 | #define BGNPOLYGON() glBegin (GL_POLYGON); 281 | 282 | #define N3F_F(x) glNormal3fv(x) 283 | #define N3F_D(x) glNormal3dv(x) 284 | #define V3F_F(x,j,id) glVertex3fv(x); 285 | #define V3F_D(x,j,id) glVertex3dv(x); 286 | 287 | #define ENDTMESH() glEnd () 288 | #define ENDPOLYGON() glEnd() 289 | 290 | #endif /* AUTO_TEXTURE */ 291 | 292 | #endif /* OPENGL_10 */ 293 | 294 | /* ====================================================== */ 295 | 296 | 297 | #endif /* __GLE_PORT_H__ */ 298 | /* ================== END OF FILE ======================= */ 299 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/rot.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * rot.h 4 | * 5 | * FUNCTION: 6 | * rotation matrix utilities 7 | * 8 | * HISTORY: 9 | * Linas Vepstas Aug 1990 10 | */ 11 | 12 | /* ========================================================== */ 13 | /* 14 | * The MACROS below generate and return more traditional rotation 15 | * matrices -- matrices for rotations about principal axes. 16 | */ 17 | /* ========================================================== */ 18 | 19 | #define ROTX_CS(m,cosine,sine) \ 20 | { \ 21 | /* rotation about the x-axis */ \ 22 | \ 23 | m[0][0] = 1.0; \ 24 | m[0][1] = 0.0; \ 25 | m[0][2] = 0.0; \ 26 | m[0][3] = 0.0; \ 27 | \ 28 | m[1][0] = 0.0; \ 29 | m[1][1] = (cosine); \ 30 | m[1][2] = (sine); \ 31 | m[1][3] = 0.0; \ 32 | \ 33 | m[2][0] = 0.0; \ 34 | m[2][1] = -(sine); \ 35 | m[2][2] = (cosine); \ 36 | m[2][3] = 0.0; \ 37 | \ 38 | m[3][0] = 0.0; \ 39 | m[3][1] = 0.0; \ 40 | m[3][2] = 0.0; \ 41 | m[3][3] = 1.0; \ 42 | } 43 | 44 | /* ========================================================== */ 45 | 46 | #define ROTY_CS(m,cosine,sine) \ 47 | { \ 48 | /* rotation about the y-axis */ \ 49 | \ 50 | m[0][0] = (cosine); \ 51 | m[0][1] = 0.0; \ 52 | m[0][2] = -(sine); \ 53 | m[0][3] = 0.0; \ 54 | \ 55 | m[1][0] = 0.0; \ 56 | m[1][1] = 1.0; \ 57 | m[1][2] = 0.0; \ 58 | m[1][3] = 0.0; \ 59 | \ 60 | m[2][0] = (sine); \ 61 | m[2][1] = 0.0; \ 62 | m[2][2] = (cosine); \ 63 | m[2][3] = 0.0; \ 64 | \ 65 | m[3][0] = 0.0; \ 66 | m[3][1] = 0.0; \ 67 | m[3][2] = 0.0; \ 68 | m[3][3] = 1.0; \ 69 | } 70 | 71 | /* ========================================================== */ 72 | 73 | #define ROTZ_CS(m,cosine,sine) \ 74 | { \ 75 | /* rotation about the z-axis */ \ 76 | \ 77 | m[0][0] = (cosine); \ 78 | m[0][1] = (sine); \ 79 | m[0][2] = 0.0; \ 80 | m[0][3] = 0.0; \ 81 | \ 82 | m[1][0] = -(sine); \ 83 | m[1][1] = (cosine); \ 84 | m[1][2] = 0.0; \ 85 | m[1][3] = 0.0; \ 86 | \ 87 | m[2][0] = 0.0; \ 88 | m[2][1] = 0.0; \ 89 | m[2][2] = 1.0; \ 90 | m[2][3] = 0.0; \ 91 | \ 92 | m[3][0] = 0.0; \ 93 | m[3][1] = 0.0; \ 94 | m[3][2] = 0.0; \ 95 | m[3][3] = 1.0; \ 96 | } 97 | 98 | /* ========================================================== */ 99 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/segment.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * MODULE: segment.h 4 | * 5 | * FUNCTION: 6 | * Contains function prototypes for segment drawing subroutines. 7 | * These are used only internally, and are not to be exported to 8 | * the user. 9 | * 10 | * HISTORY: 11 | * Create by Linas Vepstas 12 | * Added tube.h include to define gleDouble, tad February 2002 13 | */ 14 | 15 | /* ============================================================ */ 16 | 17 | #include "tube.h" 18 | 19 | extern void draw_segment_plain (int ncp, /* number of contour points */ 20 | gleDouble front_contour[][3], 21 | gleDouble back_contour[][3], 22 | int inext, double len); 23 | 24 | extern void draw_segment_color (int ncp, /* number of contour points */ 25 | gleDouble front_contour[][3], 26 | gleDouble back_contour[][3], 27 | float color_last[3], 28 | float color_next[3], 29 | int inext, double len); 30 | 31 | extern void draw_segment_edge_n (int ncp, /* number of contour points */ 32 | gleDouble front_contour[][3], 33 | gleDouble back_contour[][3], 34 | double norm_cont[][3], 35 | int inext, double len); 36 | 37 | extern void draw_segment_c_and_edge_n (int ncp, 38 | gleDouble front_contour[][3], 39 | gleDouble back_contour[][3], 40 | double norm_cont[][3], 41 | float color_last[3], 42 | float color_next[3], 43 | int inext, double len); 44 | 45 | extern void draw_segment_facet_n (int ncp, 46 | gleDouble front_contour[][3], 47 | gleDouble back_contour[][3], 48 | double norm_cont[][3], 49 | int inext, double len); 50 | 51 | extern void draw_segment_c_and_facet_n (int ncp, 52 | gleDouble front_contour[][3], 53 | gleDouble back_contour[][3], 54 | double norm_cont[][3], 55 | float color_last[3], 56 | float color_next[3], 57 | int inext, double len); 58 | 59 | /* ============================================================ */ 60 | 61 | extern void draw_binorm_segment_edge_n (int ncp, 62 | double front_contour[][3], 63 | double back_contour[][3], 64 | double front_norm[][3], 65 | double back_norm[][3], 66 | int inext, double len); 67 | 68 | extern void draw_binorm_segment_c_and_edge_n (int ncp, 69 | double front_contour[][3], 70 | double back_contour[][3], 71 | double front_norm[][3], 72 | double back_norm[][3], 73 | float color_last[3], 74 | float color_next[3], 75 | int inext, double len); 76 | 77 | extern void draw_binorm_segment_facet_n (int ncp, 78 | double front_contour[][3], 79 | double back_contour[][3], 80 | double front_norm[][3], 81 | double back_norm[][3], 82 | int inext, double len); 83 | 84 | extern void draw_binorm_segment_c_and_facet_n (int ncp, 85 | double front_contour[][3], 86 | double back_contour[][3], 87 | double front_norm[][3], 88 | double back_norm[][3], 89 | float color_last[3], 90 | float color_next[3], 91 | int inext, double len); 92 | 93 | extern void draw_angle_style_back_cap (int ncp, /* number of contour points */ 94 | gleDouble bi[3], /* biscetor */ 95 | gleDouble point_array[][3]); /* polyline */ 96 | 97 | /* -------------------------- end of file -------------------------------- */ 98 | 99 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/tube.h: -------------------------------------------------------------------------------- 1 | /* 2 | * tube.h 3 | * 4 | * FUNCTION: 5 | * Tubing and Extrusion header file. 6 | * This file provides protypes and defines for the extrusion 7 | * and tubing primitives. 8 | * 9 | * HISTORY: 10 | * Linas Vepstas 1990, 1991 11 | */ 12 | 13 | #ifndef __TUBE_H__ 14 | #define __TUBE_H__ 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | /** 21 | GLE API revision history: 22 | 23 | GLE_API_VERSION is updated to reflect GLE API changes (interface 24 | changes, semantic changes, deletions, or additions). 25 | 26 | GLE_API_VERSION=228 GLUT 3.7 release of GLE. 27 | **/ 28 | #ifndef GLE_API_VERSION /* allow this to be overriden */ 29 | #define GLE_API_VERSION 228 30 | #endif 31 | 32 | /* some types */ 33 | #ifndef gleDouble 34 | #define gleDouble double 35 | #endif 36 | typedef gleDouble gleAffine[2][3]; 37 | 38 | /* ====================================================== */ 39 | 40 | /* defines for tubing join styles */ 41 | #define TUBE_JN_RAW 0x1 42 | #define TUBE_JN_ANGLE 0x2 43 | #define TUBE_JN_CUT 0x3 44 | #define TUBE_JN_ROUND 0x4 45 | #define TUBE_JN_MASK 0xf /* mask bits */ 46 | #define TUBE_JN_CAP 0x10 47 | 48 | /* determine how normal vectors are to be handled */ 49 | #define TUBE_NORM_FACET 0x100 50 | #define TUBE_NORM_EDGE 0x200 51 | #define TUBE_NORM_PATH_EDGE 0x400 /* for spiral, lathe, helix primitives */ 52 | #define TUBE_NORM_MASK 0xf00 /* mask bits */ 53 | 54 | /* closed or open countours */ 55 | #define TUBE_CONTOUR_CLOSED 0x1000 56 | 57 | #define GLE_TEXTURE_ENABLE 0x10000 58 | #define GLE_TEXTURE_STYLE_MASK 0xff 59 | #define GLE_TEXTURE_VERTEX_FLAT 1 60 | #define GLE_TEXTURE_NORMAL_FLAT 2 61 | #define GLE_TEXTURE_VERTEX_CYL 3 62 | #define GLE_TEXTURE_NORMAL_CYL 4 63 | #define GLE_TEXTURE_VERTEX_SPH 5 64 | #define GLE_TEXTURE_NORMAL_SPH 6 65 | #define GLE_TEXTURE_VERTEX_MODEL_FLAT 7 66 | #define GLE_TEXTURE_NORMAL_MODEL_FLAT 8 67 | #define GLE_TEXTURE_VERTEX_MODEL_CYL 9 68 | #define GLE_TEXTURE_NORMAL_MODEL_CYL 10 69 | #define GLE_TEXTURE_VERTEX_MODEL_SPH 11 70 | #define GLE_TEXTURE_NORMAL_MODEL_SPH 12 71 | 72 | #ifdef GL_32 73 | /* HACK for GL 3.2 -- needed because no way to tell if lighting is on. */ 74 | #define TUBE_LIGHTING_ON 0x80000000 75 | 76 | #define gleExtrusion extrusion 77 | #define gleSetJoinStyle setjoinstyle 78 | #define gleGetJoinStyle getjoinstyle 79 | #define glePolyCone polycone 80 | #define glePolyCylinder polycylinder 81 | #define gleSuperExtrusion super_extrusion 82 | #define gleTwistExtrusion twist_extrusion 83 | #define gleSpiral spiral 84 | #define gleLathe lathe 85 | #define gleHelicoid helicoid 86 | #define gleToroid toroid 87 | #define gleScrew screw 88 | 89 | #endif /* GL_32 */ 90 | 91 | extern int gleGetJoinStyle (void); 92 | extern void gleSetJoinStyle (int style); /* bitwise OR of flags */ 93 | extern int gleGetNumSlices(void); 94 | extern void gleSetNumSlices(int slices); 95 | 96 | /* draw polyclinder, specified as a polyline */ 97 | extern void glePolyCylinder (int npoints, /* num points in polyline */ 98 | gleDouble point_array[][3], /* polyline vertces */ 99 | float color_array[][3], /* colors at polyline verts */ 100 | gleDouble radius); /* radius of polycylinder */ 101 | 102 | /* draw polycone, specified as a polyline with radii */ 103 | extern void glePolyCone (int npoints, /* numpoints in poly-line */ 104 | gleDouble point_array[][3], /* polyline vertices */ 105 | float color_array[][3], /* colors at polyline verts */ 106 | gleDouble radius_array[]); /* cone radii at polyline verts */ 107 | 108 | /* extrude arbitrary 2D contour along arbitrary 3D path */ 109 | extern void gleExtrusion (int ncp, /* number of contour points */ 110 | gleDouble contour[][2], /* 2D contour */ 111 | gleDouble cont_normal[][2], /* 2D contour normals */ 112 | gleDouble up[3], /* up vector for contour */ 113 | int npoints, /* numpoints in poly-line */ 114 | gleDouble point_array[][3], /* polyline vertices */ 115 | float color_array[][3]); /* colors at polyline verts */ 116 | 117 | /* extrude 2D contour, specifying local rotations (twists) */ 118 | extern void gleTwistExtrusion (int ncp, /* number of contour points */ 119 | gleDouble contour[][2], /* 2D contour */ 120 | gleDouble cont_normal[][2], /* 2D contour normals */ 121 | gleDouble up[3], /* up vector for contour */ 122 | int npoints, /* numpoints in poly-line */ 123 | gleDouble point_array[][3], /* polyline vertices */ 124 | float color_array[][3], /* color at polyline verts */ 125 | gleDouble twist_array[]); /* countour twists (in degrees) */ 126 | 127 | /* extrude 2D contour, specifying local affine tranformations */ 128 | extern void gleSuperExtrusion (int ncp, /* number of contour points */ 129 | gleDouble contour[][2], /* 2D contour */ 130 | gleDouble cont_normal[][2], /* 2D contour normals */ 131 | gleDouble up[3], /* up vector for contour */ 132 | int npoints, /* numpoints in poly-line */ 133 | gleDouble point_array[][3], /* polyline vertices */ 134 | float color_array[][3], /* color at polyline verts */ 135 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 136 | 137 | /* spiral moves contour along helical path by parallel transport */ 138 | extern void gleSpiral (int ncp, /* number of contour points */ 139 | gleDouble contour[][2], /* 2D contour */ 140 | gleDouble cont_normal[][2], /* 2D contour normals */ 141 | gleDouble up[3], /* up vector for contour */ 142 | gleDouble startRadius, /* spiral starts in x-y plane */ 143 | gleDouble drdTheta, /* change in radius per revolution */ 144 | gleDouble startZ, /* starting z value */ 145 | gleDouble dzdTheta, /* change in Z per revolution */ 146 | gleDouble startXform[2][3], /* starting contour affine xform */ 147 | gleDouble dXformdTheta[2][3], /* tangent change xform per revoln */ 148 | gleDouble startTheta, /* start angle in x-y plane */ 149 | gleDouble sweepTheta); /* degrees to spiral around */ 150 | 151 | /* lathe moves contour along helical path by helically shearing 3D space */ 152 | extern void gleLathe (int ncp, /* number of contour points */ 153 | gleDouble contour[][2], /* 2D contour */ 154 | gleDouble cont_normal[][2], /* 2D contour normals */ 155 | gleDouble up[3], /* up vector for contour */ 156 | gleDouble startRadius, /* spiral starts in x-y plane */ 157 | gleDouble drdTheta, /* change in radius per revolution */ 158 | gleDouble startZ, /* starting z value */ 159 | gleDouble dzdTheta, /* change in Z per revolution */ 160 | gleDouble startXform[2][3], /* starting contour affine xform */ 161 | gleDouble dXformdTheta[2][3], /* tangent change xform per revoln */ 162 | gleDouble startTheta, /* start angle in x-y plane */ 163 | gleDouble sweepTheta); /* degrees to spiral around */ 164 | 165 | /* similar to spiral, except contour is a circle */ 166 | extern void gleHelicoid (gleDouble rToroid, /* circle contour (torus) radius */ 167 | gleDouble startRadius, /* spiral starts in x-y plane */ 168 | gleDouble drdTheta, /* change in radius per revolution */ 169 | gleDouble startZ, /* starting z value */ 170 | gleDouble dzdTheta, /* change in Z per revolution */ 171 | gleDouble startXform[2][3], /* starting contour affine xform */ 172 | gleDouble dXformdTheta[2][3], /* tangent change xform per revoln */ 173 | gleDouble startTheta, /* start angle in x-y plane */ 174 | gleDouble sweepTheta); /* degrees to spiral around */ 175 | 176 | /* similar to lathe, except contour is a circle */ 177 | extern void gleToroid (gleDouble rToroid, /* circle contour (torus) radius */ 178 | gleDouble startRadius, /* spiral starts in x-y plane */ 179 | gleDouble drdTheta, /* change in radius per revolution */ 180 | gleDouble startZ, /* starting z value */ 181 | gleDouble dzdTheta, /* change in Z per revolution */ 182 | gleDouble startXform[2][3], /* starting contour affine xform */ 183 | gleDouble dXformdTheta[2][3], /* tangent change xform per revoln */ 184 | gleDouble startTheta, /* start angle in x-y plane */ 185 | gleDouble sweepTheta); /* degrees to spiral around */ 186 | 187 | /* draws a screw shape */ 188 | extern void gleScrew (int ncp, /* number of contour points */ 189 | gleDouble contour[][2], /* 2D contour */ 190 | gleDouble cont_normal[][2], /* 2D contour normals */ 191 | gleDouble up[3], /* up vector for contour */ 192 | gleDouble startz, /* start of segment */ 193 | gleDouble endz, /* end of segment */ 194 | gleDouble twist); /* number of rotations */ 195 | 196 | extern void gleTextureMode (int mode); 197 | 198 | #ifdef __cplusplus 199 | } 200 | 201 | #endif 202 | #endif /* __TUBE_H__ */ 203 | /* ================== END OF FILE ======================= */ 204 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Headers/tube_gc.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * tube_gc.h 4 | * 5 | * FUNCTION: 6 | * This file allows for easy changes to changes in the way the extrusion 7 | * library handles state info (i.e. context). 8 | * 9 | * HISTORY: 10 | * Linas Vepstas --- February 1993 11 | * Added auto texture coord generation hacks, Linas April 1994 12 | * Added tube.h include to define gleDouble, tad February 2002 13 | */ 14 | 15 | #include "tube.h" 16 | #include "port.h" /* for gleVector */ 17 | 18 | typedef float gleColor[3]; 19 | typedef double gleTwoVec[2]; 20 | 21 | typedef struct { 22 | 23 | /* public methods */ 24 | void (*bgn_gen_texture) (int, double); 25 | void (*n3f_gen_texture) (float *); 26 | void (*n3d_gen_texture) (double *); 27 | void (*v3f_gen_texture) (float *, int, int); 28 | void (*v3d_gen_texture) (double *, int, int); 29 | void (*end_gen_texture) (void); 30 | 31 | /* protected members -- "general knowledge" stuff */ 32 | int join_style; 33 | 34 | /* arguments passed into extrusion code */ 35 | int ncp; /* number of contour points */ 36 | gleTwoVec *contour; /* 2D contour */ 37 | gleTwoVec *cont_normal; /* 2D contour normals */ 38 | gleDouble *up; /* up vector */ 39 | int npoints; /* number of points in polyline */ 40 | gleVector *point_array; /* path */ 41 | gleColor *color_array; /* path colors */ 42 | gleAffine *xform_array; /* contour xforms */ 43 | 44 | /* private members, used by texturing code */ 45 | int num_vert; 46 | int segment_number; 47 | double segment_length; 48 | double accum_seg_len; 49 | double prev_x; 50 | double prev_y; 51 | 52 | void (*save_bgn_gen_texture) (int, double); 53 | void (*save_n3f_gen_texture) (float *); 54 | void (*save_n3d_gen_texture) (double *); 55 | void (*save_v3f_gen_texture) (float *, int, int); 56 | void (*save_v3d_gen_texture) (double *, int, int); 57 | void (*save_end_gen_texture) (void); 58 | 59 | } gleGC; 60 | 61 | extern gleGC *_gle_gc; 62 | extern gleGC * gleCreateGC (void); 63 | 64 | #define INIT_GC() {if (!_gle_gc) _gle_gc = gleCreateGC(); } 65 | #define extrusion_join_style (_gle_gc->join_style) 66 | 67 | #define __TUBE_CLOSE_CONTOUR (extrusion_join_style & TUBE_CONTOUR_CLOSED) 68 | #define __TUBE_DRAW_CAP (extrusion_join_style & TUBE_JN_CAP) 69 | #define __TUBE_DRAW_FACET_NORMALS (extrusion_join_style & TUBE_NORM_FACET) 70 | #define __TUBE_DRAW_PATH_EDGE_NORMALS (extrusion_join_style & TUBE_NORM_PATH_EDGE) 71 | 72 | #define __TUBE_STYLE (extrusion_join_style & TUBE_JN_MASK) 73 | #define __TUBE_RAW_JOIN (extrusion_join_style & TUBE_JN_RAW) 74 | #define __TUBE_CUT_JOIN (extrusion_join_style & TUBE_JN_CUT) 75 | #define __TUBE_ANGLE_JOIN (extrusion_join_style & TUBE_JN_ANGLE) 76 | #define __TUBE_ROUND_JOIN (extrusion_join_style & TUBE_JN_ROUND) 77 | 78 | /* ======================= END OF FILE ========================== */ 79 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/Caution.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/Caution.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUT.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | { 4 | ACTIONS = {save = id; saveAs = id; }; 5 | CLASS = FirstResponder; 6 | LANGUAGE = ObjC; 7 | SUPERCLASS = NSObject; 8 | }, 9 | { 10 | ACTIONS = {timerAction = id; }; 11 | CLASS = GLUTApplication; 12 | LANGUAGE = ObjC; 13 | OUTLETS = { 14 | "_aboutMenuItem" = NSMenuItem; 15 | "_hideMenuItem" = NSMenuItem; 16 | "_quitMenuItem" = NSMenuItem; 17 | }; 18 | SUPERCLASS = NSApplication; 19 | }, 20 | { 21 | ACTIONS = {toggleWindow = id; }; 22 | CLASS = GLUTClipboardController; 23 | LANGUAGE = ObjC; 24 | OUTLETS = {"_infoText" = id; "_scrollView" = id; }; 25 | SUPERCLASS = NSWindowController; 26 | }, 27 | { 28 | ACTIONS = { 29 | assign = id; 30 | cancel = id; 31 | inputMenu = id; 32 | invertInput = id; 33 | mouseMatrix = id; 34 | mousePreset = id; 35 | ok = id; 36 | setDefault = id; 37 | }; 38 | CLASS = GLUTPreferencesController; 39 | LANGUAGE = ObjC; 40 | OUTLETS = { 41 | assignPrompt = NSTextField; 42 | assignText = NSTextField; 43 | inputMenu = NSPopUpButton; 44 | inverted = NSButton; 45 | mbConfigMenu = NSPopUpButton; 46 | mbConfigWarningIcon = NSImageView; 47 | mbConfigWarningText = NSTextField; 48 | middleButtonMatrix = NSMatrix; 49 | rightButtonMatrix = NSMatrix; 50 | }; 51 | SUPERCLASS = NSWindowController; 52 | } 53 | ); 54 | IBVersion = 1; 55 | } -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUT.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 4 104 410 240 0 0 1152 848 7 | IBEditorPositions 8 | 9 | 29 10 | 19 615 246 44 0 0 1152 848 11 | 12 | IBFramework Version 13 | 291.0 14 | IBGroupedObjects 15 | 16 | IBLastGroupID 17 | 1 18 | IBOpenObjects 19 | 20 | 29 21 | 22 | IBSystem Version 23 | 6I32 24 | 25 | 26 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUT.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUT.nib/objects.nib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTClipboard.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | { 5 | ACTIONS = {toggleWindow = id; }; 6 | CLASS = GLUTClipboardController; 7 | LANGUAGE = ObjC; 8 | OUTLETS = {_infoText = id; _scrollView = id; }; 9 | SUPERCLASS = NSWindowController; 10 | } 11 | ); 12 | IBVersion = 1; 13 | } -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTClipboard.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 63 221 356 240 0 0 1600 1178 7 | IBFramework Version 8 | 263.2 9 | IBSystem Version 10 | 5S41 11 | 12 | 13 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTClipboard.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTClipboard.nib/objects.nib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTPreferences.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | { 4 | ACTIONS = {save = id; saveAs = id; }; 5 | CLASS = FirstResponder; 6 | LANGUAGE = ObjC; 7 | SUPERCLASS = NSObject; 8 | }, 9 | { 10 | ACTIONS = { 11 | cancel = id; 12 | joyAssign = id; 13 | joyDevice = id; 14 | joyElement = id; 15 | joyInvert = id; 16 | launchDebugMode = id; 17 | launchGamemodeCaptureSingle = id; 18 | launchIconic = id; 19 | launchUseCurrWD = id; 20 | launchUseExtDesktop = id; 21 | launchUseMacOSCoords = id; 22 | mouseEanbleEmulation = id; 23 | mouseMiddleMenu = id; 24 | mouseRightMenu = id; 25 | ok = id; 26 | spaceAssign = id; 27 | spaceDevice = id; 28 | spaceElement = id; 29 | spaceInvert = id; 30 | }; 31 | CLASS = GLUTPreferencesController; 32 | LANGUAGE = ObjC; 33 | OUTLETS = { 34 | joyAssign = NSButton; 35 | joyAssignNote = NSTextField; 36 | joyAssignWarningIcon = NSImageView; 37 | joyDeviceMenu = NSPopUpButton; 38 | joyElement = NSTextField; 39 | joyInputMenu = NSPopUpButton; 40 | joyInverted = NSButton; 41 | launchDebugMode = NSButton; 42 | launchFadeTime = NSTextField; 43 | launchGamemodeCaptureSingle = NSButton; 44 | launchIconic = NSButton; 45 | launchInitHeight = NSTextField; 46 | launchInitWidth = NSTextField; 47 | launchInitX = NSTextField; 48 | launchInitY = NSTextField; 49 | launchMenuIdle = NSTextField; 50 | launchSyncToVBL = NSButton; 51 | launchUseCurrWD = NSButton; 52 | launchUseExtendedDesktop = NSButton; 53 | launchUseMacOSXCoords = NSButton; 54 | mouseAssignWarningIcon = NSImageView; 55 | mouseAssignWarningText = NSTextField; 56 | mouseDetected = NSTextField; 57 | mouseEmulation = NSButton; 58 | mouseMiddleConfigMenu = NSPopUpButton; 59 | mouseRightConfigMenu = NSPopUpButton; 60 | prefsTabView = NSTabView; 61 | spaceAssign = NSButton; 62 | spaceAssignNote = NSTextField; 63 | spaceAssignWarningIcon = NSImageView; 64 | spaceDeviceMenu = NSPopUpButton; 65 | spaceElement = NSTextField; 66 | spaceInputMenu = NSPopUpButton; 67 | spaceInverted = NSButton; 68 | }; 69 | SUPERCLASS = NSWindowController; 70 | } 71 | ); 72 | IBVersion = 1; 73 | } -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTPreferences.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 16 329 410 240 0 0 1920 1178 7 | IBFramework Version 8 | 439.0 9 | IBOpenObjects 10 | 11 | 205 12 | 13 | IBSystem Version 14 | 8G32 15 | 16 | 17 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTPreferences.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTPreferences.nib/objects.nib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTUI.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/GLUTUI.strings -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | GLUT 9 | CFBundleGetInfoString 10 | 3.4.0, Copyright (c) 2001-2008 Apple Inc., All Rights Reserved 11 | CFBundleIdentifier 12 | com.apple.glut 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.4.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | GLUT-3.4.0 23 | 24 | 25 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/blankCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/blankCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/bottomCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/bottomCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/bottomleftCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/bottomleftCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/bottomrightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/bottomrightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/crossCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/crossCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/cycleCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/cycleCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/destroyCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/destroyCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/fingerCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/fingerCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/helpCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/helpCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/leftCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/leftCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/leftRightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/leftRightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/rightArrowCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/rightArrowCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/rightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/rightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/sprayCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/sprayCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/topCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/topCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/topleftCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/topleftCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/toprightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/toprightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/upDownCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/upDownCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/waitCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Resources/waitCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/GLUT -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/copy.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * 4 | * Written By Linas Vepstas November 1991 5 | */ 6 | 7 | 8 | #define COPY_THREE_WORDS(A,B) { \ 9 | struct three_words { int a, b, c, }; \ 10 | *(struct three_words *) (A) = *(struct three_words *) (B); \ 11 | } 12 | 13 | #define COPY_FOUR_WORDS(A,B) { \ 14 | struct four_words { int a, b, c, d, }; \ 15 | *(struct four_words *) (A) = *(struct four_words *) (B); \ 16 | } 17 | 18 | /* ============================================================= */ 19 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/extrude.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * extrude.h 4 | * 5 | * FUNCTION: 6 | * prototypes for privately used subroutines for the tubing library 7 | * 8 | * HISTORY: 9 | * Linas Vepstas 1991 10 | */ 11 | 12 | #include "port.h" /* for gleDouble */ 13 | 14 | #ifndef M_PI 15 | #define M_PI 3.14159265358979323846 16 | #endif 17 | 18 | /* ============================================================ */ 19 | /* 20 | * Provides choice of calling subroutine, vs. invoking macro. 21 | * Basically, inlines the source, or not. 22 | * Trades performance for executable size. 23 | */ 24 | 25 | #define INLINE_INTERSECT 26 | #ifdef INLINE_INTERSECT 27 | #define INNERSECT(sect,p,n,v1,v2) { INTERSECT(sect,p,n,v1,v2); } 28 | #else 29 | #define INNERSECT(sect,p,n,v1,v2) intersect(sect,p,n,v1,v2) 30 | #endif /* INLINE_INTERSECT */ 31 | 32 | /* ============================================================ */ 33 | /* The folowing defines give a kludgy way of accessing the qmesh primitive */ 34 | 35 | /* 36 | #define bgntmesh _emu_qmesh_bgnqmesh 37 | #define endtmesh _emu_qmesh_endqmesh 38 | #define c3f _emu_qmesh_c3f 39 | #define n3f _emu_qmesh_n3f 40 | #define v3f _emu_qmesh_v3f 41 | */ 42 | 43 | /* ============================================================ */ 44 | 45 | extern void up_sanity_check (gleDouble up[3], /* up vector for contour */ 46 | int npoints, /* numpoints in poly-line */ 47 | gleDouble point_array[][3]); /* polyline */ 48 | 49 | 50 | extern void draw_raw_style_end_cap (int ncp, /* number of contour points */ 51 | gleDouble contour[][2], /* 2D contour */ 52 | gleDouble zval, /* where to draw cap */ 53 | int frontwards); /* front or back cap */ 54 | 55 | extern void draw_round_style_cap_callback (int iloop, 56 | double cap[][3], 57 | float face_color[3], 58 | gleDouble cut_vector[3], 59 | gleDouble bisect_vector[3], 60 | double norms[][3], 61 | int frontwards); 62 | 63 | extern void draw_angle_style_front_cap (int ncp, 64 | gleDouble bi[3], 65 | gleDouble point_array[][3]); 66 | 67 | extern void extrusion_raw_join (int ncp, /* number of contour points */ 68 | gleDouble contour[][2], /* 2D contour */ 69 | gleDouble cont_normal[][2],/* 2D contour normal vecs */ 70 | gleDouble up[3], /* up vector for contour */ 71 | int npoints, /* numpoints in poly-line */ 72 | gleDouble point_array[][3], /* polyline */ 73 | float color_array[][3], /* color of polyline */ 74 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 75 | 76 | 77 | extern void extrusion_round_or_cut_join (int ncp, /* number of contour points */ 78 | gleDouble contour[][2], /* 2D contour */ 79 | gleDouble cont_normal[][2],/* 2D contour normal vecs */ 80 | gleDouble up[3], /* up vector for contour */ 81 | int npoints, /* numpoints in poly-line */ 82 | gleDouble point_array[][3], /* polyline */ 83 | float color_array[][3], /* color of polyline */ 84 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 85 | 86 | 87 | extern void extrusion_angle_join (int ncp, /* number of contour points */ 88 | gleDouble contour[][2], /* 2D contour */ 89 | gleDouble cont_normal[][2],/* 2D contour normal vecs */ 90 | gleDouble up[3], /* up vector for contour */ 91 | int npoints, /* numpoints in poly-line */ 92 | gleDouble point_array[][3], /* polyline */ 93 | float color_array[][3], /* color of polyline */ 94 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 95 | 96 | /* -------------------------- end of file -------------------------------- */ 97 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/glsmap.h: -------------------------------------------------------------------------------- 1 | #ifndef __glsmap_h__ 2 | #define __glsmap_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1998. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #if defined(_WIN32) 11 | 12 | /* Try hard to avoid including to avoid name space pollution, 13 | but Win32's needs APIENTRY and WINGDIAPI defined properly. */ 14 | # if 0 15 | # define WIN32_LEAN_AND_MEAN 16 | # include 17 | # else 18 | /* XXX This is from Win32's */ 19 | # ifndef APIENTRY 20 | # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) 21 | # define APIENTRY __stdcall 22 | # else 23 | # define APIENTRY 24 | # endif 25 | # endif 26 | # ifndef CALLBACK 27 | /* XXX This is from Win32's */ 28 | # if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS) 29 | # define CALLBACK __stdcall 30 | # else 31 | # define CALLBACK 32 | # endif 33 | # endif 34 | /* XXX This is from Win32's and */ 35 | # ifndef WINGDIAPI 36 | # define WINGDIAPI __declspec(dllimport) 37 | # endif 38 | /* XXX This is from Win32's */ 39 | # ifndef _WCHAR_T_DEFINED 40 | typedef unsigned short wchar_t; 41 | # define _WCHAR_T_DEFINED 42 | # endif 43 | # endif 44 | 45 | #pragma warning (disable:4244) /* Disable bogus conversion warnings. */ 46 | #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ 47 | 48 | #endif /* _WIN32 */ 49 | 50 | #include 51 | 52 | #ifdef __cplusplus 53 | extern "C" { 54 | #endif 55 | 56 | typedef enum { 57 | SMAP_CLEAR_SMAP_TEXTURE = 0x1, 58 | SMAP_GENERATE_VIEW_MIPMAPS = 0x2, 59 | SMAP_GENERATE_SMAP_MIPMAPS = 0x4, 60 | SMAP_GENERATE_MIPMAPS = 0x6 /* both of above */ 61 | } SphereMapFlags; 62 | 63 | /* Cube view enumerants. */ 64 | enum { 65 | SMAP_FRONT = 0, 66 | SMAP_TOP = 1, 67 | SMAP_BOTTOM = 2, 68 | SMAP_LEFT = 3, 69 | SMAP_RIGHT = 4, 70 | SMAP_BACK = 5 71 | }; 72 | 73 | typedef struct _SphereMap SphereMap; 74 | 75 | extern SphereMap *smapCreateSphereMap(SphereMap *shareSmap); 76 | extern void smapDestroySphereMap(SphereMap *smap); 77 | 78 | extern void smapConfigureSphereMapMesh(SphereMap *smap, int steps, int rings, int edgeExtend); 79 | 80 | extern void smapSetSphereMapTexObj(SphereMap *smap, GLuint texobj); 81 | extern void smapSetViewTexObj(SphereMap *smap, GLuint texobj); 82 | extern void smapSetViewTexObjs(SphereMap *smap, GLuint texobjs[6]); 83 | extern void smapGetSphereMapTexObj(SphereMap *smap, GLuint *texobj); 84 | extern void smapGetViewTexObj(SphereMap *smap, GLuint *texobj); 85 | extern void smapGetViewTexObjs(SphereMap *smap, GLuint texobjs[6]); 86 | 87 | extern void smapSetFlags(SphereMap *smap, SphereMapFlags flags); 88 | extern void smapGetFlags(SphereMap *smap, SphereMapFlags *flags); 89 | 90 | extern void smapSetViewOrigin(SphereMap *smap, GLint x, GLint y); 91 | extern void smapSetSphereMapOrigin(SphereMap *smap, GLint x, GLint y); 92 | extern void smapGetViewOrigin(SphereMap *smap, GLint *x, GLint *y); 93 | extern void smapGetSphereMapOrigin(SphereMap *smap, GLint *x, GLint *y); 94 | 95 | extern void smapSetEye(SphereMap *smap, GLfloat eyex, GLfloat eyey, GLfloat eyez); 96 | extern void smapSetEyeVector(SphereMap *smap, GLfloat *eye); 97 | extern void smapSetUp(SphereMap *smap, GLfloat upx, GLfloat upy, GLfloat upz); 98 | extern void smapSetUpVector(SphereMap *smap, GLfloat *up); 99 | extern void smapSetObject(SphereMap *smap, GLfloat objx, GLfloat objy, GLfloat objz); 100 | extern void smapSetObjectVector(SphereMap *smap, GLfloat *obj); 101 | extern void smapGetEye(SphereMap *smap, GLfloat *eyex, GLfloat *eyey, GLfloat *eyez); 102 | extern void smapGetEyeVector(SphereMap *smap, GLfloat *eye); 103 | extern void smapGetUp(SphereMap *smap, GLfloat *upx, GLfloat *upy, GLfloat *upz); 104 | extern void smapGetUpVector(SphereMap *smap, GLfloat *up); 105 | extern void smapGetObject(SphereMap *smap, GLfloat *objx, GLfloat *objy, GLfloat *objz); 106 | extern void smapGetObjectVector(SphereMap *smap, GLfloat *obj); 107 | 108 | extern void smapSetNearFar(SphereMap *smap, GLfloat viewNear, GLfloat viewFar); 109 | extern void smapGetNearFar(SphereMap *smap, GLfloat *viewNear, GLfloat *viewFar); 110 | 111 | extern void smapSetSphereMapTexDim(SphereMap *smap, GLsizei texdim); 112 | extern void smapSetViewTexDim(SphereMap *smap, GLsizei texdim); 113 | extern void smapGetSphereMapTexDim(SphereMap *smap, GLsizei *texdim); 114 | extern void smapGetViewTexDim(SphereMap *smap, GLsizei *texdim); 115 | 116 | extern void smapSetContextData(SphereMap *smap, void *context); 117 | extern void smapGetContextData(SphereMap *smap, void **context); 118 | 119 | extern void smapSetPositionLightsFunc(SphereMap *smap, void (*positionLights)(int view, void *context)); 120 | extern void smapSetDrawViewFunc(SphereMap *smap, void (*drawView)(int view, void *context)); 121 | extern void smapGetPositionLightsFunc(SphereMap *smap, void (**positionLights)(int view, void *context)); 122 | extern void smapGetDrawViewFunc(SphereMap *smap, void (**drawView)(int view, void *context)); 123 | 124 | extern void smapGenViewTex(SphereMap *smap, int view); 125 | extern void smapGenViewTexs(SphereMap *smap); 126 | extern void smapGenSphereMapFromViewTexs(SphereMap *smap); 127 | extern void smapGenSphereMap(SphereMap *smap); 128 | extern void smapGenSphereMapWithOneViewTex(SphereMap *smap); 129 | 130 | extern int smapRvecToSt(float rvec[3], float st[2]); 131 | extern void smapStToRvec(float *st, float *rvec); 132 | 133 | #ifdef __cplusplus 134 | } 135 | 136 | #endif 137 | #endif /* __glsmap_h__ */ 138 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/glsmapint.h: -------------------------------------------------------------------------------- 1 | #ifndef __glsmapint_h__ 2 | #define __glsmapint_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1998. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #include "glsmap.h" 11 | 12 | enum { X = 0, Y = 1, Z = 2 }; 13 | 14 | #define INITFACE(mesh) \ 15 | int steps = mesh->steps; \ 16 | int sqsteps = mesh->steps * mesh->steps 17 | 18 | #define FACE(side,y,x) \ 19 | mesh->face[(side)*sqsteps + (y)*steps + (x)] 20 | 21 | #define FACExy(side,i,j) \ 22 | (&FACE(side,i,j).x) 23 | 24 | #define FACEst(side,i,j) \ 25 | (&FACE(side,i,j).s) 26 | 27 | #define INITBACK(mesh) \ 28 | int allrings = mesh->rings + mesh->edgeExtend; \ 29 | int ringedspokes = allrings * mesh->steps 30 | 31 | #define BACK(edge,ring,spoke) \ 32 | mesh->back[(edge)*ringedspokes + (ring)*mesh->steps + (spoke)] 33 | 34 | #define BACKxy(edge,ring,spoke) \ 35 | (&BACK(edge,ring,spoke).x) 36 | 37 | #define BACKst(edge,ring,spoke) \ 38 | (&BACK(edge,ring,spoke).s) 39 | 40 | typedef struct _STXY { 41 | GLfloat s, t; 42 | GLfloat x, y; 43 | } STXY; 44 | 45 | typedef struct _SphereMapMesh { 46 | 47 | int refcnt; 48 | 49 | int steps; 50 | int rings; 51 | int edgeExtend; 52 | 53 | STXY *face; 54 | STXY *back; 55 | 56 | } SphereMapMesh; 57 | 58 | struct _SphereMap { 59 | 60 | /* Shared sphere map mesh vertex data. */ 61 | SphereMapMesh *mesh; 62 | 63 | /* Texture object ids. */ 64 | GLuint smapTexObj; 65 | GLuint viewTexObjs[6]; 66 | GLuint viewTexObj; 67 | 68 | /* Flags */ 69 | SphereMapFlags flags; 70 | 71 | /* Texture dimensions must be a power of two. */ 72 | int viewTexDim; /* view texture dimension */ 73 | int smapTexDim; /* sphere map texture dimension */ 74 | 75 | /* Viewport origins for view and sphere map rendering. */ 76 | int viewOrigin[2]; 77 | int smapOrigin[2]; 78 | 79 | /* Viewing vectors. */ 80 | GLfloat eye[3]; 81 | GLfloat up[3]; 82 | GLfloat obj[3]; 83 | 84 | /* Projection parameters. */ 85 | GLfloat viewNear; 86 | GLfloat viewFar; 87 | 88 | /* Rendering callbacks. */ 89 | void (*positionLights)(int view, void *context); 90 | void (*drawView)(int view, void *context); 91 | 92 | /* Application specified callback data. */ 93 | void *context; 94 | 95 | }; 96 | 97 | /* Library internal routines. */ 98 | extern void __smapDrawSphereMapMeshSide(SphereMapMesh *mesh, int side); 99 | extern void __smapDrawSphereMapMeshBack(SphereMapMesh *mesh); 100 | extern void __smapValidateSphereMapMesh(SphereMapMesh *mesh); 101 | 102 | #endif /* __glsmapint_h__ */ 103 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/glutbitmap.h: -------------------------------------------------------------------------------- 1 | #ifndef __glutbitmap_h__ 2 | #define __glutbitmap_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1994. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #include "glut.h" 11 | 12 | typedef struct { 13 | const GLsizei width; 14 | const GLsizei height; 15 | const GLfloat xorig; 16 | const GLfloat yorig; 17 | const GLfloat advance; 18 | const GLubyte *bitmap; 19 | } BitmapCharRec, *BitmapCharPtr; 20 | 21 | typedef struct { 22 | const char *name; 23 | const int num_chars; 24 | const int first; 25 | const BitmapCharRec * const *ch; 26 | } BitmapFontRec, *BitmapFontPtr; 27 | 28 | typedef void *GLUTbitmapFont; 29 | 30 | #endif /* __glutbitmap_h__ */ 31 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/glutf90.h: -------------------------------------------------------------------------------- 1 | #ifndef __glutf90_h__ 2 | #define __glutf90_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard & Willam F. Mitchell, 1998. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | /* This header provides the binding interface for William Mitchell's 11 | f90gl Fortran 90 GLUT binding. Other GLUT language bindings 12 | can and should use this interace. */ 13 | 14 | /* I appreciate the guidance from William Mitchell 15 | (mitchell@cam.nist.gov) in developing this friend interface 16 | for use by the f90gl package. See ../../README.fortran */ 17 | 18 | #include 19 | 20 | #ifndef GLUTCALLBACK 21 | #define GLUTCALLBACK 22 | #endif 23 | #ifndef APIENTRY 24 | #define APIENTRY 25 | #endif 26 | 27 | /* Which callback enumerants for the __glutSetFCB/__glutGetFCB routines. */ 28 | /* NOTE These values are part of a binary interface for the f90gl Fortran 29 | 90 binding and so must NOT changes (additions are allowed). */ 30 | 31 | /* GLUTwindow callbacks. */ 32 | #define GLUT_FCB_DISPLAY 0 /* GLUTdisplayFCB */ 33 | #define GLUT_FCB_RESHAPE 1 /* GLUTreshapeFCB */ 34 | #define GLUT_FCB_MOUSE 2 /* GLUTmouseFCB */ 35 | #define GLUT_FCB_MOTION 3 /* GLUTmotionFCB */ 36 | #define GLUT_FCB_PASSIVE 4 /* GLUTpassiveFCB */ 37 | #define GLUT_FCB_ENTRY 5 /* GLUTentryFCB */ 38 | #define GLUT_FCB_KEYBOARD 6 /* GLUTkeyboardFCB */ 39 | #define GLUT_FCB_KEYBOARD_UP 7 /* GLUTkeyboardFCB */ 40 | #define GLUT_FCB_WINDOW_STATUS 8 /* GLUTwindowStatusFCB */ 41 | #define GLUT_FCB_VISIBILITY 9 /* GLUTvisibilityFCB */ 42 | #define GLUT_FCB_SPECIAL 10 /* GLUTspecialFCB */ 43 | #define GLUT_FCB_SPECIAL_UP 11 /* GLUTspecialFCB */ 44 | #define GLUT_FCB_BUTTON_BOX 12 /* GLUTbuttonBoxFCB */ 45 | #define GLUT_FCB_DIALS 13 /* GLUTdialsFCB */ 46 | #define GLUT_FCB_SPACE_MOTION 14 /* GLUTspaceMotionFCB */ 47 | #define GLUT_FCB_SPACE_ROTATE 15 /* GLUTspaceRotateFCB */ 48 | #define GLUT_FCB_SPACE_BUTTON 16 /* GLUTspaceButtonFCB */ 49 | #define GLUT_FCB_TABLET_MOTION 17 /* GLUTtabletMotionFCB */ 50 | #define GLUT_FCB_TABLET_BUTTON 18 /* GLUTtabletButtonFCB */ 51 | #define GLUT_FCB_JOYSTICK 19 /* GLUTjoystickFCB */ 52 | #define GLUT_FCB_WMCLOSE 20 /* GLUTwmcloseFCB */ 53 | /* Non-GLUTwindow callbacks. */ 54 | #define GLUT_FCB_OVERLAY_DISPLAY 100 /* GLUTdisplayFCB */ 55 | #define GLUT_FCB_SELECT 101 /* GLUTselectFCB */ 56 | #define GLUT_FCB_TIMER 102 /* GLUTtimerFCB */ 57 | 58 | /* GLUT Fortran callback function types. */ 59 | typedef void (GLUTCALLBACK *GLUTdisplayFCB) (void); 60 | typedef void (GLUTCALLBACK *GLUTwmcloseFCB) (void); 61 | typedef void (GLUTCALLBACK *GLUTreshapeFCB) (int *, int *); 62 | /* NOTE the pressed key is int, not unsigned char for Fortran! */ 63 | typedef void (GLUTCALLBACK *GLUTkeyboardFCB) (int *, int *, int *); 64 | typedef void (GLUTCALLBACK *GLUTmouseFCB) (int *, int *, int *, int *); 65 | typedef void (GLUTCALLBACK *GLUTmotionFCB) (int *, int *); 66 | typedef void (GLUTCALLBACK *GLUTpassiveFCB) (int *, int *); 67 | typedef void (GLUTCALLBACK *GLUTentryFCB) (int *); 68 | typedef void (GLUTCALLBACK *GLUTwindowStatusFCB) (int *); 69 | typedef void (GLUTCALLBACK *GLUTvisibilityFCB) (int *); 70 | typedef void (GLUTCALLBACK *GLUTspecialFCB) (int *, int *, int *); 71 | typedef void (GLUTCALLBACK *GLUTbuttonBoxFCB) (int *, int *); 72 | typedef void (GLUTCALLBACK *GLUTdialsFCB) (int *, int *); 73 | typedef void (GLUTCALLBACK *GLUTspaceMotionFCB) (int *, int *, int *); 74 | typedef void (GLUTCALLBACK *GLUTspaceRotateFCB) (int *, int *, int *); 75 | typedef void (GLUTCALLBACK *GLUTspaceButtonFCB) (int *, int *); 76 | typedef void (GLUTCALLBACK *GLUTtabletMotionFCB) (int *, int *); 77 | typedef void (GLUTCALLBACK *GLUTtabletButtonFCB) (int *, int *, int *, int *); 78 | typedef void (GLUTCALLBACK *GLUTjoystickFCB) (unsigned int *buttonMask, int *x, int *y, int *z); 79 | 80 | typedef void (GLUTCALLBACK *GLUTselectFCB) (int *); 81 | typedef void (GLUTCALLBACK *GLUTtimerFCB) (int *); 82 | typedef void (GLUTCALLBACK *GLUTmenuStateFCB) (int *); /* DEPRICATED. */ 83 | typedef void (GLUTCALLBACK *GLUTmenuStatusFCB) (int *, int *, int *); 84 | typedef void (GLUTCALLBACK *GLUTidleFCB) (void); 85 | 86 | /* Functions that set and return Fortran callback functions. */ 87 | extern void* APIENTRY __glutGetFCB(int which); 88 | extern void APIENTRY __glutSetFCB(int which, void *func); 89 | 90 | #endif /* __glutf90_h__ */ 91 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/glutstroke.h: -------------------------------------------------------------------------------- 1 | #ifndef __glutstroke_h__ 2 | #define __glutstroke_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1994. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #if defined(_WIN32) 11 | #pragma warning (disable:4244) /* disable bogus conversion warnings */ 12 | #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ 13 | #endif 14 | 15 | typedef struct { 16 | float x; 17 | float y; 18 | } CoordRec, *CoordPtr; 19 | 20 | typedef struct { 21 | int num_coords; 22 | const CoordRec *coord; 23 | } StrokeRec, *StrokePtr; 24 | 25 | typedef struct { 26 | int num_strokes; 27 | const StrokeRec *stroke; 28 | float center; 29 | float right; 30 | } StrokeCharRec, *StrokeCharPtr; 31 | 32 | typedef struct { 33 | const char *name; 34 | int num_chars; 35 | const StrokeCharRec *ch; 36 | float top; 37 | float bottom; 38 | } StrokeFontRec, *StrokeFontPtr; 39 | 40 | typedef void *GLUTstrokeFont; 41 | 42 | #endif /* __glutstroke_h__ */ 43 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/gutil.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * gutil.h 4 | * 5 | * FUNCTION: 6 | * Provide utilities that allow rotation to occur 7 | * around any axis. 8 | * 9 | * HISTORY: 10 | * created by Linas Vepstas 1990 11 | * added single & double precision, June 1991, Linas Vepstas 12 | */ 13 | 14 | #ifndef __GUTIL_H__ 15 | #define __GUTIL_H__ 16 | 17 | #ifdef __GUTIL_DOUBLE 18 | #define gutDouble double 19 | #else 20 | #define gutDouble float 21 | #endif 22 | 23 | 24 | #ifdef _NO_PROTO /* NO ANSI C PROTOTYPING */ 25 | 26 | /* Rotation Utilities */ 27 | extern void rot_axis_f (); 28 | extern void rot_about_axis_f (); 29 | extern void rot_omega_f (); 30 | extern void urot_axis_f (); 31 | extern void urot_about_axis_f (); 32 | extern void urot_omega_f (); 33 | 34 | /* double-precision versions */ 35 | extern void rot_axis_d (); 36 | extern void rot_about_axis_d (); 37 | extern void rot_omega_d (); 38 | extern void urot_axis_d (); 39 | extern void urot_about_axis_d (); 40 | extern void urot_omega_d (); 41 | 42 | /* viewpoint functions */ 43 | extern void uview_direction_d (); 44 | extern void uview_direction_f (); 45 | extern void uviewpoint_d (); 46 | extern void uviewpoint_f (); 47 | 48 | #else /* _NO_PROTO */ /* ANSI C PROTOTYPING */ 49 | 50 | /* Rotation Utilities */ 51 | extern void rot_axis_f (float omega, float axis[3]); 52 | extern void rot_about_axis_f (float angle, float axis[3]); 53 | extern void rot_omega_f (float axis[3]); 54 | extern void urot_axis_f (float m[4][4], float omega, float axis[3]); 55 | extern void urot_about_axis_f (float m[4][4], float angle, float axis[3]); 56 | extern void urot_omega_f (float m[4][4], float axis[3]); 57 | 58 | /* double-precision versions */ 59 | extern void rot_axis_d (double omega, double axis[3]); 60 | extern void rot_about_axis_d (double angle, double axis[3]); 61 | extern void rot_omega_d (double axis[3]); 62 | extern void urot_axis_d (double m[4][4], double omega, double axis[3]); 63 | extern void urot_about_axis_d (double m[4][4], double angle, double axis[3]); 64 | extern void urot_omega_d (double m[4][4], double axis[3]); 65 | 66 | /* viewpoint functions */ 67 | extern void uview_direction_d (double m[4][4], /* returned */ 68 | double v21[3], /* input */ 69 | double up[3]); /* input */ 70 | 71 | extern void uview_direction_f (float m[4][4], /* returned */ 72 | float v21[3], /* input */ 73 | float up[3]); /* input */ 74 | 75 | extern void uviewpoint_d (double m[4][4], /* returned */ 76 | double v1[3], /* input */ 77 | double v2[3], /* input */ 78 | double up[3]); /* input */ 79 | 80 | extern void uviewpoint_f (float m[4][4], /* returned */ 81 | float v1[3], /* input */ 82 | float v2[3], /* input */ 83 | float up[3]); /* input */ 84 | 85 | #endif /* _NO_PROTO */ 86 | 87 | #endif /* _GUTIL_H__ */ 88 | 89 | /* ------------------- end of file ---------------------- */ 90 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/port.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * port.h 4 | * 5 | * FUNCTION: 6 | * This file contains defines for porting the tubing toolkit from GL to 7 | * OpenGL to some callback scheme. 8 | * 9 | * HISTORY: 10 | * Created by Linas Vepstas -- February 1993 11 | * Added auto texture coord generation hacks, Linas April 1994 12 | */ 13 | 14 | #ifndef __GLE_PORT_H__ 15 | #define __GLE_PORT_H__ 16 | 17 | 18 | #ifndef TRUE 19 | #define TRUE 1 20 | #endif 21 | 22 | #ifndef FALSE 23 | #define FALSE 0 24 | #endif 25 | 26 | #ifndef M_PI 27 | #define M_PI 3.14159265358979323846 28 | #endif 29 | 30 | /* ====================================================== */ 31 | /* Some compilers can't handle multiply-subscripted array's */ 32 | 33 | #ifdef FUNKY_C 34 | typedef gleDouble gleVector; 35 | #define AVAL(arr,n,i,j) arr(6*n+3*i+j) 36 | #define VVAL(arr,n,i) arr(3*n+i) 37 | 38 | #else /* FUNKY_C */ 39 | typedef double gleVector[3]; 40 | typedef double glePoint[2]; 41 | #define AVAL(arr,n,i,j) arr[n][i][j] 42 | #define VVAL(arr,n,i) arr[n][i]; 43 | 44 | #endif /* FUNKY_C */ 45 | 46 | /* ====================================================== */ 47 | /* These are used to convey info about topography to the 48 | * texture mapping routines */ 49 | 50 | #define FRONT 1 51 | #define BACK 2 52 | #define FRONT_CAP 3 53 | #define BACK_CAP 4 54 | #define FILLET 5 55 | 56 | /* ====================================================== */ 57 | 58 | #define __GLE_DOUBLE 59 | 60 | /* ====================================================== */ 61 | 62 | #ifdef __GLE_DOUBLE 63 | #ifndef gleDouble 64 | #define gleDouble double 65 | #endif 66 | #define urot_axis(a,b,c) urot_axis_d(a,b,c) 67 | #define uview_direction(a,b,c) uview_direction_d(a,b,c) 68 | #define uviewpoint(a,b,c,d) uviewpoint_d(a,b,c,d) 69 | #define MULTMATRIX(m) MULTMATRIX_D(m) 70 | #define LOADMATRIX(m) LOADMATRIX_D(m) 71 | #define V3F(x,j,id) V3F_D(x,j,id) 72 | #define N3F(x) N3F_D(x) 73 | #define T2F(x,y) T2F_D(x,y) 74 | #else 75 | #define gleDouble float 76 | #define urot_axis(a,b,c) urot_axis_f(a,b,c) 77 | #define uview_direction(a,b,c) uview_direction_f(a,b,c) 78 | #define uviewpoint(a,b,c,d) uviewpoint_f(a,b,c,d) 79 | #define MULTMATRIX(m) MULTMATRIX_F(m) 80 | #define LOADMATRIX(m) LOADMATRIX_F(m) 81 | #define V3F(x,j,id) V3F_F(x,j,id) 82 | #define N3F(x) N3F_F(x) 83 | #define T2F(x,y) T2F_F(x,y) 84 | #endif 85 | 86 | /* ====================================================== */ 87 | 88 | #if (defined DEBUG_GL_32 || DEBUG_OPENGL_10) 89 | #undef GL_32 90 | #undef OPENGL_10 91 | 92 | #define BGNTMESH(i,len) printf ("bgntmesh() \n"); 93 | #define ENDTMESH() printf ("endtmesh() \n"); 94 | #define BGNPOLYGON() printf ("bgnpolygon() \n"); 95 | #define ENDPOLYGON() printf ("endpolygon() \n"); 96 | #define V3F_F(x,j,id) printf ("v3f(x) %f %f %f \n", x[0], x[1], x[2]); 97 | #define V3F_D(x,j,id) printf ("v3d(x) %f %f %f \n", x[0], x[1], x[2]); 98 | #define N3F_F(x) printf ("n3f(x) %f %f %f \n", x[0], x[1], x[2]); 99 | #define N3F_D(x) printf ("n3d(x) %f %f %f \n", x[0], x[1], x[2]); 100 | #define C3F(x) printf ("c3f(x) %f %f %f \n", x[0], x[1], x[2]); 101 | 102 | #define POPMATRIX() printf ("popmatrix () \n"); 103 | #define PUSHMATRIX() printf ("pushmatrix() \n"); 104 | #define MULTMATRIX_F(x) MULTMATRIX_D(x) 105 | #define LOADMATRIX_F(x) LOADMATRIX_D(x) 106 | 107 | 108 | #define LOADMATRIX_D(x) { \ 109 | int i, j; \ 110 | printf ("loadmatrix (x) \n"); \ 111 | for (i=0; i<4; i++) { \ 112 | for (j=0; j<4; j++) { \ 113 | printf ( "%f ", x[i][j]); \ 114 | } \ 115 | printf (" \n"); \ 116 | } \ 117 | } 118 | 119 | #define MULTMATRIX_D(x) { \ 120 | int i, j; \ 121 | printf ("multmatrix (x) \n"); \ 122 | for (i=0; i<4; i++) { \ 123 | for (j=0; j<4; j++) { \ 124 | printf ( "%f ", x[i][j]); \ 125 | } \ 126 | printf (" \n"); \ 127 | } \ 128 | } 129 | 130 | #define __IS_LIGHTING_ON (1) 131 | 132 | #endif 133 | 134 | /* ====================================================== */ 135 | 136 | #ifdef GL_32 137 | 138 | #include 139 | 140 | #define BGNTMESH(i,len) bgntmesh() 141 | #define ENDTMESH() endtmesh() 142 | #define BGNPOLYGON() bgnpolygon() 143 | #define ENDPOLYGON() endpolygon() 144 | #define V3F_F(x,j,id) v3f(x) 145 | #define V3F_D(x,j,id) v3d(x) 146 | #define N3F_F(x) n3f(x) 147 | #define T2F_F(x,y) 148 | #define T2F_D(x,y) 149 | #define C3F(x) c3f(x) 150 | 151 | #define POPMATRIX() popmatrix () 152 | #define PUSHMATRIX() pushmatrix() 153 | #define MULTMATRIX_F(x) multmatrix (x) 154 | #define LOADMATRIX_F(x) loadmatrix (x) 155 | 156 | #define N3F_D(x) { \ 157 | float nnn[3]; \ 158 | nnn[0] = (float) x[0]; \ 159 | nnn[1] = (float) x[1]; \ 160 | nnn[2] = (float) x[2]; \ 161 | n3f (nnn); \ 162 | } 163 | 164 | #define LOADMATRIX_D(x) { \ 165 | int i, j; \ 166 | float mmm[4][4]; \ 167 | for (i=0; i<4; i++) { \ 168 | for (j=0; j<4; j++) { \ 169 | mmm[i][j] = (float) x[i][j]; \ 170 | } \ 171 | } \ 172 | loadmatrix(mmm); \ 173 | } 174 | 175 | #define MULTMATRIX_D(x) { \ 176 | int i, j; \ 177 | float mmm[4][4]; \ 178 | for (i=0; i<4; i++) { \ 179 | for (j=0; j<4; j++) { \ 180 | mmm[i][j] = (float) x[i][j]; \ 181 | } \ 182 | } \ 183 | multmatrix(mmm); \ 184 | } 185 | 186 | /* #define __IS_LIGHTING_ON (MSINGLE == getmmode()) */ 187 | #define __IS_LIGHTING_ON (extrusion_join_style & TUBE_LIGHTING_ON) 188 | 189 | #endif /* GL_32 */ 190 | 191 | /* ====================================================== */ 192 | #ifdef OPENGL_10 193 | 194 | #if defined(_WIN32) 195 | #include 196 | #pragma warning (disable:4244) /* disable bogus conversion warnings */ 197 | #endif 198 | #include 199 | #include 200 | 201 | /* 202 | #define N3F_F(x) { \ 203 | float nnn[3]; \ 204 | nnn[0] = - (float) x[0]; \ 205 | nnn[1] = - (float) x[1]; \ 206 | nnn[2] = - (float) x[2]; \ 207 | glNormal3fv (nnn); \ 208 | } 209 | #define N3F_D(x) { \ 210 | float nnn[3]; \ 211 | nnn[0] = - (float) x[0]; \ 212 | nnn[1] = - (float) x[1]; \ 213 | nnn[2] = - (float) x[2]; \ 214 | glNormal3fv (nnn); \ 215 | } 216 | */ 217 | 218 | #define C3F(x) glColor3fv(x) 219 | #define T2F_F(x,y) glTexCoord2f(x,y) 220 | #define T2F_D(x,y) glTexCoord2d(x,y) 221 | 222 | #define POPMATRIX() glPopMatrix() 223 | #define PUSHMATRIX() glPushMatrix() 224 | 225 | #define MULTMATRIX_F(x) glMultMatrixf ((const GLfloat *)x) 226 | #define LOADMATRIX_F(x) glLoadMatrixf ((const GLfloat *)x) 227 | 228 | #define MULTMATRIX_D(x) glMultMatrixd ((const GLdouble *)x) 229 | #define LOADMATRIX_D(x) glLoadMatrixd ((const GLdouble *)x) 230 | 231 | #define __IS_LIGHTING_ON (glIsEnabled(GL_LIGHTING)) 232 | 233 | /* ====================================================== */ 234 | #ifdef AUTO_TEXTURE 235 | 236 | #define BGNTMESH(i,len) { \ 237 | if(_gle_gc -> bgn_gen_texture) (*(_gle_gc -> bgn_gen_texture))(i,len);\ 238 | glBegin (GL_TRIANGLE_STRIP); \ 239 | } 240 | 241 | #define BGNPOLYGON() { \ 242 | if(_gle_gc -> bgn_gen_texture) (*(_gle_gc -> bgn_gen_texture))();\ 243 | glBegin (GL_POLYGON); \ 244 | } 245 | 246 | #define N3F_F(x) { \ 247 | if(_gle_gc -> n3f_gen_texture) (*(_gle_gc -> n3f_gen_texture))(x); \ 248 | glNormal3fv(x); \ 249 | } 250 | 251 | #define N3F_D(x) { \ 252 | if(_gle_gc -> n3d_gen_texture) (*(_gle_gc -> n3d_gen_texture))(x); \ 253 | glNormal3dv(x); \ 254 | } 255 | 256 | #define V3F_F(x,j,id) { \ 257 | if(_gle_gc -> v3f_gen_texture) (*(_gle_gc -> v3f_gen_texture))(x,j,id);\ 258 | glVertex3fv(x); \ 259 | } 260 | 261 | #define V3F_D(x,j,id) { \ 262 | if(_gle_gc -> v3d_gen_texture) (*(_gle_gc -> v3d_gen_texture))(x,j,id); \ 263 | glVertex3dv(x); \ 264 | } 265 | 266 | #define ENDTMESH() { \ 267 | if(_gle_gc -> end_gen_texture) (*(_gle_gc -> end_gen_texture))(); \ 268 | glEnd (); \ 269 | } 270 | 271 | #define ENDPOLYGON() { \ 272 | if(_gle_gc -> end_gen_texture) (*(_gle_gc -> end_gen_texture))(); \ 273 | glEnd (); \ 274 | } 275 | 276 | /* ====================================================== */ 277 | #else /* AUTO_TEXTURE */ 278 | 279 | #define BGNTMESH(i,len) glBegin (GL_TRIANGLE_STRIP); 280 | #define BGNPOLYGON() glBegin (GL_POLYGON); 281 | 282 | #define N3F_F(x) glNormal3fv(x) 283 | #define N3F_D(x) glNormal3dv(x) 284 | #define V3F_F(x,j,id) glVertex3fv(x); 285 | #define V3F_D(x,j,id) glVertex3dv(x); 286 | 287 | #define ENDTMESH() glEnd () 288 | #define ENDPOLYGON() glEnd() 289 | 290 | #endif /* AUTO_TEXTURE */ 291 | 292 | #endif /* OPENGL_10 */ 293 | 294 | /* ====================================================== */ 295 | 296 | 297 | #endif /* __GLE_PORT_H__ */ 298 | /* ================== END OF FILE ======================= */ 299 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/rot.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * rot.h 4 | * 5 | * FUNCTION: 6 | * rotation matrix utilities 7 | * 8 | * HISTORY: 9 | * Linas Vepstas Aug 1990 10 | */ 11 | 12 | /* ========================================================== */ 13 | /* 14 | * The MACROS below generate and return more traditional rotation 15 | * matrices -- matrices for rotations about principal axes. 16 | */ 17 | /* ========================================================== */ 18 | 19 | #define ROTX_CS(m,cosine,sine) \ 20 | { \ 21 | /* rotation about the x-axis */ \ 22 | \ 23 | m[0][0] = 1.0; \ 24 | m[0][1] = 0.0; \ 25 | m[0][2] = 0.0; \ 26 | m[0][3] = 0.0; \ 27 | \ 28 | m[1][0] = 0.0; \ 29 | m[1][1] = (cosine); \ 30 | m[1][2] = (sine); \ 31 | m[1][3] = 0.0; \ 32 | \ 33 | m[2][0] = 0.0; \ 34 | m[2][1] = -(sine); \ 35 | m[2][2] = (cosine); \ 36 | m[2][3] = 0.0; \ 37 | \ 38 | m[3][0] = 0.0; \ 39 | m[3][1] = 0.0; \ 40 | m[3][2] = 0.0; \ 41 | m[3][3] = 1.0; \ 42 | } 43 | 44 | /* ========================================================== */ 45 | 46 | #define ROTY_CS(m,cosine,sine) \ 47 | { \ 48 | /* rotation about the y-axis */ \ 49 | \ 50 | m[0][0] = (cosine); \ 51 | m[0][1] = 0.0; \ 52 | m[0][2] = -(sine); \ 53 | m[0][3] = 0.0; \ 54 | \ 55 | m[1][0] = 0.0; \ 56 | m[1][1] = 1.0; \ 57 | m[1][2] = 0.0; \ 58 | m[1][3] = 0.0; \ 59 | \ 60 | m[2][0] = (sine); \ 61 | m[2][1] = 0.0; \ 62 | m[2][2] = (cosine); \ 63 | m[2][3] = 0.0; \ 64 | \ 65 | m[3][0] = 0.0; \ 66 | m[3][1] = 0.0; \ 67 | m[3][2] = 0.0; \ 68 | m[3][3] = 1.0; \ 69 | } 70 | 71 | /* ========================================================== */ 72 | 73 | #define ROTZ_CS(m,cosine,sine) \ 74 | { \ 75 | /* rotation about the z-axis */ \ 76 | \ 77 | m[0][0] = (cosine); \ 78 | m[0][1] = (sine); \ 79 | m[0][2] = 0.0; \ 80 | m[0][3] = 0.0; \ 81 | \ 82 | m[1][0] = -(sine); \ 83 | m[1][1] = (cosine); \ 84 | m[1][2] = 0.0; \ 85 | m[1][3] = 0.0; \ 86 | \ 87 | m[2][0] = 0.0; \ 88 | m[2][1] = 0.0; \ 89 | m[2][2] = 1.0; \ 90 | m[2][3] = 0.0; \ 91 | \ 92 | m[3][0] = 0.0; \ 93 | m[3][1] = 0.0; \ 94 | m[3][2] = 0.0; \ 95 | m[3][3] = 1.0; \ 96 | } 97 | 98 | /* ========================================================== */ 99 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/segment.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * MODULE: segment.h 4 | * 5 | * FUNCTION: 6 | * Contains function prototypes for segment drawing subroutines. 7 | * These are used only internally, and are not to be exported to 8 | * the user. 9 | * 10 | * HISTORY: 11 | * Create by Linas Vepstas 12 | * Added tube.h include to define gleDouble, tad February 2002 13 | */ 14 | 15 | /* ============================================================ */ 16 | 17 | #include "tube.h" 18 | 19 | extern void draw_segment_plain (int ncp, /* number of contour points */ 20 | gleDouble front_contour[][3], 21 | gleDouble back_contour[][3], 22 | int inext, double len); 23 | 24 | extern void draw_segment_color (int ncp, /* number of contour points */ 25 | gleDouble front_contour[][3], 26 | gleDouble back_contour[][3], 27 | float color_last[3], 28 | float color_next[3], 29 | int inext, double len); 30 | 31 | extern void draw_segment_edge_n (int ncp, /* number of contour points */ 32 | gleDouble front_contour[][3], 33 | gleDouble back_contour[][3], 34 | double norm_cont[][3], 35 | int inext, double len); 36 | 37 | extern void draw_segment_c_and_edge_n (int ncp, 38 | gleDouble front_contour[][3], 39 | gleDouble back_contour[][3], 40 | double norm_cont[][3], 41 | float color_last[3], 42 | float color_next[3], 43 | int inext, double len); 44 | 45 | extern void draw_segment_facet_n (int ncp, 46 | gleDouble front_contour[][3], 47 | gleDouble back_contour[][3], 48 | double norm_cont[][3], 49 | int inext, double len); 50 | 51 | extern void draw_segment_c_and_facet_n (int ncp, 52 | gleDouble front_contour[][3], 53 | gleDouble back_contour[][3], 54 | double norm_cont[][3], 55 | float color_last[3], 56 | float color_next[3], 57 | int inext, double len); 58 | 59 | /* ============================================================ */ 60 | 61 | extern void draw_binorm_segment_edge_n (int ncp, 62 | double front_contour[][3], 63 | double back_contour[][3], 64 | double front_norm[][3], 65 | double back_norm[][3], 66 | int inext, double len); 67 | 68 | extern void draw_binorm_segment_c_and_edge_n (int ncp, 69 | double front_contour[][3], 70 | double back_contour[][3], 71 | double front_norm[][3], 72 | double back_norm[][3], 73 | float color_last[3], 74 | float color_next[3], 75 | int inext, double len); 76 | 77 | extern void draw_binorm_segment_facet_n (int ncp, 78 | double front_contour[][3], 79 | double back_contour[][3], 80 | double front_norm[][3], 81 | double back_norm[][3], 82 | int inext, double len); 83 | 84 | extern void draw_binorm_segment_c_and_facet_n (int ncp, 85 | double front_contour[][3], 86 | double back_contour[][3], 87 | double front_norm[][3], 88 | double back_norm[][3], 89 | float color_last[3], 90 | float color_next[3], 91 | int inext, double len); 92 | 93 | extern void draw_angle_style_back_cap (int ncp, /* number of contour points */ 94 | gleDouble bi[3], /* biscetor */ 95 | gleDouble point_array[][3]); /* polyline */ 96 | 97 | /* -------------------------- end of file -------------------------------- */ 98 | 99 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/tube.h: -------------------------------------------------------------------------------- 1 | /* 2 | * tube.h 3 | * 4 | * FUNCTION: 5 | * Tubing and Extrusion header file. 6 | * This file provides protypes and defines for the extrusion 7 | * and tubing primitives. 8 | * 9 | * HISTORY: 10 | * Linas Vepstas 1990, 1991 11 | */ 12 | 13 | #ifndef __TUBE_H__ 14 | #define __TUBE_H__ 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | /** 21 | GLE API revision history: 22 | 23 | GLE_API_VERSION is updated to reflect GLE API changes (interface 24 | changes, semantic changes, deletions, or additions). 25 | 26 | GLE_API_VERSION=228 GLUT 3.7 release of GLE. 27 | **/ 28 | #ifndef GLE_API_VERSION /* allow this to be overriden */ 29 | #define GLE_API_VERSION 228 30 | #endif 31 | 32 | /* some types */ 33 | #ifndef gleDouble 34 | #define gleDouble double 35 | #endif 36 | typedef gleDouble gleAffine[2][3]; 37 | 38 | /* ====================================================== */ 39 | 40 | /* defines for tubing join styles */ 41 | #define TUBE_JN_RAW 0x1 42 | #define TUBE_JN_ANGLE 0x2 43 | #define TUBE_JN_CUT 0x3 44 | #define TUBE_JN_ROUND 0x4 45 | #define TUBE_JN_MASK 0xf /* mask bits */ 46 | #define TUBE_JN_CAP 0x10 47 | 48 | /* determine how normal vectors are to be handled */ 49 | #define TUBE_NORM_FACET 0x100 50 | #define TUBE_NORM_EDGE 0x200 51 | #define TUBE_NORM_PATH_EDGE 0x400 /* for spiral, lathe, helix primitives */ 52 | #define TUBE_NORM_MASK 0xf00 /* mask bits */ 53 | 54 | /* closed or open countours */ 55 | #define TUBE_CONTOUR_CLOSED 0x1000 56 | 57 | #define GLE_TEXTURE_ENABLE 0x10000 58 | #define GLE_TEXTURE_STYLE_MASK 0xff 59 | #define GLE_TEXTURE_VERTEX_FLAT 1 60 | #define GLE_TEXTURE_NORMAL_FLAT 2 61 | #define GLE_TEXTURE_VERTEX_CYL 3 62 | #define GLE_TEXTURE_NORMAL_CYL 4 63 | #define GLE_TEXTURE_VERTEX_SPH 5 64 | #define GLE_TEXTURE_NORMAL_SPH 6 65 | #define GLE_TEXTURE_VERTEX_MODEL_FLAT 7 66 | #define GLE_TEXTURE_NORMAL_MODEL_FLAT 8 67 | #define GLE_TEXTURE_VERTEX_MODEL_CYL 9 68 | #define GLE_TEXTURE_NORMAL_MODEL_CYL 10 69 | #define GLE_TEXTURE_VERTEX_MODEL_SPH 11 70 | #define GLE_TEXTURE_NORMAL_MODEL_SPH 12 71 | 72 | #ifdef GL_32 73 | /* HACK for GL 3.2 -- needed because no way to tell if lighting is on. */ 74 | #define TUBE_LIGHTING_ON 0x80000000 75 | 76 | #define gleExtrusion extrusion 77 | #define gleSetJoinStyle setjoinstyle 78 | #define gleGetJoinStyle getjoinstyle 79 | #define glePolyCone polycone 80 | #define glePolyCylinder polycylinder 81 | #define gleSuperExtrusion super_extrusion 82 | #define gleTwistExtrusion twist_extrusion 83 | #define gleSpiral spiral 84 | #define gleLathe lathe 85 | #define gleHelicoid helicoid 86 | #define gleToroid toroid 87 | #define gleScrew screw 88 | 89 | #endif /* GL_32 */ 90 | 91 | extern int gleGetJoinStyle (void); 92 | extern void gleSetJoinStyle (int style); /* bitwise OR of flags */ 93 | extern int gleGetNumSlices(void); 94 | extern void gleSetNumSlices(int slices); 95 | 96 | /* draw polyclinder, specified as a polyline */ 97 | extern void glePolyCylinder (int npoints, /* num points in polyline */ 98 | gleDouble point_array[][3], /* polyline vertces */ 99 | float color_array[][3], /* colors at polyline verts */ 100 | gleDouble radius); /* radius of polycylinder */ 101 | 102 | /* draw polycone, specified as a polyline with radii */ 103 | extern void glePolyCone (int npoints, /* numpoints in poly-line */ 104 | gleDouble point_array[][3], /* polyline vertices */ 105 | float color_array[][3], /* colors at polyline verts */ 106 | gleDouble radius_array[]); /* cone radii at polyline verts */ 107 | 108 | /* extrude arbitrary 2D contour along arbitrary 3D path */ 109 | extern void gleExtrusion (int ncp, /* number of contour points */ 110 | gleDouble contour[][2], /* 2D contour */ 111 | gleDouble cont_normal[][2], /* 2D contour normals */ 112 | gleDouble up[3], /* up vector for contour */ 113 | int npoints, /* numpoints in poly-line */ 114 | gleDouble point_array[][3], /* polyline vertices */ 115 | float color_array[][3]); /* colors at polyline verts */ 116 | 117 | /* extrude 2D contour, specifying local rotations (twists) */ 118 | extern void gleTwistExtrusion (int ncp, /* number of contour points */ 119 | gleDouble contour[][2], /* 2D contour */ 120 | gleDouble cont_normal[][2], /* 2D contour normals */ 121 | gleDouble up[3], /* up vector for contour */ 122 | int npoints, /* numpoints in poly-line */ 123 | gleDouble point_array[][3], /* polyline vertices */ 124 | float color_array[][3], /* color at polyline verts */ 125 | gleDouble twist_array[]); /* countour twists (in degrees) */ 126 | 127 | /* extrude 2D contour, specifying local affine tranformations */ 128 | extern void gleSuperExtrusion (int ncp, /* number of contour points */ 129 | gleDouble contour[][2], /* 2D contour */ 130 | gleDouble cont_normal[][2], /* 2D contour normals */ 131 | gleDouble up[3], /* up vector for contour */ 132 | int npoints, /* numpoints in poly-line */ 133 | gleDouble point_array[][3], /* polyline vertices */ 134 | float color_array[][3], /* color at polyline verts */ 135 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 136 | 137 | /* spiral moves contour along helical path by parallel transport */ 138 | extern void gleSpiral (int ncp, /* number of contour points */ 139 | gleDouble contour[][2], /* 2D contour */ 140 | gleDouble cont_normal[][2], /* 2D contour normals */ 141 | gleDouble up[3], /* up vector for contour */ 142 | gleDouble startRadius, /* spiral starts in x-y plane */ 143 | gleDouble drdTheta, /* change in radius per revolution */ 144 | gleDouble startZ, /* starting z value */ 145 | gleDouble dzdTheta, /* change in Z per revolution */ 146 | gleDouble startXform[2][3], /* starting contour affine xform */ 147 | gleDouble dXformdTheta[2][3], /* tangent change xform per revoln */ 148 | gleDouble startTheta, /* start angle in x-y plane */ 149 | gleDouble sweepTheta); /* degrees to spiral around */ 150 | 151 | /* lathe moves contour along helical path by helically shearing 3D space */ 152 | extern void gleLathe (int ncp, /* number of contour points */ 153 | gleDouble contour[][2], /* 2D contour */ 154 | gleDouble cont_normal[][2], /* 2D contour normals */ 155 | gleDouble up[3], /* up vector for contour */ 156 | gleDouble startRadius, /* spiral starts in x-y plane */ 157 | gleDouble drdTheta, /* change in radius per revolution */ 158 | gleDouble startZ, /* starting z value */ 159 | gleDouble dzdTheta, /* change in Z per revolution */ 160 | gleDouble startXform[2][3], /* starting contour affine xform */ 161 | gleDouble dXformdTheta[2][3], /* tangent change xform per revoln */ 162 | gleDouble startTheta, /* start angle in x-y plane */ 163 | gleDouble sweepTheta); /* degrees to spiral around */ 164 | 165 | /* similar to spiral, except contour is a circle */ 166 | extern void gleHelicoid (gleDouble rToroid, /* circle contour (torus) radius */ 167 | gleDouble startRadius, /* spiral starts in x-y plane */ 168 | gleDouble drdTheta, /* change in radius per revolution */ 169 | gleDouble startZ, /* starting z value */ 170 | gleDouble dzdTheta, /* change in Z per revolution */ 171 | gleDouble startXform[2][3], /* starting contour affine xform */ 172 | gleDouble dXformdTheta[2][3], /* tangent change xform per revoln */ 173 | gleDouble startTheta, /* start angle in x-y plane */ 174 | gleDouble sweepTheta); /* degrees to spiral around */ 175 | 176 | /* similar to lathe, except contour is a circle */ 177 | extern void gleToroid (gleDouble rToroid, /* circle contour (torus) radius */ 178 | gleDouble startRadius, /* spiral starts in x-y plane */ 179 | gleDouble drdTheta, /* change in radius per revolution */ 180 | gleDouble startZ, /* starting z value */ 181 | gleDouble dzdTheta, /* change in Z per revolution */ 182 | gleDouble startXform[2][3], /* starting contour affine xform */ 183 | gleDouble dXformdTheta[2][3], /* tangent change xform per revoln */ 184 | gleDouble startTheta, /* start angle in x-y plane */ 185 | gleDouble sweepTheta); /* degrees to spiral around */ 186 | 187 | /* draws a screw shape */ 188 | extern void gleScrew (int ncp, /* number of contour points */ 189 | gleDouble contour[][2], /* 2D contour */ 190 | gleDouble cont_normal[][2], /* 2D contour normals */ 191 | gleDouble up[3], /* up vector for contour */ 192 | gleDouble startz, /* start of segment */ 193 | gleDouble endz, /* end of segment */ 194 | gleDouble twist); /* number of rotations */ 195 | 196 | extern void gleTextureMode (int mode); 197 | 198 | #ifdef __cplusplus 199 | } 200 | 201 | #endif 202 | #endif /* __TUBE_H__ */ 203 | /* ================== END OF FILE ======================= */ 204 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Headers/tube_gc.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * tube_gc.h 4 | * 5 | * FUNCTION: 6 | * This file allows for easy changes to changes in the way the extrusion 7 | * library handles state info (i.e. context). 8 | * 9 | * HISTORY: 10 | * Linas Vepstas --- February 1993 11 | * Added auto texture coord generation hacks, Linas April 1994 12 | * Added tube.h include to define gleDouble, tad February 2002 13 | */ 14 | 15 | #include "tube.h" 16 | #include "port.h" /* for gleVector */ 17 | 18 | typedef float gleColor[3]; 19 | typedef double gleTwoVec[2]; 20 | 21 | typedef struct { 22 | 23 | /* public methods */ 24 | void (*bgn_gen_texture) (int, double); 25 | void (*n3f_gen_texture) (float *); 26 | void (*n3d_gen_texture) (double *); 27 | void (*v3f_gen_texture) (float *, int, int); 28 | void (*v3d_gen_texture) (double *, int, int); 29 | void (*end_gen_texture) (void); 30 | 31 | /* protected members -- "general knowledge" stuff */ 32 | int join_style; 33 | 34 | /* arguments passed into extrusion code */ 35 | int ncp; /* number of contour points */ 36 | gleTwoVec *contour; /* 2D contour */ 37 | gleTwoVec *cont_normal; /* 2D contour normals */ 38 | gleDouble *up; /* up vector */ 39 | int npoints; /* number of points in polyline */ 40 | gleVector *point_array; /* path */ 41 | gleColor *color_array; /* path colors */ 42 | gleAffine *xform_array; /* contour xforms */ 43 | 44 | /* private members, used by texturing code */ 45 | int num_vert; 46 | int segment_number; 47 | double segment_length; 48 | double accum_seg_len; 49 | double prev_x; 50 | double prev_y; 51 | 52 | void (*save_bgn_gen_texture) (int, double); 53 | void (*save_n3f_gen_texture) (float *); 54 | void (*save_n3d_gen_texture) (double *); 55 | void (*save_v3f_gen_texture) (float *, int, int); 56 | void (*save_v3d_gen_texture) (double *, int, int); 57 | void (*save_end_gen_texture) (void); 58 | 59 | } gleGC; 60 | 61 | extern gleGC *_gle_gc; 62 | extern gleGC * gleCreateGC (void); 63 | 64 | #define INIT_GC() {if (!_gle_gc) _gle_gc = gleCreateGC(); } 65 | #define extrusion_join_style (_gle_gc->join_style) 66 | 67 | #define __TUBE_CLOSE_CONTOUR (extrusion_join_style & TUBE_CONTOUR_CLOSED) 68 | #define __TUBE_DRAW_CAP (extrusion_join_style & TUBE_JN_CAP) 69 | #define __TUBE_DRAW_FACET_NORMALS (extrusion_join_style & TUBE_NORM_FACET) 70 | #define __TUBE_DRAW_PATH_EDGE_NORMALS (extrusion_join_style & TUBE_NORM_PATH_EDGE) 71 | 72 | #define __TUBE_STYLE (extrusion_join_style & TUBE_JN_MASK) 73 | #define __TUBE_RAW_JOIN (extrusion_join_style & TUBE_JN_RAW) 74 | #define __TUBE_CUT_JOIN (extrusion_join_style & TUBE_JN_CUT) 75 | #define __TUBE_ANGLE_JOIN (extrusion_join_style & TUBE_JN_ANGLE) 76 | #define __TUBE_ROUND_JOIN (extrusion_join_style & TUBE_JN_ROUND) 77 | 78 | /* ======================= END OF FILE ========================== */ 79 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/Caution.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/Caution.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUT.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | { 4 | ACTIONS = {save = id; saveAs = id; }; 5 | CLASS = FirstResponder; 6 | LANGUAGE = ObjC; 7 | SUPERCLASS = NSObject; 8 | }, 9 | { 10 | ACTIONS = {timerAction = id; }; 11 | CLASS = GLUTApplication; 12 | LANGUAGE = ObjC; 13 | OUTLETS = { 14 | "_aboutMenuItem" = NSMenuItem; 15 | "_hideMenuItem" = NSMenuItem; 16 | "_quitMenuItem" = NSMenuItem; 17 | }; 18 | SUPERCLASS = NSApplication; 19 | }, 20 | { 21 | ACTIONS = {toggleWindow = id; }; 22 | CLASS = GLUTClipboardController; 23 | LANGUAGE = ObjC; 24 | OUTLETS = {"_infoText" = id; "_scrollView" = id; }; 25 | SUPERCLASS = NSWindowController; 26 | }, 27 | { 28 | ACTIONS = { 29 | assign = id; 30 | cancel = id; 31 | inputMenu = id; 32 | invertInput = id; 33 | mouseMatrix = id; 34 | mousePreset = id; 35 | ok = id; 36 | setDefault = id; 37 | }; 38 | CLASS = GLUTPreferencesController; 39 | LANGUAGE = ObjC; 40 | OUTLETS = { 41 | assignPrompt = NSTextField; 42 | assignText = NSTextField; 43 | inputMenu = NSPopUpButton; 44 | inverted = NSButton; 45 | mbConfigMenu = NSPopUpButton; 46 | mbConfigWarningIcon = NSImageView; 47 | mbConfigWarningText = NSTextField; 48 | middleButtonMatrix = NSMatrix; 49 | rightButtonMatrix = NSMatrix; 50 | }; 51 | SUPERCLASS = NSWindowController; 52 | } 53 | ); 54 | IBVersion = 1; 55 | } -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUT.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 4 104 410 240 0 0 1152 848 7 | IBEditorPositions 8 | 9 | 29 10 | 19 615 246 44 0 0 1152 848 11 | 12 | IBFramework Version 13 | 291.0 14 | IBGroupedObjects 15 | 16 | IBLastGroupID 17 | 1 18 | IBOpenObjects 19 | 20 | 29 21 | 22 | IBSystem Version 23 | 6I32 24 | 25 | 26 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUT.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUT.nib/objects.nib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTClipboard.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | { 5 | ACTIONS = {toggleWindow = id; }; 6 | CLASS = GLUTClipboardController; 7 | LANGUAGE = ObjC; 8 | OUTLETS = {_infoText = id; _scrollView = id; }; 9 | SUPERCLASS = NSWindowController; 10 | } 11 | ); 12 | IBVersion = 1; 13 | } -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTClipboard.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 63 221 356 240 0 0 1600 1178 7 | IBFramework Version 8 | 263.2 9 | IBSystem Version 10 | 5S41 11 | 12 | 13 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTClipboard.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTClipboard.nib/objects.nib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTPreferences.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | { 4 | ACTIONS = {save = id; saveAs = id; }; 5 | CLASS = FirstResponder; 6 | LANGUAGE = ObjC; 7 | SUPERCLASS = NSObject; 8 | }, 9 | { 10 | ACTIONS = { 11 | cancel = id; 12 | joyAssign = id; 13 | joyDevice = id; 14 | joyElement = id; 15 | joyInvert = id; 16 | launchDebugMode = id; 17 | launchGamemodeCaptureSingle = id; 18 | launchIconic = id; 19 | launchUseCurrWD = id; 20 | launchUseExtDesktop = id; 21 | launchUseMacOSCoords = id; 22 | mouseEanbleEmulation = id; 23 | mouseMiddleMenu = id; 24 | mouseRightMenu = id; 25 | ok = id; 26 | spaceAssign = id; 27 | spaceDevice = id; 28 | spaceElement = id; 29 | spaceInvert = id; 30 | }; 31 | CLASS = GLUTPreferencesController; 32 | LANGUAGE = ObjC; 33 | OUTLETS = { 34 | joyAssign = NSButton; 35 | joyAssignNote = NSTextField; 36 | joyAssignWarningIcon = NSImageView; 37 | joyDeviceMenu = NSPopUpButton; 38 | joyElement = NSTextField; 39 | joyInputMenu = NSPopUpButton; 40 | joyInverted = NSButton; 41 | launchDebugMode = NSButton; 42 | launchFadeTime = NSTextField; 43 | launchGamemodeCaptureSingle = NSButton; 44 | launchIconic = NSButton; 45 | launchInitHeight = NSTextField; 46 | launchInitWidth = NSTextField; 47 | launchInitX = NSTextField; 48 | launchInitY = NSTextField; 49 | launchMenuIdle = NSTextField; 50 | launchSyncToVBL = NSButton; 51 | launchUseCurrWD = NSButton; 52 | launchUseExtendedDesktop = NSButton; 53 | launchUseMacOSXCoords = NSButton; 54 | mouseAssignWarningIcon = NSImageView; 55 | mouseAssignWarningText = NSTextField; 56 | mouseDetected = NSTextField; 57 | mouseEmulation = NSButton; 58 | mouseMiddleConfigMenu = NSPopUpButton; 59 | mouseRightConfigMenu = NSPopUpButton; 60 | prefsTabView = NSTabView; 61 | spaceAssign = NSButton; 62 | spaceAssignNote = NSTextField; 63 | spaceAssignWarningIcon = NSImageView; 64 | spaceDeviceMenu = NSPopUpButton; 65 | spaceElement = NSTextField; 66 | spaceInputMenu = NSPopUpButton; 67 | spaceInverted = NSButton; 68 | }; 69 | SUPERCLASS = NSWindowController; 70 | } 71 | ); 72 | IBVersion = 1; 73 | } -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTPreferences.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 16 329 410 240 0 0 1920 1178 7 | IBFramework Version 8 | 439.0 9 | IBOpenObjects 10 | 11 | 205 12 | 13 | IBSystem Version 14 | 8G32 15 | 16 | 17 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTPreferences.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTPreferences.nib/objects.nib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTUI.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/GLUTUI.strings -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | GLUT 9 | CFBundleGetInfoString 10 | 3.4.0, Copyright (c) 2001-2008 Apple Inc., All Rights Reserved 11 | CFBundleIdentifier 12 | com.apple.glut 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.4.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | GLUT-3.4.0 23 | 24 | 25 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/blankCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/blankCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/bottomCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/bottomCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/bottomleftCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/bottomleftCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/bottomrightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/bottomrightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/crossCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/crossCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/cycleCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/cycleCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/destroyCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/destroyCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/fingerCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/fingerCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/helpCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/helpCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/leftCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/leftCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/leftRightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/leftRightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/rightArrowCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/rightArrowCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/rightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/rightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/sprayCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/sprayCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/topCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/topCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/topleftCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/topleftCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/toprightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/toprightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/upDownCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/upDownCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/waitCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/A/Resources/waitCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/GLUT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/GLUT -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/copy.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * 4 | * Written By Linas Vepstas November 1991 5 | */ 6 | 7 | 8 | #define COPY_THREE_WORDS(A,B) { \ 9 | struct three_words { int a, b, c, }; \ 10 | *(struct three_words *) (A) = *(struct three_words *) (B); \ 11 | } 12 | 13 | #define COPY_FOUR_WORDS(A,B) { \ 14 | struct four_words { int a, b, c, d, }; \ 15 | *(struct four_words *) (A) = *(struct four_words *) (B); \ 16 | } 17 | 18 | /* ============================================================= */ 19 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/extrude.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * extrude.h 4 | * 5 | * FUNCTION: 6 | * prototypes for privately used subroutines for the tubing library 7 | * 8 | * HISTORY: 9 | * Linas Vepstas 1991 10 | */ 11 | 12 | #include "port.h" /* for gleDouble */ 13 | 14 | #ifndef M_PI 15 | #define M_PI 3.14159265358979323846 16 | #endif 17 | 18 | /* ============================================================ */ 19 | /* 20 | * Provides choice of calling subroutine, vs. invoking macro. 21 | * Basically, inlines the source, or not. 22 | * Trades performance for executable size. 23 | */ 24 | 25 | #define INLINE_INTERSECT 26 | #ifdef INLINE_INTERSECT 27 | #define INNERSECT(sect,p,n,v1,v2) { INTERSECT(sect,p,n,v1,v2); } 28 | #else 29 | #define INNERSECT(sect,p,n,v1,v2) intersect(sect,p,n,v1,v2) 30 | #endif /* INLINE_INTERSECT */ 31 | 32 | /* ============================================================ */ 33 | /* The folowing defines give a kludgy way of accessing the qmesh primitive */ 34 | 35 | /* 36 | #define bgntmesh _emu_qmesh_bgnqmesh 37 | #define endtmesh _emu_qmesh_endqmesh 38 | #define c3f _emu_qmesh_c3f 39 | #define n3f _emu_qmesh_n3f 40 | #define v3f _emu_qmesh_v3f 41 | */ 42 | 43 | /* ============================================================ */ 44 | 45 | extern void up_sanity_check (gleDouble up[3], /* up vector for contour */ 46 | int npoints, /* numpoints in poly-line */ 47 | gleDouble point_array[][3]); /* polyline */ 48 | 49 | 50 | extern void draw_raw_style_end_cap (int ncp, /* number of contour points */ 51 | gleDouble contour[][2], /* 2D contour */ 52 | gleDouble zval, /* where to draw cap */ 53 | int frontwards); /* front or back cap */ 54 | 55 | extern void draw_round_style_cap_callback (int iloop, 56 | double cap[][3], 57 | float face_color[3], 58 | gleDouble cut_vector[3], 59 | gleDouble bisect_vector[3], 60 | double norms[][3], 61 | int frontwards); 62 | 63 | extern void draw_angle_style_front_cap (int ncp, 64 | gleDouble bi[3], 65 | gleDouble point_array[][3]); 66 | 67 | extern void extrusion_raw_join (int ncp, /* number of contour points */ 68 | gleDouble contour[][2], /* 2D contour */ 69 | gleDouble cont_normal[][2],/* 2D contour normal vecs */ 70 | gleDouble up[3], /* up vector for contour */ 71 | int npoints, /* numpoints in poly-line */ 72 | gleDouble point_array[][3], /* polyline */ 73 | float color_array[][3], /* color of polyline */ 74 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 75 | 76 | 77 | extern void extrusion_round_or_cut_join (int ncp, /* number of contour points */ 78 | gleDouble contour[][2], /* 2D contour */ 79 | gleDouble cont_normal[][2],/* 2D contour normal vecs */ 80 | gleDouble up[3], /* up vector for contour */ 81 | int npoints, /* numpoints in poly-line */ 82 | gleDouble point_array[][3], /* polyline */ 83 | float color_array[][3], /* color of polyline */ 84 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 85 | 86 | 87 | extern void extrusion_angle_join (int ncp, /* number of contour points */ 88 | gleDouble contour[][2], /* 2D contour */ 89 | gleDouble cont_normal[][2],/* 2D contour normal vecs */ 90 | gleDouble up[3], /* up vector for contour */ 91 | int npoints, /* numpoints in poly-line */ 92 | gleDouble point_array[][3], /* polyline */ 93 | float color_array[][3], /* color of polyline */ 94 | gleDouble xform_array[][2][3]); /* 2D contour xforms */ 95 | 96 | /* -------------------------- end of file -------------------------------- */ 97 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/glsmap.h: -------------------------------------------------------------------------------- 1 | #ifndef __glsmap_h__ 2 | #define __glsmap_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1998. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #if defined(_WIN32) 11 | 12 | /* Try hard to avoid including to avoid name space pollution, 13 | but Win32's needs APIENTRY and WINGDIAPI defined properly. */ 14 | # if 0 15 | # define WIN32_LEAN_AND_MEAN 16 | # include 17 | # else 18 | /* XXX This is from Win32's */ 19 | # ifndef APIENTRY 20 | # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) 21 | # define APIENTRY __stdcall 22 | # else 23 | # define APIENTRY 24 | # endif 25 | # endif 26 | # ifndef CALLBACK 27 | /* XXX This is from Win32's */ 28 | # if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS) 29 | # define CALLBACK __stdcall 30 | # else 31 | # define CALLBACK 32 | # endif 33 | # endif 34 | /* XXX This is from Win32's and */ 35 | # ifndef WINGDIAPI 36 | # define WINGDIAPI __declspec(dllimport) 37 | # endif 38 | /* XXX This is from Win32's */ 39 | # ifndef _WCHAR_T_DEFINED 40 | typedef unsigned short wchar_t; 41 | # define _WCHAR_T_DEFINED 42 | # endif 43 | # endif 44 | 45 | #pragma warning (disable:4244) /* Disable bogus conversion warnings. */ 46 | #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ 47 | 48 | #endif /* _WIN32 */ 49 | 50 | #include 51 | 52 | #ifdef __cplusplus 53 | extern "C" { 54 | #endif 55 | 56 | typedef enum { 57 | SMAP_CLEAR_SMAP_TEXTURE = 0x1, 58 | SMAP_GENERATE_VIEW_MIPMAPS = 0x2, 59 | SMAP_GENERATE_SMAP_MIPMAPS = 0x4, 60 | SMAP_GENERATE_MIPMAPS = 0x6 /* both of above */ 61 | } SphereMapFlags; 62 | 63 | /* Cube view enumerants. */ 64 | enum { 65 | SMAP_FRONT = 0, 66 | SMAP_TOP = 1, 67 | SMAP_BOTTOM = 2, 68 | SMAP_LEFT = 3, 69 | SMAP_RIGHT = 4, 70 | SMAP_BACK = 5 71 | }; 72 | 73 | typedef struct _SphereMap SphereMap; 74 | 75 | extern SphereMap *smapCreateSphereMap(SphereMap *shareSmap); 76 | extern void smapDestroySphereMap(SphereMap *smap); 77 | 78 | extern void smapConfigureSphereMapMesh(SphereMap *smap, int steps, int rings, int edgeExtend); 79 | 80 | extern void smapSetSphereMapTexObj(SphereMap *smap, GLuint texobj); 81 | extern void smapSetViewTexObj(SphereMap *smap, GLuint texobj); 82 | extern void smapSetViewTexObjs(SphereMap *smap, GLuint texobjs[6]); 83 | extern void smapGetSphereMapTexObj(SphereMap *smap, GLuint *texobj); 84 | extern void smapGetViewTexObj(SphereMap *smap, GLuint *texobj); 85 | extern void smapGetViewTexObjs(SphereMap *smap, GLuint texobjs[6]); 86 | 87 | extern void smapSetFlags(SphereMap *smap, SphereMapFlags flags); 88 | extern void smapGetFlags(SphereMap *smap, SphereMapFlags *flags); 89 | 90 | extern void smapSetViewOrigin(SphereMap *smap, GLint x, GLint y); 91 | extern void smapSetSphereMapOrigin(SphereMap *smap, GLint x, GLint y); 92 | extern void smapGetViewOrigin(SphereMap *smap, GLint *x, GLint *y); 93 | extern void smapGetSphereMapOrigin(SphereMap *smap, GLint *x, GLint *y); 94 | 95 | extern void smapSetEye(SphereMap *smap, GLfloat eyex, GLfloat eyey, GLfloat eyez); 96 | extern void smapSetEyeVector(SphereMap *smap, GLfloat *eye); 97 | extern void smapSetUp(SphereMap *smap, GLfloat upx, GLfloat upy, GLfloat upz); 98 | extern void smapSetUpVector(SphereMap *smap, GLfloat *up); 99 | extern void smapSetObject(SphereMap *smap, GLfloat objx, GLfloat objy, GLfloat objz); 100 | extern void smapSetObjectVector(SphereMap *smap, GLfloat *obj); 101 | extern void smapGetEye(SphereMap *smap, GLfloat *eyex, GLfloat *eyey, GLfloat *eyez); 102 | extern void smapGetEyeVector(SphereMap *smap, GLfloat *eye); 103 | extern void smapGetUp(SphereMap *smap, GLfloat *upx, GLfloat *upy, GLfloat *upz); 104 | extern void smapGetUpVector(SphereMap *smap, GLfloat *up); 105 | extern void smapGetObject(SphereMap *smap, GLfloat *objx, GLfloat *objy, GLfloat *objz); 106 | extern void smapGetObjectVector(SphereMap *smap, GLfloat *obj); 107 | 108 | extern void smapSetNearFar(SphereMap *smap, GLfloat viewNear, GLfloat viewFar); 109 | extern void smapGetNearFar(SphereMap *smap, GLfloat *viewNear, GLfloat *viewFar); 110 | 111 | extern void smapSetSphereMapTexDim(SphereMap *smap, GLsizei texdim); 112 | extern void smapSetViewTexDim(SphereMap *smap, GLsizei texdim); 113 | extern void smapGetSphereMapTexDim(SphereMap *smap, GLsizei *texdim); 114 | extern void smapGetViewTexDim(SphereMap *smap, GLsizei *texdim); 115 | 116 | extern void smapSetContextData(SphereMap *smap, void *context); 117 | extern void smapGetContextData(SphereMap *smap, void **context); 118 | 119 | extern void smapSetPositionLightsFunc(SphereMap *smap, void (*positionLights)(int view, void *context)); 120 | extern void smapSetDrawViewFunc(SphereMap *smap, void (*drawView)(int view, void *context)); 121 | extern void smapGetPositionLightsFunc(SphereMap *smap, void (**positionLights)(int view, void *context)); 122 | extern void smapGetDrawViewFunc(SphereMap *smap, void (**drawView)(int view, void *context)); 123 | 124 | extern void smapGenViewTex(SphereMap *smap, int view); 125 | extern void smapGenViewTexs(SphereMap *smap); 126 | extern void smapGenSphereMapFromViewTexs(SphereMap *smap); 127 | extern void smapGenSphereMap(SphereMap *smap); 128 | extern void smapGenSphereMapWithOneViewTex(SphereMap *smap); 129 | 130 | extern int smapRvecToSt(float rvec[3], float st[2]); 131 | extern void smapStToRvec(float *st, float *rvec); 132 | 133 | #ifdef __cplusplus 134 | } 135 | 136 | #endif 137 | #endif /* __glsmap_h__ */ 138 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/glsmapint.h: -------------------------------------------------------------------------------- 1 | #ifndef __glsmapint_h__ 2 | #define __glsmapint_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1998. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #include "glsmap.h" 11 | 12 | enum { X = 0, Y = 1, Z = 2 }; 13 | 14 | #define INITFACE(mesh) \ 15 | int steps = mesh->steps; \ 16 | int sqsteps = mesh->steps * mesh->steps 17 | 18 | #define FACE(side,y,x) \ 19 | mesh->face[(side)*sqsteps + (y)*steps + (x)] 20 | 21 | #define FACExy(side,i,j) \ 22 | (&FACE(side,i,j).x) 23 | 24 | #define FACEst(side,i,j) \ 25 | (&FACE(side,i,j).s) 26 | 27 | #define INITBACK(mesh) \ 28 | int allrings = mesh->rings + mesh->edgeExtend; \ 29 | int ringedspokes = allrings * mesh->steps 30 | 31 | #define BACK(edge,ring,spoke) \ 32 | mesh->back[(edge)*ringedspokes + (ring)*mesh->steps + (spoke)] 33 | 34 | #define BACKxy(edge,ring,spoke) \ 35 | (&BACK(edge,ring,spoke).x) 36 | 37 | #define BACKst(edge,ring,spoke) \ 38 | (&BACK(edge,ring,spoke).s) 39 | 40 | typedef struct _STXY { 41 | GLfloat s, t; 42 | GLfloat x, y; 43 | } STXY; 44 | 45 | typedef struct _SphereMapMesh { 46 | 47 | int refcnt; 48 | 49 | int steps; 50 | int rings; 51 | int edgeExtend; 52 | 53 | STXY *face; 54 | STXY *back; 55 | 56 | } SphereMapMesh; 57 | 58 | struct _SphereMap { 59 | 60 | /* Shared sphere map mesh vertex data. */ 61 | SphereMapMesh *mesh; 62 | 63 | /* Texture object ids. */ 64 | GLuint smapTexObj; 65 | GLuint viewTexObjs[6]; 66 | GLuint viewTexObj; 67 | 68 | /* Flags */ 69 | SphereMapFlags flags; 70 | 71 | /* Texture dimensions must be a power of two. */ 72 | int viewTexDim; /* view texture dimension */ 73 | int smapTexDim; /* sphere map texture dimension */ 74 | 75 | /* Viewport origins for view and sphere map rendering. */ 76 | int viewOrigin[2]; 77 | int smapOrigin[2]; 78 | 79 | /* Viewing vectors. */ 80 | GLfloat eye[3]; 81 | GLfloat up[3]; 82 | GLfloat obj[3]; 83 | 84 | /* Projection parameters. */ 85 | GLfloat viewNear; 86 | GLfloat viewFar; 87 | 88 | /* Rendering callbacks. */ 89 | void (*positionLights)(int view, void *context); 90 | void (*drawView)(int view, void *context); 91 | 92 | /* Application specified callback data. */ 93 | void *context; 94 | 95 | }; 96 | 97 | /* Library internal routines. */ 98 | extern void __smapDrawSphereMapMeshSide(SphereMapMesh *mesh, int side); 99 | extern void __smapDrawSphereMapMeshBack(SphereMapMesh *mesh); 100 | extern void __smapValidateSphereMapMesh(SphereMapMesh *mesh); 101 | 102 | #endif /* __glsmapint_h__ */ 103 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/glutbitmap.h: -------------------------------------------------------------------------------- 1 | #ifndef __glutbitmap_h__ 2 | #define __glutbitmap_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1994. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #include "glut.h" 11 | 12 | typedef struct { 13 | const GLsizei width; 14 | const GLsizei height; 15 | const GLfloat xorig; 16 | const GLfloat yorig; 17 | const GLfloat advance; 18 | const GLubyte *bitmap; 19 | } BitmapCharRec, *BitmapCharPtr; 20 | 21 | typedef struct { 22 | const char *name; 23 | const int num_chars; 24 | const int first; 25 | const BitmapCharRec * const *ch; 26 | } BitmapFontRec, *BitmapFontPtr; 27 | 28 | typedef void *GLUTbitmapFont; 29 | 30 | #endif /* __glutbitmap_h__ */ 31 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/glutf90.h: -------------------------------------------------------------------------------- 1 | #ifndef __glutf90_h__ 2 | #define __glutf90_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard & Willam F. Mitchell, 1998. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | /* This header provides the binding interface for William Mitchell's 11 | f90gl Fortran 90 GLUT binding. Other GLUT language bindings 12 | can and should use this interace. */ 13 | 14 | /* I appreciate the guidance from William Mitchell 15 | (mitchell@cam.nist.gov) in developing this friend interface 16 | for use by the f90gl package. See ../../README.fortran */ 17 | 18 | #include 19 | 20 | #ifndef GLUTCALLBACK 21 | #define GLUTCALLBACK 22 | #endif 23 | #ifndef APIENTRY 24 | #define APIENTRY 25 | #endif 26 | 27 | /* Which callback enumerants for the __glutSetFCB/__glutGetFCB routines. */ 28 | /* NOTE These values are part of a binary interface for the f90gl Fortran 29 | 90 binding and so must NOT changes (additions are allowed). */ 30 | 31 | /* GLUTwindow callbacks. */ 32 | #define GLUT_FCB_DISPLAY 0 /* GLUTdisplayFCB */ 33 | #define GLUT_FCB_RESHAPE 1 /* GLUTreshapeFCB */ 34 | #define GLUT_FCB_MOUSE 2 /* GLUTmouseFCB */ 35 | #define GLUT_FCB_MOTION 3 /* GLUTmotionFCB */ 36 | #define GLUT_FCB_PASSIVE 4 /* GLUTpassiveFCB */ 37 | #define GLUT_FCB_ENTRY 5 /* GLUTentryFCB */ 38 | #define GLUT_FCB_KEYBOARD 6 /* GLUTkeyboardFCB */ 39 | #define GLUT_FCB_KEYBOARD_UP 7 /* GLUTkeyboardFCB */ 40 | #define GLUT_FCB_WINDOW_STATUS 8 /* GLUTwindowStatusFCB */ 41 | #define GLUT_FCB_VISIBILITY 9 /* GLUTvisibilityFCB */ 42 | #define GLUT_FCB_SPECIAL 10 /* GLUTspecialFCB */ 43 | #define GLUT_FCB_SPECIAL_UP 11 /* GLUTspecialFCB */ 44 | #define GLUT_FCB_BUTTON_BOX 12 /* GLUTbuttonBoxFCB */ 45 | #define GLUT_FCB_DIALS 13 /* GLUTdialsFCB */ 46 | #define GLUT_FCB_SPACE_MOTION 14 /* GLUTspaceMotionFCB */ 47 | #define GLUT_FCB_SPACE_ROTATE 15 /* GLUTspaceRotateFCB */ 48 | #define GLUT_FCB_SPACE_BUTTON 16 /* GLUTspaceButtonFCB */ 49 | #define GLUT_FCB_TABLET_MOTION 17 /* GLUTtabletMotionFCB */ 50 | #define GLUT_FCB_TABLET_BUTTON 18 /* GLUTtabletButtonFCB */ 51 | #define GLUT_FCB_JOYSTICK 19 /* GLUTjoystickFCB */ 52 | #define GLUT_FCB_WMCLOSE 20 /* GLUTwmcloseFCB */ 53 | /* Non-GLUTwindow callbacks. */ 54 | #define GLUT_FCB_OVERLAY_DISPLAY 100 /* GLUTdisplayFCB */ 55 | #define GLUT_FCB_SELECT 101 /* GLUTselectFCB */ 56 | #define GLUT_FCB_TIMER 102 /* GLUTtimerFCB */ 57 | 58 | /* GLUT Fortran callback function types. */ 59 | typedef void (GLUTCALLBACK *GLUTdisplayFCB) (void); 60 | typedef void (GLUTCALLBACK *GLUTwmcloseFCB) (void); 61 | typedef void (GLUTCALLBACK *GLUTreshapeFCB) (int *, int *); 62 | /* NOTE the pressed key is int, not unsigned char for Fortran! */ 63 | typedef void (GLUTCALLBACK *GLUTkeyboardFCB) (int *, int *, int *); 64 | typedef void (GLUTCALLBACK *GLUTmouseFCB) (int *, int *, int *, int *); 65 | typedef void (GLUTCALLBACK *GLUTmotionFCB) (int *, int *); 66 | typedef void (GLUTCALLBACK *GLUTpassiveFCB) (int *, int *); 67 | typedef void (GLUTCALLBACK *GLUTentryFCB) (int *); 68 | typedef void (GLUTCALLBACK *GLUTwindowStatusFCB) (int *); 69 | typedef void (GLUTCALLBACK *GLUTvisibilityFCB) (int *); 70 | typedef void (GLUTCALLBACK *GLUTspecialFCB) (int *, int *, int *); 71 | typedef void (GLUTCALLBACK *GLUTbuttonBoxFCB) (int *, int *); 72 | typedef void (GLUTCALLBACK *GLUTdialsFCB) (int *, int *); 73 | typedef void (GLUTCALLBACK *GLUTspaceMotionFCB) (int *, int *, int *); 74 | typedef void (GLUTCALLBACK *GLUTspaceRotateFCB) (int *, int *, int *); 75 | typedef void (GLUTCALLBACK *GLUTspaceButtonFCB) (int *, int *); 76 | typedef void (GLUTCALLBACK *GLUTtabletMotionFCB) (int *, int *); 77 | typedef void (GLUTCALLBACK *GLUTtabletButtonFCB) (int *, int *, int *, int *); 78 | typedef void (GLUTCALLBACK *GLUTjoystickFCB) (unsigned int *buttonMask, int *x, int *y, int *z); 79 | 80 | typedef void (GLUTCALLBACK *GLUTselectFCB) (int *); 81 | typedef void (GLUTCALLBACK *GLUTtimerFCB) (int *); 82 | typedef void (GLUTCALLBACK *GLUTmenuStateFCB) (int *); /* DEPRICATED. */ 83 | typedef void (GLUTCALLBACK *GLUTmenuStatusFCB) (int *, int *, int *); 84 | typedef void (GLUTCALLBACK *GLUTidleFCB) (void); 85 | 86 | /* Functions that set and return Fortran callback functions. */ 87 | extern void* APIENTRY __glutGetFCB(int which); 88 | extern void APIENTRY __glutSetFCB(int which, void *func); 89 | 90 | #endif /* __glutf90_h__ */ 91 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/glutstroke.h: -------------------------------------------------------------------------------- 1 | #ifndef __glutstroke_h__ 2 | #define __glutstroke_h__ 3 | 4 | /* Copyright (c) Mark J. Kilgard, 1994. */ 5 | 6 | /* This program is freely distributable without licensing fees 7 | and is provided without guarantee or warrantee expressed or 8 | implied. This program is -not- in the public domain. */ 9 | 10 | #if defined(_WIN32) 11 | #pragma warning (disable:4244) /* disable bogus conversion warnings */ 12 | #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ 13 | #endif 14 | 15 | typedef struct { 16 | float x; 17 | float y; 18 | } CoordRec, *CoordPtr; 19 | 20 | typedef struct { 21 | int num_coords; 22 | const CoordRec *coord; 23 | } StrokeRec, *StrokePtr; 24 | 25 | typedef struct { 26 | int num_strokes; 27 | const StrokeRec *stroke; 28 | float center; 29 | float right; 30 | } StrokeCharRec, *StrokeCharPtr; 31 | 32 | typedef struct { 33 | const char *name; 34 | int num_chars; 35 | const StrokeCharRec *ch; 36 | float top; 37 | float bottom; 38 | } StrokeFontRec, *StrokeFontPtr; 39 | 40 | typedef void *GLUTstrokeFont; 41 | 42 | #endif /* __glutstroke_h__ */ 43 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/gutil.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * gutil.h 4 | * 5 | * FUNCTION: 6 | * Provide utilities that allow rotation to occur 7 | * around any axis. 8 | * 9 | * HISTORY: 10 | * created by Linas Vepstas 1990 11 | * added single & double precision, June 1991, Linas Vepstas 12 | */ 13 | 14 | #ifndef __GUTIL_H__ 15 | #define __GUTIL_H__ 16 | 17 | #ifdef __GUTIL_DOUBLE 18 | #define gutDouble double 19 | #else 20 | #define gutDouble float 21 | #endif 22 | 23 | 24 | #ifdef _NO_PROTO /* NO ANSI C PROTOTYPING */ 25 | 26 | /* Rotation Utilities */ 27 | extern void rot_axis_f (); 28 | extern void rot_about_axis_f (); 29 | extern void rot_omega_f (); 30 | extern void urot_axis_f (); 31 | extern void urot_about_axis_f (); 32 | extern void urot_omega_f (); 33 | 34 | /* double-precision versions */ 35 | extern void rot_axis_d (); 36 | extern void rot_about_axis_d (); 37 | extern void rot_omega_d (); 38 | extern void urot_axis_d (); 39 | extern void urot_about_axis_d (); 40 | extern void urot_omega_d (); 41 | 42 | /* viewpoint functions */ 43 | extern void uview_direction_d (); 44 | extern void uview_direction_f (); 45 | extern void uviewpoint_d (); 46 | extern void uviewpoint_f (); 47 | 48 | #else /* _NO_PROTO */ /* ANSI C PROTOTYPING */ 49 | 50 | /* Rotation Utilities */ 51 | extern void rot_axis_f (float omega, float axis[3]); 52 | extern void rot_about_axis_f (float angle, float axis[3]); 53 | extern void rot_omega_f (float axis[3]); 54 | extern void urot_axis_f (float m[4][4], float omega, float axis[3]); 55 | extern void urot_about_axis_f (float m[4][4], float angle, float axis[3]); 56 | extern void urot_omega_f (float m[4][4], float axis[3]); 57 | 58 | /* double-precision versions */ 59 | extern void rot_axis_d (double omega, double axis[3]); 60 | extern void rot_about_axis_d (double angle, double axis[3]); 61 | extern void rot_omega_d (double axis[3]); 62 | extern void urot_axis_d (double m[4][4], double omega, double axis[3]); 63 | extern void urot_about_axis_d (double m[4][4], double angle, double axis[3]); 64 | extern void urot_omega_d (double m[4][4], double axis[3]); 65 | 66 | /* viewpoint functions */ 67 | extern void uview_direction_d (double m[4][4], /* returned */ 68 | double v21[3], /* input */ 69 | double up[3]); /* input */ 70 | 71 | extern void uview_direction_f (float m[4][4], /* returned */ 72 | float v21[3], /* input */ 73 | float up[3]); /* input */ 74 | 75 | extern void uviewpoint_d (double m[4][4], /* returned */ 76 | double v1[3], /* input */ 77 | double v2[3], /* input */ 78 | double up[3]); /* input */ 79 | 80 | extern void uviewpoint_f (float m[4][4], /* returned */ 81 | float v1[3], /* input */ 82 | float v2[3], /* input */ 83 | float up[3]); /* input */ 84 | 85 | #endif /* _NO_PROTO */ 86 | 87 | #endif /* _GUTIL_H__ */ 88 | 89 | /* ------------------- end of file ---------------------- */ 90 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/port.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * port.h 4 | * 5 | * FUNCTION: 6 | * This file contains defines for porting the tubing toolkit from GL to 7 | * OpenGL to some callback scheme. 8 | * 9 | * HISTORY: 10 | * Created by Linas Vepstas -- February 1993 11 | * Added auto texture coord generation hacks, Linas April 1994 12 | */ 13 | 14 | #ifndef __GLE_PORT_H__ 15 | #define __GLE_PORT_H__ 16 | 17 | 18 | #ifndef TRUE 19 | #define TRUE 1 20 | #endif 21 | 22 | #ifndef FALSE 23 | #define FALSE 0 24 | #endif 25 | 26 | #ifndef M_PI 27 | #define M_PI 3.14159265358979323846 28 | #endif 29 | 30 | /* ====================================================== */ 31 | /* Some compilers can't handle multiply-subscripted array's */ 32 | 33 | #ifdef FUNKY_C 34 | typedef gleDouble gleVector; 35 | #define AVAL(arr,n,i,j) arr(6*n+3*i+j) 36 | #define VVAL(arr,n,i) arr(3*n+i) 37 | 38 | #else /* FUNKY_C */ 39 | typedef double gleVector[3]; 40 | typedef double glePoint[2]; 41 | #define AVAL(arr,n,i,j) arr[n][i][j] 42 | #define VVAL(arr,n,i) arr[n][i]; 43 | 44 | #endif /* FUNKY_C */ 45 | 46 | /* ====================================================== */ 47 | /* These are used to convey info about topography to the 48 | * texture mapping routines */ 49 | 50 | #define FRONT 1 51 | #define BACK 2 52 | #define FRONT_CAP 3 53 | #define BACK_CAP 4 54 | #define FILLET 5 55 | 56 | /* ====================================================== */ 57 | 58 | #define __GLE_DOUBLE 59 | 60 | /* ====================================================== */ 61 | 62 | #ifdef __GLE_DOUBLE 63 | #ifndef gleDouble 64 | #define gleDouble double 65 | #endif 66 | #define urot_axis(a,b,c) urot_axis_d(a,b,c) 67 | #define uview_direction(a,b,c) uview_direction_d(a,b,c) 68 | #define uviewpoint(a,b,c,d) uviewpoint_d(a,b,c,d) 69 | #define MULTMATRIX(m) MULTMATRIX_D(m) 70 | #define LOADMATRIX(m) LOADMATRIX_D(m) 71 | #define V3F(x,j,id) V3F_D(x,j,id) 72 | #define N3F(x) N3F_D(x) 73 | #define T2F(x,y) T2F_D(x,y) 74 | #else 75 | #define gleDouble float 76 | #define urot_axis(a,b,c) urot_axis_f(a,b,c) 77 | #define uview_direction(a,b,c) uview_direction_f(a,b,c) 78 | #define uviewpoint(a,b,c,d) uviewpoint_f(a,b,c,d) 79 | #define MULTMATRIX(m) MULTMATRIX_F(m) 80 | #define LOADMATRIX(m) LOADMATRIX_F(m) 81 | #define V3F(x,j,id) V3F_F(x,j,id) 82 | #define N3F(x) N3F_F(x) 83 | #define T2F(x,y) T2F_F(x,y) 84 | #endif 85 | 86 | /* ====================================================== */ 87 | 88 | #if (defined DEBUG_GL_32 || DEBUG_OPENGL_10) 89 | #undef GL_32 90 | #undef OPENGL_10 91 | 92 | #define BGNTMESH(i,len) printf ("bgntmesh() \n"); 93 | #define ENDTMESH() printf ("endtmesh() \n"); 94 | #define BGNPOLYGON() printf ("bgnpolygon() \n"); 95 | #define ENDPOLYGON() printf ("endpolygon() \n"); 96 | #define V3F_F(x,j,id) printf ("v3f(x) %f %f %f \n", x[0], x[1], x[2]); 97 | #define V3F_D(x,j,id) printf ("v3d(x) %f %f %f \n", x[0], x[1], x[2]); 98 | #define N3F_F(x) printf ("n3f(x) %f %f %f \n", x[0], x[1], x[2]); 99 | #define N3F_D(x) printf ("n3d(x) %f %f %f \n", x[0], x[1], x[2]); 100 | #define C3F(x) printf ("c3f(x) %f %f %f \n", x[0], x[1], x[2]); 101 | 102 | #define POPMATRIX() printf ("popmatrix () \n"); 103 | #define PUSHMATRIX() printf ("pushmatrix() \n"); 104 | #define MULTMATRIX_F(x) MULTMATRIX_D(x) 105 | #define LOADMATRIX_F(x) LOADMATRIX_D(x) 106 | 107 | 108 | #define LOADMATRIX_D(x) { \ 109 | int i, j; \ 110 | printf ("loadmatrix (x) \n"); \ 111 | for (i=0; i<4; i++) { \ 112 | for (j=0; j<4; j++) { \ 113 | printf ( "%f ", x[i][j]); \ 114 | } \ 115 | printf (" \n"); \ 116 | } \ 117 | } 118 | 119 | #define MULTMATRIX_D(x) { \ 120 | int i, j; \ 121 | printf ("multmatrix (x) \n"); \ 122 | for (i=0; i<4; i++) { \ 123 | for (j=0; j<4; j++) { \ 124 | printf ( "%f ", x[i][j]); \ 125 | } \ 126 | printf (" \n"); \ 127 | } \ 128 | } 129 | 130 | #define __IS_LIGHTING_ON (1) 131 | 132 | #endif 133 | 134 | /* ====================================================== */ 135 | 136 | #ifdef GL_32 137 | 138 | #include 139 | 140 | #define BGNTMESH(i,len) bgntmesh() 141 | #define ENDTMESH() endtmesh() 142 | #define BGNPOLYGON() bgnpolygon() 143 | #define ENDPOLYGON() endpolygon() 144 | #define V3F_F(x,j,id) v3f(x) 145 | #define V3F_D(x,j,id) v3d(x) 146 | #define N3F_F(x) n3f(x) 147 | #define T2F_F(x,y) 148 | #define T2F_D(x,y) 149 | #define C3F(x) c3f(x) 150 | 151 | #define POPMATRIX() popmatrix () 152 | #define PUSHMATRIX() pushmatrix() 153 | #define MULTMATRIX_F(x) multmatrix (x) 154 | #define LOADMATRIX_F(x) loadmatrix (x) 155 | 156 | #define N3F_D(x) { \ 157 | float nnn[3]; \ 158 | nnn[0] = (float) x[0]; \ 159 | nnn[1] = (float) x[1]; \ 160 | nnn[2] = (float) x[2]; \ 161 | n3f (nnn); \ 162 | } 163 | 164 | #define LOADMATRIX_D(x) { \ 165 | int i, j; \ 166 | float mmm[4][4]; \ 167 | for (i=0; i<4; i++) { \ 168 | for (j=0; j<4; j++) { \ 169 | mmm[i][j] = (float) x[i][j]; \ 170 | } \ 171 | } \ 172 | loadmatrix(mmm); \ 173 | } 174 | 175 | #define MULTMATRIX_D(x) { \ 176 | int i, j; \ 177 | float mmm[4][4]; \ 178 | for (i=0; i<4; i++) { \ 179 | for (j=0; j<4; j++) { \ 180 | mmm[i][j] = (float) x[i][j]; \ 181 | } \ 182 | } \ 183 | multmatrix(mmm); \ 184 | } 185 | 186 | /* #define __IS_LIGHTING_ON (MSINGLE == getmmode()) */ 187 | #define __IS_LIGHTING_ON (extrusion_join_style & TUBE_LIGHTING_ON) 188 | 189 | #endif /* GL_32 */ 190 | 191 | /* ====================================================== */ 192 | #ifdef OPENGL_10 193 | 194 | #if defined(_WIN32) 195 | #include 196 | #pragma warning (disable:4244) /* disable bogus conversion warnings */ 197 | #endif 198 | #include 199 | #include 200 | 201 | /* 202 | #define N3F_F(x) { \ 203 | float nnn[3]; \ 204 | nnn[0] = - (float) x[0]; \ 205 | nnn[1] = - (float) x[1]; \ 206 | nnn[2] = - (float) x[2]; \ 207 | glNormal3fv (nnn); \ 208 | } 209 | #define N3F_D(x) { \ 210 | float nnn[3]; \ 211 | nnn[0] = - (float) x[0]; \ 212 | nnn[1] = - (float) x[1]; \ 213 | nnn[2] = - (float) x[2]; \ 214 | glNormal3fv (nnn); \ 215 | } 216 | */ 217 | 218 | #define C3F(x) glColor3fv(x) 219 | #define T2F_F(x,y) glTexCoord2f(x,y) 220 | #define T2F_D(x,y) glTexCoord2d(x,y) 221 | 222 | #define POPMATRIX() glPopMatrix() 223 | #define PUSHMATRIX() glPushMatrix() 224 | 225 | #define MULTMATRIX_F(x) glMultMatrixf ((const GLfloat *)x) 226 | #define LOADMATRIX_F(x) glLoadMatrixf ((const GLfloat *)x) 227 | 228 | #define MULTMATRIX_D(x) glMultMatrixd ((const GLdouble *)x) 229 | #define LOADMATRIX_D(x) glLoadMatrixd ((const GLdouble *)x) 230 | 231 | #define __IS_LIGHTING_ON (glIsEnabled(GL_LIGHTING)) 232 | 233 | /* ====================================================== */ 234 | #ifdef AUTO_TEXTURE 235 | 236 | #define BGNTMESH(i,len) { \ 237 | if(_gle_gc -> bgn_gen_texture) (*(_gle_gc -> bgn_gen_texture))(i,len);\ 238 | glBegin (GL_TRIANGLE_STRIP); \ 239 | } 240 | 241 | #define BGNPOLYGON() { \ 242 | if(_gle_gc -> bgn_gen_texture) (*(_gle_gc -> bgn_gen_texture))();\ 243 | glBegin (GL_POLYGON); \ 244 | } 245 | 246 | #define N3F_F(x) { \ 247 | if(_gle_gc -> n3f_gen_texture) (*(_gle_gc -> n3f_gen_texture))(x); \ 248 | glNormal3fv(x); \ 249 | } 250 | 251 | #define N3F_D(x) { \ 252 | if(_gle_gc -> n3d_gen_texture) (*(_gle_gc -> n3d_gen_texture))(x); \ 253 | glNormal3dv(x); \ 254 | } 255 | 256 | #define V3F_F(x,j,id) { \ 257 | if(_gle_gc -> v3f_gen_texture) (*(_gle_gc -> v3f_gen_texture))(x,j,id);\ 258 | glVertex3fv(x); \ 259 | } 260 | 261 | #define V3F_D(x,j,id) { \ 262 | if(_gle_gc -> v3d_gen_texture) (*(_gle_gc -> v3d_gen_texture))(x,j,id); \ 263 | glVertex3dv(x); \ 264 | } 265 | 266 | #define ENDTMESH() { \ 267 | if(_gle_gc -> end_gen_texture) (*(_gle_gc -> end_gen_texture))(); \ 268 | glEnd (); \ 269 | } 270 | 271 | #define ENDPOLYGON() { \ 272 | if(_gle_gc -> end_gen_texture) (*(_gle_gc -> end_gen_texture))(); \ 273 | glEnd (); \ 274 | } 275 | 276 | /* ====================================================== */ 277 | #else /* AUTO_TEXTURE */ 278 | 279 | #define BGNTMESH(i,len) glBegin (GL_TRIANGLE_STRIP); 280 | #define BGNPOLYGON() glBegin (GL_POLYGON); 281 | 282 | #define N3F_F(x) glNormal3fv(x) 283 | #define N3F_D(x) glNormal3dv(x) 284 | #define V3F_F(x,j,id) glVertex3fv(x); 285 | #define V3F_D(x,j,id) glVertex3dv(x); 286 | 287 | #define ENDTMESH() glEnd () 288 | #define ENDPOLYGON() glEnd() 289 | 290 | #endif /* AUTO_TEXTURE */ 291 | 292 | #endif /* OPENGL_10 */ 293 | 294 | /* ====================================================== */ 295 | 296 | 297 | #endif /* __GLE_PORT_H__ */ 298 | /* ================== END OF FILE ======================= */ 299 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/rot.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * rot.h 4 | * 5 | * FUNCTION: 6 | * rotation matrix utilities 7 | * 8 | * HISTORY: 9 | * Linas Vepstas Aug 1990 10 | */ 11 | 12 | /* ========================================================== */ 13 | /* 14 | * The MACROS below generate and return more traditional rotation 15 | * matrices -- matrices for rotations about principal axes. 16 | */ 17 | /* ========================================================== */ 18 | 19 | #define ROTX_CS(m,cosine,sine) \ 20 | { \ 21 | /* rotation about the x-axis */ \ 22 | \ 23 | m[0][0] = 1.0; \ 24 | m[0][1] = 0.0; \ 25 | m[0][2] = 0.0; \ 26 | m[0][3] = 0.0; \ 27 | \ 28 | m[1][0] = 0.0; \ 29 | m[1][1] = (cosine); \ 30 | m[1][2] = (sine); \ 31 | m[1][3] = 0.0; \ 32 | \ 33 | m[2][0] = 0.0; \ 34 | m[2][1] = -(sine); \ 35 | m[2][2] = (cosine); \ 36 | m[2][3] = 0.0; \ 37 | \ 38 | m[3][0] = 0.0; \ 39 | m[3][1] = 0.0; \ 40 | m[3][2] = 0.0; \ 41 | m[3][3] = 1.0; \ 42 | } 43 | 44 | /* ========================================================== */ 45 | 46 | #define ROTY_CS(m,cosine,sine) \ 47 | { \ 48 | /* rotation about the y-axis */ \ 49 | \ 50 | m[0][0] = (cosine); \ 51 | m[0][1] = 0.0; \ 52 | m[0][2] = -(sine); \ 53 | m[0][3] = 0.0; \ 54 | \ 55 | m[1][0] = 0.0; \ 56 | m[1][1] = 1.0; \ 57 | m[1][2] = 0.0; \ 58 | m[1][3] = 0.0; \ 59 | \ 60 | m[2][0] = (sine); \ 61 | m[2][1] = 0.0; \ 62 | m[2][2] = (cosine); \ 63 | m[2][3] = 0.0; \ 64 | \ 65 | m[3][0] = 0.0; \ 66 | m[3][1] = 0.0; \ 67 | m[3][2] = 0.0; \ 68 | m[3][3] = 1.0; \ 69 | } 70 | 71 | /* ========================================================== */ 72 | 73 | #define ROTZ_CS(m,cosine,sine) \ 74 | { \ 75 | /* rotation about the z-axis */ \ 76 | \ 77 | m[0][0] = (cosine); \ 78 | m[0][1] = (sine); \ 79 | m[0][2] = 0.0; \ 80 | m[0][3] = 0.0; \ 81 | \ 82 | m[1][0] = -(sine); \ 83 | m[1][1] = (cosine); \ 84 | m[1][2] = 0.0; \ 85 | m[1][3] = 0.0; \ 86 | \ 87 | m[2][0] = 0.0; \ 88 | m[2][1] = 0.0; \ 89 | m[2][2] = 1.0; \ 90 | m[2][3] = 0.0; \ 91 | \ 92 | m[3][0] = 0.0; \ 93 | m[3][1] = 0.0; \ 94 | m[3][2] = 0.0; \ 95 | m[3][3] = 1.0; \ 96 | } 97 | 98 | /* ========================================================== */ 99 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/segment.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * MODULE: segment.h 4 | * 5 | * FUNCTION: 6 | * Contains function prototypes for segment drawing subroutines. 7 | * These are used only internally, and are not to be exported to 8 | * the user. 9 | * 10 | * HISTORY: 11 | * Create by Linas Vepstas 12 | * Added tube.h include to define gleDouble, tad February 2002 13 | */ 14 | 15 | /* ============================================================ */ 16 | 17 | #include "tube.h" 18 | 19 | extern void draw_segment_plain (int ncp, /* number of contour points */ 20 | gleDouble front_contour[][3], 21 | gleDouble back_contour[][3], 22 | int inext, double len); 23 | 24 | extern void draw_segment_color (int ncp, /* number of contour points */ 25 | gleDouble front_contour[][3], 26 | gleDouble back_contour[][3], 27 | float color_last[3], 28 | float color_next[3], 29 | int inext, double len); 30 | 31 | extern void draw_segment_edge_n (int ncp, /* number of contour points */ 32 | gleDouble front_contour[][3], 33 | gleDouble back_contour[][3], 34 | double norm_cont[][3], 35 | int inext, double len); 36 | 37 | extern void draw_segment_c_and_edge_n (int ncp, 38 | gleDouble front_contour[][3], 39 | gleDouble back_contour[][3], 40 | double norm_cont[][3], 41 | float color_last[3], 42 | float color_next[3], 43 | int inext, double len); 44 | 45 | extern void draw_segment_facet_n (int ncp, 46 | gleDouble front_contour[][3], 47 | gleDouble back_contour[][3], 48 | double norm_cont[][3], 49 | int inext, double len); 50 | 51 | extern void draw_segment_c_and_facet_n (int ncp, 52 | gleDouble front_contour[][3], 53 | gleDouble back_contour[][3], 54 | double norm_cont[][3], 55 | float color_last[3], 56 | float color_next[3], 57 | int inext, double len); 58 | 59 | /* ============================================================ */ 60 | 61 | extern void draw_binorm_segment_edge_n (int ncp, 62 | double front_contour[][3], 63 | double back_contour[][3], 64 | double front_norm[][3], 65 | double back_norm[][3], 66 | int inext, double len); 67 | 68 | extern void draw_binorm_segment_c_and_edge_n (int ncp, 69 | double front_contour[][3], 70 | double back_contour[][3], 71 | double front_norm[][3], 72 | double back_norm[][3], 73 | float color_last[3], 74 | float color_next[3], 75 | int inext, double len); 76 | 77 | extern void draw_binorm_segment_facet_n (int ncp, 78 | double front_contour[][3], 79 | double back_contour[][3], 80 | double front_norm[][3], 81 | double back_norm[][3], 82 | int inext, double len); 83 | 84 | extern void draw_binorm_segment_c_and_facet_n (int ncp, 85 | double front_contour[][3], 86 | double back_contour[][3], 87 | double front_norm[][3], 88 | double back_norm[][3], 89 | float color_last[3], 90 | float color_next[3], 91 | int inext, double len); 92 | 93 | extern void draw_angle_style_back_cap (int ncp, /* number of contour points */ 94 | gleDouble bi[3], /* biscetor */ 95 | gleDouble point_array[][3]); /* polyline */ 96 | 97 | /* -------------------------- end of file -------------------------------- */ 98 | 99 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Headers/tube_gc.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * tube_gc.h 4 | * 5 | * FUNCTION: 6 | * This file allows for easy changes to changes in the way the extrusion 7 | * library handles state info (i.e. context). 8 | * 9 | * HISTORY: 10 | * Linas Vepstas --- February 1993 11 | * Added auto texture coord generation hacks, Linas April 1994 12 | * Added tube.h include to define gleDouble, tad February 2002 13 | */ 14 | 15 | #include "tube.h" 16 | #include "port.h" /* for gleVector */ 17 | 18 | typedef float gleColor[3]; 19 | typedef double gleTwoVec[2]; 20 | 21 | typedef struct { 22 | 23 | /* public methods */ 24 | void (*bgn_gen_texture) (int, double); 25 | void (*n3f_gen_texture) (float *); 26 | void (*n3d_gen_texture) (double *); 27 | void (*v3f_gen_texture) (float *, int, int); 28 | void (*v3d_gen_texture) (double *, int, int); 29 | void (*end_gen_texture) (void); 30 | 31 | /* protected members -- "general knowledge" stuff */ 32 | int join_style; 33 | 34 | /* arguments passed into extrusion code */ 35 | int ncp; /* number of contour points */ 36 | gleTwoVec *contour; /* 2D contour */ 37 | gleTwoVec *cont_normal; /* 2D contour normals */ 38 | gleDouble *up; /* up vector */ 39 | int npoints; /* number of points in polyline */ 40 | gleVector *point_array; /* path */ 41 | gleColor *color_array; /* path colors */ 42 | gleAffine *xform_array; /* contour xforms */ 43 | 44 | /* private members, used by texturing code */ 45 | int num_vert; 46 | int segment_number; 47 | double segment_length; 48 | double accum_seg_len; 49 | double prev_x; 50 | double prev_y; 51 | 52 | void (*save_bgn_gen_texture) (int, double); 53 | void (*save_n3f_gen_texture) (float *); 54 | void (*save_n3d_gen_texture) (double *); 55 | void (*save_v3f_gen_texture) (float *, int, int); 56 | void (*save_v3d_gen_texture) (double *, int, int); 57 | void (*save_end_gen_texture) (void); 58 | 59 | } gleGC; 60 | 61 | extern gleGC *_gle_gc; 62 | extern gleGC * gleCreateGC (void); 63 | 64 | #define INIT_GC() {if (!_gle_gc) _gle_gc = gleCreateGC(); } 65 | #define extrusion_join_style (_gle_gc->join_style) 66 | 67 | #define __TUBE_CLOSE_CONTOUR (extrusion_join_style & TUBE_CONTOUR_CLOSED) 68 | #define __TUBE_DRAW_CAP (extrusion_join_style & TUBE_JN_CAP) 69 | #define __TUBE_DRAW_FACET_NORMALS (extrusion_join_style & TUBE_NORM_FACET) 70 | #define __TUBE_DRAW_PATH_EDGE_NORMALS (extrusion_join_style & TUBE_NORM_PATH_EDGE) 71 | 72 | #define __TUBE_STYLE (extrusion_join_style & TUBE_JN_MASK) 73 | #define __TUBE_RAW_JOIN (extrusion_join_style & TUBE_JN_RAW) 74 | #define __TUBE_CUT_JOIN (extrusion_join_style & TUBE_JN_CUT) 75 | #define __TUBE_ANGLE_JOIN (extrusion_join_style & TUBE_JN_ANGLE) 76 | #define __TUBE_ROUND_JOIN (extrusion_join_style & TUBE_JN_ROUND) 77 | 78 | /* ======================= END OF FILE ========================== */ 79 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/Caution.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/Caution.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUT.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | { 4 | ACTIONS = {save = id; saveAs = id; }; 5 | CLASS = FirstResponder; 6 | LANGUAGE = ObjC; 7 | SUPERCLASS = NSObject; 8 | }, 9 | { 10 | ACTIONS = {timerAction = id; }; 11 | CLASS = GLUTApplication; 12 | LANGUAGE = ObjC; 13 | OUTLETS = { 14 | "_aboutMenuItem" = NSMenuItem; 15 | "_hideMenuItem" = NSMenuItem; 16 | "_quitMenuItem" = NSMenuItem; 17 | }; 18 | SUPERCLASS = NSApplication; 19 | }, 20 | { 21 | ACTIONS = {toggleWindow = id; }; 22 | CLASS = GLUTClipboardController; 23 | LANGUAGE = ObjC; 24 | OUTLETS = {"_infoText" = id; "_scrollView" = id; }; 25 | SUPERCLASS = NSWindowController; 26 | }, 27 | { 28 | ACTIONS = { 29 | assign = id; 30 | cancel = id; 31 | inputMenu = id; 32 | invertInput = id; 33 | mouseMatrix = id; 34 | mousePreset = id; 35 | ok = id; 36 | setDefault = id; 37 | }; 38 | CLASS = GLUTPreferencesController; 39 | LANGUAGE = ObjC; 40 | OUTLETS = { 41 | assignPrompt = NSTextField; 42 | assignText = NSTextField; 43 | inputMenu = NSPopUpButton; 44 | inverted = NSButton; 45 | mbConfigMenu = NSPopUpButton; 46 | mbConfigWarningIcon = NSImageView; 47 | mbConfigWarningText = NSTextField; 48 | middleButtonMatrix = NSMatrix; 49 | rightButtonMatrix = NSMatrix; 50 | }; 51 | SUPERCLASS = NSWindowController; 52 | } 53 | ); 54 | IBVersion = 1; 55 | } -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUT.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 4 104 410 240 0 0 1152 848 7 | IBEditorPositions 8 | 9 | 29 10 | 19 615 246 44 0 0 1152 848 11 | 12 | IBFramework Version 13 | 291.0 14 | IBGroupedObjects 15 | 16 | IBLastGroupID 17 | 1 18 | IBOpenObjects 19 | 20 | 29 21 | 22 | IBSystem Version 23 | 6I32 24 | 25 | 26 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUT.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUT.nib/objects.nib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTClipboard.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | { 5 | ACTIONS = {toggleWindow = id; }; 6 | CLASS = GLUTClipboardController; 7 | LANGUAGE = ObjC; 8 | OUTLETS = {_infoText = id; _scrollView = id; }; 9 | SUPERCLASS = NSWindowController; 10 | } 11 | ); 12 | IBVersion = 1; 13 | } -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTClipboard.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 63 221 356 240 0 0 1600 1178 7 | IBFramework Version 8 | 263.2 9 | IBSystem Version 10 | 5S41 11 | 12 | 13 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTClipboard.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTClipboard.nib/objects.nib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTPreferences.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | { 4 | ACTIONS = {save = id; saveAs = id; }; 5 | CLASS = FirstResponder; 6 | LANGUAGE = ObjC; 7 | SUPERCLASS = NSObject; 8 | }, 9 | { 10 | ACTIONS = { 11 | cancel = id; 12 | joyAssign = id; 13 | joyDevice = id; 14 | joyElement = id; 15 | joyInvert = id; 16 | launchDebugMode = id; 17 | launchGamemodeCaptureSingle = id; 18 | launchIconic = id; 19 | launchUseCurrWD = id; 20 | launchUseExtDesktop = id; 21 | launchUseMacOSCoords = id; 22 | mouseEanbleEmulation = id; 23 | mouseMiddleMenu = id; 24 | mouseRightMenu = id; 25 | ok = id; 26 | spaceAssign = id; 27 | spaceDevice = id; 28 | spaceElement = id; 29 | spaceInvert = id; 30 | }; 31 | CLASS = GLUTPreferencesController; 32 | LANGUAGE = ObjC; 33 | OUTLETS = { 34 | joyAssign = NSButton; 35 | joyAssignNote = NSTextField; 36 | joyAssignWarningIcon = NSImageView; 37 | joyDeviceMenu = NSPopUpButton; 38 | joyElement = NSTextField; 39 | joyInputMenu = NSPopUpButton; 40 | joyInverted = NSButton; 41 | launchDebugMode = NSButton; 42 | launchFadeTime = NSTextField; 43 | launchGamemodeCaptureSingle = NSButton; 44 | launchIconic = NSButton; 45 | launchInitHeight = NSTextField; 46 | launchInitWidth = NSTextField; 47 | launchInitX = NSTextField; 48 | launchInitY = NSTextField; 49 | launchMenuIdle = NSTextField; 50 | launchSyncToVBL = NSButton; 51 | launchUseCurrWD = NSButton; 52 | launchUseExtendedDesktop = NSButton; 53 | launchUseMacOSXCoords = NSButton; 54 | mouseAssignWarningIcon = NSImageView; 55 | mouseAssignWarningText = NSTextField; 56 | mouseDetected = NSTextField; 57 | mouseEmulation = NSButton; 58 | mouseMiddleConfigMenu = NSPopUpButton; 59 | mouseRightConfigMenu = NSPopUpButton; 60 | prefsTabView = NSTabView; 61 | spaceAssign = NSButton; 62 | spaceAssignNote = NSTextField; 63 | spaceAssignWarningIcon = NSImageView; 64 | spaceDeviceMenu = NSPopUpButton; 65 | spaceElement = NSTextField; 66 | spaceInputMenu = NSPopUpButton; 67 | spaceInverted = NSButton; 68 | }; 69 | SUPERCLASS = NSWindowController; 70 | } 71 | ); 72 | IBVersion = 1; 73 | } -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTPreferences.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 16 329 410 240 0 0 1920 1178 7 | IBFramework Version 8 | 439.0 9 | IBOpenObjects 10 | 11 | 205 12 | 13 | IBSystem Version 14 | 8G32 15 | 16 | 17 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTPreferences.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTPreferences.nib/objects.nib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTUI.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/GLUTUI.strings -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | GLUT 9 | CFBundleGetInfoString 10 | 3.4.0, Copyright (c) 2001-2008 Apple Inc., All Rights Reserved 11 | CFBundleIdentifier 12 | com.apple.glut 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.4.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | GLUT-3.4.0 23 | 24 | 25 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/blankCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/blankCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/bottomCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/bottomCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/bottomleftCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/bottomleftCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/bottomrightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/bottomrightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/crossCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/crossCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/cycleCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/cycleCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/destroyCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/destroyCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/fingerCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/fingerCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/helpCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/helpCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/leftCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/leftCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/leftRightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/leftRightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/rightArrowCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/rightArrowCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/rightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/rightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/sprayCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/sprayCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/topCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/topCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/topleftCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/topleftCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/toprightCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/toprightCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/upDownCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/upDownCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/waitCursor.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/Frameworks/GLUT.framework/Versions/Current/Resources/waitCursor.tiff -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 11G63 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | emptyExample 11 | CFBundleIdentifier 12 | com.yourcompany.openFrameworks 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | APPL 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1.0 21 | DTCompiler 22 | 23 | DTPlatformBuild 24 | 4G1004 25 | DTPlatformVersion 26 | GM 27 | DTSDKBuild 28 | 11G63 29 | DTSDKName 30 | 31 | DTXcode 32 | 0451 33 | DTXcodeBuild 34 | 4G1004 35 | 36 | 37 | -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/MacOS/emptyExample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/MacOS/emptyExample -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/MacOS/libfmodex.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/bin/emptyExample.app/Contents/MacOS/libfmodex.dylib -------------------------------------------------------------------------------- /bin/emptyExample.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPL???? -------------------------------------------------------------------------------- /emptyExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /emptyExample.xcodeproj/project.xcworkspace/xcuserdata/kamend.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/emptyExample.xcodeproj/project.xcworkspace/xcuserdata/kamend.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /emptyExample.xcodeproj/xcshareddata/xcschemes/emptyExample Debug.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 14 | 20 | 21 | 22 | 23 | 24 | 29 | 30 | 31 | 32 | 38 | 39 | 40 | 41 | 49 | 50 | 56 | 57 | 58 | 59 | 60 | 61 | 67 | 68 | 74 | 75 | 76 | 77 | 79 | 80 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /emptyExample.xcodeproj/xcshareddata/xcschemes/emptyExample Release.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 14 | 20 | 21 | 22 | 23 | 24 | 29 | 30 | 31 | 32 | 38 | 39 | 40 | 41 | 49 | 50 | 56 | 57 | 58 | 59 | 60 | 61 | 67 | 68 | 74 | 75 | 76 | 77 | 79 | 80 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /emptyExample.xcodeproj/xcuserdata/kamend.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /emptyExample.xcodeproj/xcuserdata/kamend.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SuppressBuildableAutocreation 6 | 7 | E4B69B5A0A3A1756003C02F2 8 | 9 | primary 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamend/KinectDelaunay/33f8647ec6f07b3164126e621186a6bb4b35d4fc/screen.png -------------------------------------------------------------------------------- /src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "testApp.h" 2 | #include "ofAppGlutWindow.h" 3 | 4 | //-------------------------------------------------------------- 5 | int main(){ 6 | ofAppGlutWindow window; // create a window 7 | // set width, height, mode (OF_WINDOW or OF_FULLSCREEN) 8 | ofSetupOpenGL(&window, 1280, 720, OF_WINDOW); 9 | ofRunApp(new testApp()); // start the app 10 | } 11 | -------------------------------------------------------------------------------- /src/testApp.cpp: -------------------------------------------------------------------------------- 1 | #include "testApp.h" 2 | 3 | 4 | 5 | //-------------------------------------------------------------- 6 | void testApp::setup(){ 7 | ofSetFrameRate(30); 8 | kinect.init(); 9 | 10 | kinect.open(); 11 | kinect.setRegistration(true); 12 | 13 | blob.allocate(640,480,OF_IMAGE_GRAYSCALE); 14 | 15 | 16 | // Gui 17 | gui.setup(); 18 | gui.setPosition(ofPoint(10,10)); 19 | gui.add(noiseAmount.setup("Noise Amount", 0.0, 0.0,20.0)); 20 | gui.add(pointSkip.setup("Point Skip", 1, 1,20)); 21 | gui.add(useRealColors.setup("Real Colors", false)); 22 | gui.add(colorAlpha.setup("Color Alpha", 255,0,255)); 23 | gui.loadFromFile("settings.xml"); 24 | showGui = true; 25 | 26 | 27 | // fx 28 | postFx.init(ofGetWidth(), ofGetHeight()); 29 | 30 | postFx.createPass(); 31 | postFx.createPass(); 32 | 33 | } 34 | 35 | 36 | 37 | //-------------------------------------------------------------- 38 | void testApp::update(){ 39 | 40 | kinect.update(); 41 | if(kinect.isFrameNew()) { 42 | del.reset(); 43 | 44 | 45 | unsigned char* pix = new unsigned char[640*480]; 46 | 47 | unsigned char* gpix = new unsigned char[640*480]; 48 | 49 | for(int x=0;x<640;x+=1) { 50 | for(int y=0;y<480;y+=1) { 51 | float distance = kinect.getDistanceAt(x, y); 52 | 53 | int pIndex = x + y * 640; 54 | pix[pIndex] = 0; 55 | 56 | if(distance > 100 && distance < 1100) { 57 | pix[pIndex] = 255; 58 | } 59 | 60 | } 61 | } 62 | 63 | blob.setFromPixels(pix, 640, 480, OF_IMAGE_GRAYSCALE); 64 | 65 | int numPoints = 0; 66 | 67 | for(int x=0;x<640;x+=pointSkip*2) { 68 | for(int y=0;y<480;y+=pointSkip*2) { 69 | int pIndex = x + 640 * y; 70 | 71 | if(blob.getPixels()[pIndex]> 0) { 72 | ofVec3f wc = kinect.getWorldCoordinateAt(x, y); 73 | 74 | wc.x = x - 320.0; 75 | wc.y = y - 240.0; 76 | 77 | if(abs(wc.z) > 100 && abs(wc.z ) < 2000) { 78 | 79 | wc.z = -wc.z; 80 | 81 | wc.x += ofSignedNoise(wc.x,wc.z)*noiseAmount; 82 | wc.y += ofSignedNoise(wc.y,wc.z)*noiseAmount; 83 | 84 | wc.x = ofClamp(wc.x, -320,320); 85 | wc.y = ofClamp(wc.y, -240,240); 86 | 87 | del.addPoint(wc); 88 | } 89 | numPoints++; 90 | } 91 | 92 | } 93 | } 94 | 95 | 96 | if(numPoints >0) 97 | del.triangulate(); 98 | 99 | for(int i=0;i 0) { 145 | 146 | convertedMesh.addVertex(p1); 147 | convertedMesh.addColor(del.triangleMesh.getColor(indx1)); 148 | 149 | convertedMesh.addVertex(p2); 150 | convertedMesh.addColor(del.triangleMesh.getColor(indx2)); 151 | 152 | convertedMesh.addVertex(p3); 153 | convertedMesh.addColor(del.triangleMesh.getColor(indx3)); 154 | 155 | wireframeMesh.addVertex(p1); 156 | wireframeMesh.addVertex(p2); 157 | wireframeMesh.addVertex(p3); 158 | } 159 | } 160 | 161 | delete pix; 162 | delete gpix; 163 | 164 | } 165 | } 166 | 167 | 168 | //-------------------------------------------------------------- 169 | void testApp::draw(){ 170 | ofBackground(219, 214, 217); 171 | //glEnable(GL_DEPTH_TEST); 172 | 173 | ofPushMatrix(); 174 | 175 | cam.begin(); 176 | cam.setScale(1,-1,1); 177 | 178 | ofSetColor(255,255,255); 179 | ofTranslate(0, -80,1100); 180 | ofFill(); 181 | 182 | postFx.begin(); 183 | 184 | glPushAttrib(GL_ALL_ATTRIB_BITS); 185 | glShadeModel(GL_FLAT); 186 | glProvokingVertex(GL_FIRST_VERTEX_CONVENTION); 187 | convertedMesh.drawFaces(); 188 | glShadeModel(GL_SMOOTH); 189 | glPopAttrib(); 190 | 191 | if(useRealColors) { 192 | ofSetColor(30,30,30, 255); 193 | } else 194 | ofSetColor(124,136,128,255); 195 | 196 | ofPushMatrix(); 197 | ofTranslate(0, 0,0.5); 198 | wireframeMesh.drawWireframe(); 199 | ofPopMatrix(); 200 | cam.end(); 201 | ofPopMatrix(); 202 | 203 | postFx.end(); 204 | 205 | if(showGui) { 206 | 207 | ofPushStyle(); 208 | ofSetColor(255,255,255,255); 209 | gui.draw(); 210 | ofPopStyle(); 211 | } 212 | ofSetColor(255, 255, 255); 213 | 214 | } 215 | 216 | //-------------------------------------------------------------- 217 | void testApp::keyPressed(int key){ 218 | 219 | if(key == ' ') { 220 | showGui = !showGui; 221 | } 222 | } 223 | 224 | //-------------------------------------------------------------- 225 | void testApp::keyReleased(int key){ 226 | 227 | } 228 | 229 | //-------------------------------------------------------------- 230 | void testApp::mouseMoved(int x, int y){ 231 | 232 | } 233 | 234 | //-------------------------------------------------------------- 235 | void testApp::mouseDragged(int x, int y, int button){ 236 | 237 | } 238 | 239 | //-------------------------------------------------------------- 240 | void testApp::mousePressed(int x, int y, int button){ 241 | 242 | } 243 | 244 | //-------------------------------------------------------------- 245 | void testApp::mouseReleased(int x, int y, int button){ 246 | 247 | } 248 | 249 | //-------------------------------------------------------------- 250 | void testApp::windowResized(int w, int h){ 251 | 252 | } 253 | 254 | //-------------------------------------------------------------- 255 | void testApp::gotMessage(ofMessage msg){ 256 | 257 | } 258 | 259 | void testApp::exit() { 260 | kinect.close(); 261 | gui.saveToFile("settings.xml"); 262 | } 263 | 264 | //-------------------------------------------------------------- 265 | void testApp::dragEvent(ofDragInfo dragInfo){ 266 | 267 | } -------------------------------------------------------------------------------- /src/testApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "ofxGui.h" 5 | #include "ofxKinect.h" 6 | #include "ofxDelaunay.h" 7 | #include "ofxPostProcessing.h" 8 | 9 | 10 | 11 | class testApp : public ofBaseApp{ 12 | public: 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed(int key); 18 | void keyReleased(int key); 19 | void mouseMoved(int x, int y); 20 | void mouseDragged(int x, int y, int button); 21 | void mousePressed(int x, int y, int button); 22 | void mouseReleased(int x, int y, int button); 23 | void windowResized(int w, int h); 24 | void dragEvent(ofDragInfo dragInfo); 25 | void gotMessage(ofMessage msg); 26 | 27 | void exit(); 28 | 29 | ofxKinect kinect; 30 | 31 | ofEasyCam cam; 32 | 33 | ofxPostProcessing postFx; 34 | 35 | // gui 36 | bool showGui; 37 | ofxPanel gui; 38 | ofxSlider colorAlpha; 39 | ofxSlider noiseAmount; 40 | ofxToggle useRealColors; 41 | ofxSlider pointSkip; 42 | 43 | // meshes 44 | 45 | ofMesh convertedMesh; 46 | ofMesh wireframeMesh; 47 | 48 | ofxDelaunay del; 49 | 50 | ofImage blob; 51 | 52 | 53 | }; 54 | --------------------------------------------------------------------------------