Hi,

2008/7/7 Glynn Clements <[EMAIL PROTECTED]>:
> Note that lib/nviz/render.c contains unconditional references to glX
> functions, so it won't compile with non-X11 versions of OpenGL.
>
> To make it work on all platforms, each section of code which uses glX
> functions will need equivalent agl and wgl versions. The commment at
> the top of that file indicates that it was based upon Togl, which
> should have all of the relevant code.
>
> Also, the Mac version of OpenGL needs <OpenGL/gl.h> rather than
> <GL/gl.h>, e.g.:
>
> #include <grass/config.h>
>
> #if defined(OPENGL_X11) || defined(OPENGL_WINDOWS)
> #include <GL/gl.h>
> #endif
> #ifdef OPENGL_AQUA
> #include <OpenGL/gl.h>
> #endif

thanks for notes, I have updated render.c [1], nothing for wgl since
include/Make/Platform.make doesn't seems to have OPENGL_WGL (todo).

I am not sure about Xlib-based functions (XFreePixmap, XOpenDisplay,
XCreatePixmap)...

Martin

[1] http://trac.osgeo.org/grass/changeset/32043

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to