![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
#include <PanelOverlay.hpp>


Public Member Functions | |
| C3D_API | PanelOverlay () |
| Constructor. More... | |
| C3D_API void | accept (OverlayVisitor &visitor) const override |
| Draws the overlay. More... | |
| OverlayCategory::VertexArray const & | getPanelVertex () const |
| Retrieves the panel vertex buffer. More... | |
Public Member Functions inherited from castor3d::OverlayCategory | |
| CU_DeclareVector (Vertex, Vertex) | |
| C3D_API | OverlayCategory (OverlayType type) |
| Constructor. More... | |
| virtual C3D_API | ~OverlayCategory () |
| Destructor. More... | |
| C3D_API void | update (OverlayRenderer const &renderer) |
| Updates the overlay position, size... More... | |
| virtual C3D_API void | accept (OverlayVisitor &renderer) const =0 |
| Draws the overlay. More... | |
| virtual C3D_API void | setMaterial (MaterialRPtr material) |
| Sets the material. More... | |
| C3D_API castor::String const & | getOverlayName () const |
| Retrieves the overlay name. More... | |
| C3D_API castor::Position | getAbsolutePosition (castor::Size const &size) const |
| Retrieves the absolute overlay position, in pixels. More... | |
| C3D_API castor::Size | getAbsoluteSize (castor::Size const &size) const |
| Retrieves the absolute overlay size, in pixels. More... | |
| C3D_API castor::Point2f | getRenderRatio (castor::Size const &size) const |
| C3D_API castor::Point2d | getAbsolutePosition () const |
| Retrieves the absolute overlay position. More... | |
| C3D_API castor::Point2d | getAbsoluteSize () const |
| Retrieves the absolute overlay size. More... | |
| C3D_API bool | isSizeChanged () const |
| C3D_API bool | isPositionChanged () const |
| virtual C3D_API bool | isChanged () const |
| void | setPosition (castor::Point2d const &position) |
| Sets the overlay position. More... | |
| void | setSize (castor::Point2d const &size) |
| Sets the overlay size. More... | |
| castor::Point2d const & | getSize () const |
| Retrieves the overlay size. More... | |
| castor::Point2d const & | getPosition () const |
| Retrieves the overlay position. More... | |
| castor::Size const & | getPixelSize () const |
| Retrieves the overlay size. More... | |
| castor::Position const & | getPixelPosition () const |
| Retrieves the overlay position. More... | |
| castor::Point2d & | getSize () |
| Retrieves the overlay size. More... | |
| castor::Point2d & | getPosition () |
| Retrieves the overlay position. More... | |
| castor::Size & | getPixelSize () |
| Retrieves the overlay size. More... | |
| castor::Position & | getPixelPosition () |
| Retrieves the overlay position. More... | |
| OverlayType | getType () const |
| Retrieves the overlay type. More... | |
| bool | isVisible () const |
| Retrieves the visibility status. More... | |
| MaterialRPtr | getMaterial () const |
| Retrieves the material. More... | |
| int | getIndex () const |
| Retrieves the index. More... | |
| int | getLevel () const |
| Retrieves the level. More... | |
| Overlay const & | getOverlay () const |
| Retrieves the overlay. More... | |
| Overlay & | getOverlay () |
| Retrieves the overlay. More... | |
| void | setOverlay (Overlay *value) |
| Sets the overlay. More... | |
| void | setVisible (bool value) |
| Sets the visibility status. More... | |
| void | setPixelPosition (castor::Position const &value) |
| Sets the overlay position. More... | |
| void | setPixelSize (castor::Size const &value) |
| Sets the overlay size. More... | |
| void | setOrder (int index, int level) |
| Sets the overlay order. More... | |
| void | setUV (castor::Point4d const &value) |
| Sets the overlay UV. More... | |
| castor::Point4d const & | getUV () const |
| Retrieves the overlay UV. More... | |
Static Public Member Functions | |
| static C3D_API OverlayCategorySPtr | create () |
| Creation function, used by the factory. More... | |
Protected Member Functions | |
| C3D_API void | doUpdateBuffer (castor::Size const &size) override |
| Updates the vertex buffer. More... | |
Protected Member Functions inherited from castor3d::OverlayCategory | |
| castor::Point2d | doGetTotalSize (OverlayRenderer const &renderer) const |
| virtual void | doUpdatePosition (OverlayRenderer const &renderer) |
| Updates the overlay position, taking care of wanted pixel position. More... | |
| virtual void | doUpdateSize (OverlayRenderer const &renderer) |
| Updates the overlay size, taking care of wanted pixel size. More... | |
| virtual void | doUpdate (OverlayRenderer const &renderer) |
| Updates the overlay position, size... More... | |
| virtual void | doUpdateBuffer (castor::Size const &size)=0 |
| Updates the vertex buffer. More... | |
Protected Attributes | |
| VertexArray | m_arrayVtx |
Protected Attributes inherited from castor3d::OverlayCategory | |
| Overlay * | m_pOverlay { nullptr } |
| castor::Point2d | m_position |
| castor::Point2d | m_ptSize |
| castor::Position | m_pxPosition |
| castor::Size | m_size |
| castor::Size | m_computeSize |
| bool | m_visible { true } |
| MaterialRPtr | m_pMaterial |
| int | m_index { 0 } |
| int | m_level { 0 } |
| castor::String | m_strMatName |
| OverlayType | m_type |
| bool | m_sizeChanged { true } |
| bool | m_positionChanged { true } |
| castor::Point4d | m_uv { 0.0, 0.0, 1.0, 1.0 } |
| C3D_API castor3d::PanelOverlay::PanelOverlay | ( | ) |
Constructor.
|
overridevirtual |
Draws the overlay.
Implements castor3d::OverlayCategory.
|
static |
Creation function, used by the factory.
|
overrideprotectedvirtual |
Updates the vertex buffer.
| [in] | size | The render target size. |
Implements castor3d::OverlayCategory.
|
inline |
|
protected |
The vertex buffer data.
Referenced by getPanelVertex().