[visionegg] Dropping into C
- From: Douglas Taylor <dtaylor@xxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Fri, 27 Jan 2006 13:40:09 -0800
Hi Andrew,
I was trying to optimize the dot drawing routine
using the Vertex Array method
xy[:,0] = xstart #where xy is an [npoints][2] array
xy[:,1] = ystart
# Pass a pointer to the start of the point-coordinate array:
glVertexPointerd(xy);
# glVertexPointer(2, GL_DOUBLE, 0, xy); Python did not like
it this way
# Enable fast rendering of arrays:
glEnableClientState(GL_VERTEX_ARRAY);
# Render all n points, starting at point 0, render them as
POINTS:
glDrawArrays(GL_POINTS, 0, len(xstart));
# Disable fast rendering of arrays:
glDisableClientState(GL_VERTEX_ARRAY);
and on the Mac(10.3 and 10.4) I actually got worse performance than the
GL_POINTS loop method. So I would like to drop into C and I found
the _draw_in_c.c code which looks like a good place to start. I don't
understand however how you generated the .so file. I couldn't find
any examples on the Apple site either. I have XCODE and CodeWarrior.
Could you point me in the right direction here. Thanks much,
Doug
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- Follow-Ups:
- [visionegg] Re: Dropping into C
- From: Andrew Straw
- [visionegg] Re: Dropping into C
- From: Simeon Fitch
Other related posts:
- » [visionegg] Dropping into C
- » [visionegg] Re: Dropping into C
- » [visionegg] Re: Dropping into C
- » [visionegg] Re: Dropping into C
- » [visionegg] Re: Dropping into C
- » [visionegg] Re: Dropping into C
====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
- [visionegg] Re: Dropping into C
- From: Andrew Straw
- [visionegg] Re: Dropping into C
- From: Simeon Fitch