From: Jorrit T. <jo...@us...> - 2001-08-24 11:54:42
|
Date: Friday August 24, 2001 @ 4:54 Author: jorrit Update of /cvsroot/crystal/CS/apps/perftest In directory usw-pr-cvs1:/tmp/cvs-serv16578/apps/perftest Modified Files: ptests3d.cpp ptests3d.h Log Message: - Added iPolygonBuffer. This represents an object that holds the most efficient way to represent a set of polygons for a given 3D renderer. For a software renderer the polygons can just be stored as such. For a hardware renderer it may be more efficient to store the polygons as a triangle mesh or a vertex fan/strip. The vertex buffer manager also serves as the class that implements polygon buffers. Polygon buffers are supposed to work together with vertex buffers as the polygons are given as indices in such a buffer. Implemented a primitive polygon buffer support for all renderers. Currently polygon buffers are not used. In the near future DrawPolygonMesh will use them. - Changed the way that vertex buffers work. In addition to the vertex information that was already present there is now also texel (texture mapping) and color information. This means the 3D renderer will also be able to optimize for those. This also means that the vertex_colors and texels arrays are gone from G3DTriangleMesh. |