[Plib-devel] Vertex array code
Brought to you by:
sjbaker
From: Vallevand, M. K <Mar...@UN...> - 2000-05-15 15:10:58
|
Here is the vertex array code for ssg. <<plib.tar.gz>> I've included a diff file of changes to existing files, the original files, the changed files, and the new files. There isn't any documentation except this email message. I based the changes on plib 1.1.9.- I've tested the main part of the code, and it works very nicely. I haven't tested things like the highlight or save/load code. I have doubts about the save/load code for any ssg object existing at more that one point in the tree, anyway. The new class, ssgVtxArray is similar to ssgVtxTable, but it takes an additional parameter to its constructor: an index array. The index array is a new type, ssgIndexArray, which stores an array of integers to use as vertex indices. The vertex, colour, texture coord, and normal arrays used in the ssgVtxArray constructor are global, shared arrays. The index array is the list of indices to use for the object. There are also placeholders for interleaved vertex array support, but that code is a future project. There is also too much duplicated code between ssgVtxArray and ssgVtxTable, from which it is derived. The code need to be work over to get more shared code into the base class. I would probably need to do that when interleaved vertex support is added. If interleaved support is never added, I'd be inclined to just leave it alone. I don't have cvs access, and probably don't want it. My network connection a home is very unreliable unless I am behind the corporate firewall, and behind the firewall cvs doesn't work. So, I'm just passing the code this way. Regards. Mark K Vallevand ma...@rs... Outside of a dog, a book is man's best friend. Inside of a dog, its too dark to read. - Groucho |