[GRASS-dev] nviz python thoughts

William Kyngesburye woklist at kyngchaos.com
Sun Dec 21 15:59:34 EST 2008


On Dec 21, 2008, at 12:51 PM, William Kyngesburye wrote:

> Anyways, the online API docs that we found way back when to get the  
> function names seems to have been wrong.  Strangely, render.c  
> compiles with the wrong names, but doesn't link:
>
> Undefined symbols:
>  "_aglChoosePixelFmt", referenced from:
>      _Nviz_create_render_window in render.o
>  "_aglCreateAGLPixmap", referenced from:
>      _Nviz_create_render_window in render.o
>  "_aglMakeCurrent", referenced from:
>      _Nviz_make_current_render_window in render.o
>  "_aglDestroyAGLPixmap", referenced from:
>      _Nviz_destroy_render_window in render.o
>
> Indeed, these are not in the AGL headers.  What I can find is:
>
> extern AGLPixelFormat aglChoosePixelFormat(const AGLDevice *gdevs,  
> GLint ndev, const GLint *attribs);
>
> extern GLboolean aglSetCurrentContext(AGLContext ctx);
> (I didn't see any form of "make current", with a context AND display/ 
> window parameters)
>
> There don't appear to be any pixmap functions, but there are pbuffer  
> functions.
>
> Looks like nviz.h has the right names for types in the render_window  
> struct.


I'm starting to make some sense of the AGL context stuff.  Here's a  
patch that lets render.c compile and link, though it's still non- 
functional:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: render.c.patch
Type: application/octet-stream
Size: 1549 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20081221/3009f425/render.c.obj
-------------- next part --------------


-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying,  
fighting, and all for things that the beasts of the jungle would not  
deign to possess - money to purchase the effeminate pleasures of  
weaklings.  And yet withal bound down by silly customs that make them  
slaves to their unhappy lot while firm in the belief that they be the  
lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan




More information about the grass-dev mailing list