diff options
Diffstat (limited to 'generic/Types.h')
-rw-r--r-- | generic/Types.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/generic/Types.h b/generic/Types.h index d52128c..f08ca15 100644 --- a/generic/Types.h +++ b/generic/Types.h @@ -38,7 +38,12 @@ # ifdef _WIN32 # include <GL/gl.h> # else -# include <GL/glx.h> +# ifdef MAC_OSX_TK +# include <AGL/agl.h> +# include <AGL/glu.h> +# else +# include <GL/glx.h> +# endif # endif #endif @@ -170,7 +175,25 @@ TkRegion ZnPolygonRegion(XPoint *points, int n, # define ZN_GL_LINE_WIDTH_RANGE GL_LINE_WIDTH_RANGE # define ZN_GL_POINT_SIZE_RANGE GL_POINT_SIZE_RANGE # endif -#else /* !_WIN32 */ + +#elif defined(MAC_OSX_TK) + +ZnBool ZnPointInRegion(TkRegion reg, int x, int y); +void ZnUnionRegion(TkRegion sra, TkRegion srb, + TkRegion dr_return); +void ZnOffsetRegion(TkRegion reg, int dx, int dy); +TkRegion ZnPolygonRegion(XPoint *points, int n, + int fill_rule); +# ifdef GL +# define ZnGLContext AGLContext +# define ZnGLWaitX() +# define ZnGLWaitGL() +# define ZN_GL_LINE_WIDTH_RANGE GL_SMOOTH_LINE_WIDTH_RANGE +# define ZN_GL_POINT_SIZE_RANGE GL_SMOOTH_POINT_SIZE_RANGE +# endif + +#else /* Other unices and X11 */ + # define ZnPointInRegion(reg, x, y) \ XPointInRegion((Region) reg, x, y) # define ZnPolygonRegion(points, npoints, fillrule) \ |