| Support Forum Library Source SourceForge Page G3D Web Page |
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< Surface2D > | Ref |
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. | |
Primarily for use in GUI rendering.
| typedef shared_ptr<Surface2D> G3D::Surface2D::Ref |
|
pure virtual |
Conservative 2D rendering bounds.
Implemented in G3D::GuiWindow, G3D::GConsole::PosedGConsole2D, G3D::VideoRecordDialog::Recorder, and G3D::Widget.
|
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.
|
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 |
Sorts from farthest to nearest.
|
static |
Calls sort, RenderDevice::push2D, and then render on all elements.
1.8.2