2009-01-13 04:40:13 +05:00
|
|
|
// libraries for User interface:
|
|
|
|
|
|
|
|
|
|
|
|
#include <tcl.h>
|
|
|
|
#include <tk.h>
|
2009-02-05 04:09:28 +05:00
|
|
|
// #include "/opt/tcltk86/include/tcl.h"
|
|
|
|
// #include "/opt/tcltk86/include/tk.h"
|
|
|
|
|
2009-01-13 04:40:13 +05:00
|
|
|
|
|
|
|
#if TK_MAJOR_VERSION==8 && TK_MINOR_VERSION>=4
|
|
|
|
#define tcl_const const
|
|
|
|
#else
|
|
|
|
#define tcl_const
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2009-02-05 04:25:09 +05:00
|
|
|
# if defined(TOGL_AGL) || defined(TOGL_AGL_CLASSIC)
|
|
|
|
# include <OpenGL/gl.h>
|
|
|
|
# include <OpenGL/glu.h>
|
|
|
|
# else
|
|
|
|
# include <GL/gl.h>
|
|
|
|
# include <GL/glu.h>
|
|
|
|
# endif
|
2009-01-25 07:54:27 +05:00
|
|
|
|
|
|
|
|
2009-02-05 04:29:53 +05:00
|
|
|
#ifdef TOGL_X11
|
2009-01-25 07:54:27 +05:00
|
|
|
// parallel
|
|
|
|
#define GLX_GLXEXT_PROTOTYPES
|
|
|
|
#include <GL/glx.h>
|
|
|
|
#include <GL/glxext.h>
|
2009-02-01 01:16:46 +05:00
|
|
|
#endif
|
2009-01-25 07:54:27 +05:00
|
|
|
|
|
|
|
|
2009-01-13 04:40:13 +05:00
|
|
|
#ifndef NOTCL
|
2009-01-20 14:08:01 +05:00
|
|
|
// #include <togl.h>
|
2009-01-13 04:40:13 +05:00
|
|
|
// #include "../../togl/togl.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// part of OpenGL 1.2, but not in Microsoft's OpenGL 1.1 header:
|
|
|
|
// GL version sould be checked at runtime
|
|
|
|
#ifndef GL_CLAMP_TO_EDGE
|
|
|
|
#define GL_CLAMP_TO_EDGE 0x812F
|
|
|
|
#endif
|
|
|
|
|