From: Brian P. <br...@pr...> - 2000-06-08 14:54:58
|
Matt Campbell wrote: > > Could someone tell me which field inside the vertex buffer data > structure holds or points to the indexed color information for a flat > shaded ci triangle. I want to put the data for that particular triangle > in a message buffer but I'm not sure where the color info is. If you look at src/triangles.c and examine the flat-shaded triangle functions you'll see. In general, the 'pv' (provoking vertex) parameter is an index into the vertex buffer indicating which color or color index to use for filling the triangle. -Brian |