Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::PosedModel2D Class Reference

Primarily for use in GUI rendering. More...

#include <PosedModel.h>

Inherits G3D::ReferenceCountedObject.

Inherited by G3D::GConsole::PosedGConsole2D, and G3D::GuiWindow::Posed.

List of all members.

Public Member Functions

virtual Rect2D bounds () const=0
virtual float depth () const=0
void ReferenceCountedObject_zeroWeakPointers ()
virtual void render (RenderDevice *rd) const =0

Static Public Member Functions

static void sort (Array< PosedModel2DRef > &array)
static void sortAndRender (RenderDevice *rd, Array< PosedModel2DRef > &array)

Public Attributes

AtomicInt32 ReferenceCountedObject_refCount
_WeakPtrLinkedListReferenceCountedObject_weakPointer


Detailed Description

Primarily for use in GUI rendering.


Member Function Documentation

virtual Rect2D G3D::PosedModel2D::bounds (  )  const [pure virtual]

Conservative 2D rendering bounds.

Implemented in G3D::GConsole::PosedGConsole2D.

virtual float G3D::PosedModel2D::depth (  )  const [pure virtual]

2D objects are drawn from back to front, creating the perception of overlap.

0 = closest to the front, 1 = closest to the back.

Implemented in G3D::GConsole::PosedGConsole2D.

void G3D::ReferenceCountedObject::ReferenceCountedObject_zeroWeakPointers (  )  [inline, 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.

virtual void G3D::PosedModel2D::render ( RenderDevice rd  )  const [pure virtual]

Assumes that the RenderDevice is configured in in RenderDevice::push2D mode.

Implemented in G3D::GConsole::PosedGConsole2D.

static void G3D::PosedModel2D::sort ( Array< PosedModel2DRef > &  array  )  [static]

Sorts from farthest to nearest.

static void G3D::PosedModel2D::sortAndRender ( RenderDevice rd,
Array< PosedModel2DRef > &  array 
) [static]

Calls sort, RenderDevice::push2D, and then render on all elements.


Member Data Documentation

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.

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

Do not use or explicitly manipulate this value.


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:47 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo