Hi again,
I found out how to tesselate complex polygons, but the textures are mapped per triangle (generated by the Tessfunctions) and not over the whole polygon.
What can I do ? Please help me…
int g_nTexIndex; // number of texturcoord i have to use
GLdouble *g_pdTexCoords; // pairs of generated texturecoords
GLvoid CALLBACK gCallbackVertex(GLdouble pdVertex) // callback for TessVertex()
{
// texturecoord
glTexCoord2d(g_pdTexCoords[g_nTexIndex2], g_pdTexCoords[g_nTexIndex*2+1]);
// 3d-point
glVertex3dv(pdVertex);
g_nTexIndex++;
}