marius schebella a écrit :
hi cyrille, with mesh_square, are there other arguments to the draw message than "default" "line" and "point"?
you can send to mesh_square all draw style that you can send to any other gem primitive. but only this one work as expected.
and what is the "default" draw method?
if(m_drawType==GL_DEFAULT_GEM)m_drawType=GL_TRIANGLE_STRIP;
how are the vertices connected/what is the order of the vertices?
the best explanation i can provide is from the source code! :
for (int i=0; i<(gridX-1) ; i++)
{
glBegin(m_drawType);
for (int j = 0; j < gridY ; j++)
{
glTexCoord2fv( texCoords[i][j] );
glVertex3f( m_size * (i*sizeX - 1), m_size * (j*sizeY -1) , 0);
glTexCoord2fv( texCoords[i+1][j] );
glVertex3f( m_size * ((i+1)*sizeX - 1), m_size * (j*sizeY -1), 0);
}
glEnd();
}
cyrille
thanks, marius.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list