Re: [Plib-devel] Q1: Shared vertex data
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-05-08 23:22:09
|
"Vallevand, Mark K" wrote: > > 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. That's not an accident. One of the reasons to go to the present ssgVtxTable from the old ssgVTable was to make it easy to build a compatible class that used CVA's (or just VA's) - so that is indeed the next logical step. > 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. Yep. > This might be worth looking at. Hmm, Hmm. You could use the > existing SSG collection classes. A class named ssgVtxArray, or > some such thing. Yes - that is exactly the plan...but in my present state of busy-ness, I'm not going to be getting to do that very soon - so all contributions are gratefully accepted. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |