Support Forum       Library Source       SourceForge Page       G3D Web Page     
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
G3D::SuperSurface::GPUGeom Class Reference

A GPU mesh utility class that works with G3D::SuperSurface. More...

Inherits G3D::ReferenceCountedObject.

Public Types

typedef
ReferenceCountedPointer
< GPUGeom
Ref

Public Member Functions

bool hasGeometry () const
 True if this part has some geometry.
void ReferenceCountedObject_zeroWeakPointers ()
 Automatically called immediately before the object is deleted.
ReferenceCountedPointer< class
ReferenceCountedObject
shared_from_this ()

Static Public Member Functions

static GPUGeom::Ref create (PrimitiveType p=PrimitiveType::TRIANGLES)

Public Attributes

AABox boxBounds
 Object space bounds.
VertexRange index
 Indices into the VARs.
ReferenceCountedPointer< Materialmaterial
VertexRange normal
VertexRange packedTangent
MeshAlg::Primitive primitive
AtomicInt32 ReferenceCountedObject_refCount
 The long name is to keep this from accidentally conflicting with a subclass's variable name.
_WeakPtrLinkedListReferenceCountedObject_weakPointer
 Linked list of all weak pointers that reference this (some may be on the stack!).
Sphere sphereBounds
 Object space bounds.
VertexRange texCoord0
VertexRange texCoord1
 Reserved for future use.
bool twoSided
 When true, this primitive should be rendered with two-sided lighting and texturing and not cull back faces.
VertexRange vertex

Protected Member Functions

 GPUGeom (PrimitiveType p, bool t)

Detailed Description

A GPU mesh utility class that works with G3D::SuperSurface.

A set of lines, points, quads, or triangles that have a single Material and can be rendered as a single OpenGL primitive using RenderDevice::sendIndices inside a RenderDevice::beginIndexedPrimitives() block.

See Also
G3D::MeshAlg, G3D::ArticulatedModel, G3D::Surface, G3D::CPUVertexArray

Member Typedef Documentation

Constructor & Destructor Documentation

G3D::SuperSurface::GPUGeom::GPUGeom ( PrimitiveType  p,
bool  t 
)
inlineprotected

Referenced by create().

Member Function Documentation

static GPUGeom::Ref G3D::SuperSurface::GPUGeom::create ( PrimitiveType  p = PrimitiveType::TRIANGLES)
inlinestatic
bool G3D::SuperSurface::GPUGeom::hasGeometry ( ) const
inline

True if this part has some geometry.

void G3D::ReferenceCountedObject::ReferenceCountedObject_zeroWeakPointers ( )
inherited

Automatically called immediately before the object is deleted.

This is not called from the destructor because it needs to be invoked before the subclass destructor.

ReferenceCountedPointer<class ReferenceCountedObject> G3D::ReferenceCountedObject::shared_from_this ( )
inherited

Member Data Documentation

AABox G3D::SuperSurface::GPUGeom::boxBounds

Object space bounds.

VertexRange G3D::SuperSurface::GPUGeom::index

Indices into the VARs.

ReferenceCountedPointer<Material> G3D::SuperSurface::GPUGeom::material
VertexRange G3D::SuperSurface::GPUGeom::normal
VertexRange G3D::SuperSurface::GPUGeom::packedTangent
MeshAlg::Primitive G3D::SuperSurface::GPUGeom::primitive
AtomicInt32 G3D::ReferenceCountedObject::ReferenceCountedObject_refCount
inherited

The long name is to keep this from accidentally conflicting with a subclass's variable name.

Do not use or explicitly manipulate this value–its type may change in the future and is not part of the supported API.

_WeakPtrLinkedList* G3D::ReferenceCountedObject::ReferenceCountedObject_weakPointer
inherited

Linked list of all weak pointers that reference this (some may be on the stack!).

Do not use or explicitly manipulate this value.

Sphere G3D::SuperSurface::GPUGeom::sphereBounds

Object space bounds.

VertexRange G3D::SuperSurface::GPUGeom::texCoord0
VertexRange G3D::SuperSurface::GPUGeom::texCoord1

Reserved for future use.

bool G3D::SuperSurface::GPUGeom::twoSided

When true, this primitive should be rendered with two-sided lighting and texturing and not cull back faces.

VertexRange G3D::SuperSurface::GPUGeom::vertex

documentation generated on Sun Aug 26 2012 21:55:47 using doxygen 1.8.1.2