#include <BillboardList.hpp>
◆ Quad
◆ BillboardBase()
| C3D_API castor3d::BillboardBase::BillboardBase |
( |
Scene & |
scene, |
|
|
SceneNode * |
node, |
|
|
ashes::PipelineVertexInputStateCreateInfoPtr |
vertexLayout, |
|
|
uint32_t |
vertexStride, |
|
|
GpuBufferOffsetT< uint8_t > |
vertexBuffer = {} |
|
) |
| |
Constructor.
- Parameters
-
| [in] | scene | The parent scene. |
| [in] | node | The parent scene node. |
| [in] | vertexLayout | The layout for the vertex buffer. |
| [in] | vertexStride | The vertex stride. |
| [in] | vertexBuffer | The vertex buffer. |
◆ ~BillboardBase()
| C3D_API castor3d::BillboardBase::~BillboardBase |
( |
| ) |
|
◆ cleanup()
Cleans GPU side elements up.
- Parameters
-
| device | The current device. |
◆ getBillboardSize()
| BillboardSize castor3d::BillboardBase::getBillboardSize |
( |
| ) |
const |
|
inline |
◆ getBillboardType()
| BillboardType castor3d::BillboardBase::getBillboardType |
( |
| ) |
const |
|
inline |
◆ getBufferOffsets()
◆ getCount()
| uint32_t castor3d::BillboardBase::getCount |
( |
| ) |
const |
|
inline |
◆ getDimensions()
| castor::Point2f const & castor3d::BillboardBase::getDimensions |
( |
| ) |
const |
|
inline |
◆ getGeometryBuffers()
| GeometryBuffers const & castor3d::BillboardBase::getGeometryBuffers |
( |
| ) |
const |
|
inline |
◆ getId()
| C3D_API uint32_t castor3d::BillboardBase::getId |
( |
Pass const & |
pass | ) |
const |
◆ getMaterial()
| MaterialRPtr castor3d::BillboardBase::getMaterial |
( |
| ) |
const |
|
inline |
◆ getNode()
| SceneNode * castor3d::BillboardBase::getNode |
( |
| ) |
const |
|
inline |
◆ getParentScene() [1/2]
| Scene & castor3d::BillboardBase::getParentScene |
( |
| ) |
|
|
inline |
◆ getParentScene() [2/2]
| Scene const & castor3d::BillboardBase::getParentScene |
( |
| ) |
const |
|
inline |
◆ getProgramFlags()
◆ getVertexBuffer() [1/2]
◆ getVertexBuffer() [2/2]
| GpuBufferOffsetT< uint8_t > const & castor3d::BillboardBase::getVertexBuffer |
( |
| ) |
const |
|
inline |
◆ initialise()
| C3D_API bool castor3d::BillboardBase::initialise |
( |
RenderDevice const & |
device, |
|
|
uint32_t |
count |
|
) |
| |
Initialises GPU side elements.
- Parameters
-
| device | The current device. |
| [in] | count | The elements count. |
- Returns
true if all is OK.
◆ isInitialised()
| bool castor3d::BillboardBase::isInitialised |
( |
| ) |
const |
|
inline |
◆ setBillboardSize()
| void castor3d::BillboardBase::setBillboardSize |
( |
BillboardSize |
value | ) |
|
|
inline |
◆ setBillboardType()
| void castor3d::BillboardBase::setBillboardType |
( |
BillboardType |
value | ) |
|
|
inline |
◆ setCenterOffset()
| void castor3d::BillboardBase::setCenterOffset |
( |
uint32_t |
value | ) |
|
|
inline |
◆ setCount()
| C3D_API void castor3d::BillboardBase::setCount |
( |
uint32_t |
value | ) |
|
◆ setDimensions()
| void castor3d::BillboardBase::setDimensions |
( |
castor::Point2f const & |
value | ) |
|
|
inline |
◆ setId()
| C3D_API void castor3d::BillboardBase::setId |
( |
Pass const & |
pass, |
|
|
uint32_t |
id |
|
) |
| |
◆ setMaterial()
| C3D_API void castor3d::BillboardBase::setMaterial |
( |
MaterialRPtr |
value | ) |
|
◆ setNode()
| void castor3d::BillboardBase::setNode |
( |
SceneNode & |
value | ) |
|
|
inline |
◆ sortByDistance()
| C3D_API void castor3d::BillboardBase::sortByDistance |
( |
castor::Point3f const & |
cameraPosition | ) |
|
Sorts the points from farthest to nearest from the camera.
- Parameters
-
| [in] | cameraPosition | The camera position, relative to billboard. |
◆ update()
Updates the render pass, GPU wise.
- Parameters
-
| [in,out] | updater | The update data. |
◆ m_billboardSize
◆ m_billboardType
◆ m_cameraPosition
| castor::Point3f castor3d::BillboardBase::m_cameraPosition |
|
protected |
◆ m_centerOffset
| uint32_t castor3d::BillboardBase::m_centerOffset { 0u } |
|
protected |
◆ m_count
| uint32_t castor3d::BillboardBase::m_count { 0u } |
|
protected |
◆ m_dimensions
| castor::Point2f castor3d::BillboardBase::m_dimensions |
|
protected |
◆ m_geometryBuffers
◆ m_ids
| std::unordered_map< Pass const *, uint32_t > castor3d::BillboardBase::m_ids {} |
|
protected |
◆ m_initialised
| bool castor3d::BillboardBase::m_initialised { false } |
|
protected |
◆ m_material
| MaterialRPtr castor3d::BillboardBase::m_material |
|
protected |
◆ m_needUpdate
| bool castor3d::BillboardBase::m_needUpdate { true } |
|
protected |
◆ m_node
◆ m_quadLayout
| ashes::PipelineVertexInputStateCreateInfoPtr castor3d::BillboardBase::m_quadLayout |
|
protected |
◆ m_scene
| Scene& castor3d::BillboardBase::m_scene |
|
protected |
◆ m_vertexBuffer
◆ m_vertexLayout
| ashes::PipelineVertexInputStateCreateInfoPtr castor3d::BillboardBase::m_vertexLayout |
|
protected |
◆ m_vertexStride
| uint32_t castor3d::BillboardBase::m_vertexStride |
|
protected |
◆ onMaterialChanged
The documentation for this class was generated from the following file: