Archon::X3D::Viewer::ShapeCache Struct Reference

Inheritance diagram for Archon::X3D::Viewer::ShapeCache:

Inheritance graph
[legend]
Collaboration diagram for Archon::X3D::Viewer::ShapeCache:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ShapeCache (Shape *s)
void dispose ()
bool updateTexture (const Viewer *viewer)
bool updateCalllist ()
bool update (const Viewer *viewer)
 ~ShapeCache ()

Static Public Member Functions

static vector< ShapeCache * > & getDisposedShapeCaches ()
static void cleanUp ()

Public Attributes

GLuint textureId
GLuint callListId
Shapeshape
GeometryNodegeometry
Time calllistStamp
const FieldBasegeometryField
Loader::Contents::Id contentsId

Detailed Description

Definition at line 672 of file view.C.


Member Function Documentation

bool Archon::X3D::Viewer::ShapeCache::update const Viewer viewer  )  [inline]
 

Returns:
true if calllist must be re-made.

Definition at line 839 of file view.C.

References calllistStamp, Archon::X3D::Viewer::server, updateCalllist(), and updateTexture().

bool Archon::X3D::Viewer::ShapeCache::updateTexture const Viewer viewer  )  [inline]
 

Todo:
Will this work on a 16 bit char platform?

Definition at line 712 of file view.C.

References Archon::Utilities::Image::components_l, Archon::Utilities::Image::components_la, Archon::Utilities::Image::components_rgb, Archon::Utilities::Image::components_rgba, contentsId, Archon::Utilities::Ref< T >::get(), Archon::X3D::Shape::getAppearance(), Archon::Utilities::Image::getBitsPerComponent(), Archon::Utilities::Image::getComponentSpecifier(), Archon::X3D::UrlObject::getContents(), Archon::Utilities::Image::getHeight(), Archon::X3D::NodeType::getName(), Archon::Utilities::Image::getPixelBuffer(), Archon::X3D::Texture2DNode::getRepeatS(), Archon::X3D::Texture2DNode::getRepeatT(), Archon::X3D::Appearance::getTexture(), Archon::X3D::NodeBase::getType(), Archon::Utilities::Image::getWidth(), shape, textureId, Archon::X3D::TexUsage::textureId, Archon::X3D::TexUsage::useCount, and Archon::X3D::Viewer::useMipmapedTextures.

Referenced by update().


The documentation for this struct was generated from the following file:
Generated on Sun Jul 30 23:01:28 2006 for Archon by  doxygen 1.4.4