RE: [Plib-devel] Q1: Shared vertex data
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2000-05-08 17:03:44
|
> When I looked at vertex arrays, it was not clear to me how > they could even be used to share vertex data, which is my > aim. > http://www.sgi.com/software/opengl/examples/redbook/source/varray.c > I don't have the SSG source code to quickly look at, but > I thought that ssgVtxTable used vertex arrays. It seems > like a natural fit. > ssgVtxTable stores the vertex data in an array but passes it to OpenGL via glVertex glBegin ( gltype ) ; for ( i = 0 ; i < num_vertices ; i++ ) glVertex3fv ( vx [ i ] ) ; glEnd () ; This is nice and straight-forward but not exactly optimal for large models. A seperate class, using vertex arrays, would be a useful addition to SSG. --Dave |