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 | List of all members
G3D::Surface2D Class Referenceabstract

Primarily for use in GUI rendering. More...

Inherits G3D::ReferenceCountedObject.

Inherited by G3D::Discovery::Client::Display, G3D::GConsole::PosedGConsole2D, G3D::VideoRecordDialog::Recorder, and G3D::Widget.

Public Types

typedef shared_ptr< Surface2DRef
 

Public Member Functions

virtual Rect2D bounds () const =0
 Conservative 2D rendering bounds.
 
virtual float depth () const =0
 2D objects are drawn from back to front, creating the perception of overlap.
 
virtual void render (RenderDevice *rd) const =0
 Assumes that the RenderDevice is configured in in RenderDevice::push2D mode.
 

Static Public Member Functions

static void sort (Array< Surface2DRef > &array)
 Sorts from farthest to nearest.
 
static void sortAndRender (RenderDevice *rd, Array< Surface2DRef > &array)
 Calls sort, RenderDevice::push2D, and then render on all elements.
 

Detailed Description

Primarily for use in GUI rendering.

Member Typedef Documentation

typedef shared_ptr<Surface2D> G3D::Surface2D::Ref

Member Function Documentation

virtual Rect2D G3D::Surface2D::bounds ( ) const
pure virtual

Conservative 2D rendering bounds.

Implemented in G3D::GuiWindow, G3D::GConsole::PosedGConsole2D, G3D::VideoRecordDialog::Recorder, and G3D::Widget.

virtual float G3D::Surface2D::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::GuiWindow, G3D::GConsole::PosedGConsole2D, G3D::VideoRecordDialog::Recorder, and G3D::Widget.

virtual void G3D::Surface2D::render ( RenderDevice rd) const
pure virtual

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

Implemented in G3D::ThirdPersonManipulator, G3D::GuiWindow, G3D::VideoRecordDialog::Recorder, G3D::GConsole::PosedGConsole2D, G3D::Widget, and G3D::GuiMenu.

static void G3D::Surface2D::sort ( Array< Surface2DRef > &  array)
static

Sorts from farthest to nearest.

static void G3D::Surface2D::sortAndRender ( RenderDevice rd,
Array< Surface2DRef > &  array 
)
static

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


documentation generated on Sat Jan 12 2013 22:49:57 using doxygen 1.8.2