|
From: Keith W. <kw...@cs...> - 2004-07-28 22:18:08
|
I am trying to figure out if the Queeg QGTriMesh copy ctor duplicates shader objects, or just references to a single shader? It has this line: mTriMeshData.triMeshAttributeSet = Q3Object_Duplicate( srcData.triMeshAttributeSet ); The QD3D manual says that if the new object of Q3Object_Duplicate is a shared object, then is ref count is set to one. Now, Q3Object_Duplicate is being called on the TriMesh.triMeshAttributeSet, not the shader per se. I assume shaders are shared, but I assume that trimesh attributes sets are not, so I'm unclear as to whether duplicating a trimesh a zillion times fills RAM up with countless copies of an identical shader and a fairly sizable texture bitmap...which is obviously not what I want. ________________________________________________________________________ Keith Wiley kw...@cs... http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley "Yet mark his perfect self-contentment, and hence learn his lesson, that to be self-contented is to be vile and ignorant, and that to aspire is better than to be blindly and impotently happy." -- Edwin A. Abbott, Flatland ________________________________________________________________________ |