◆ Quad
◆ BillboardBase()
C3D_API castor3d::BillboardBase::BillboardBase |
( |
Scene & |
scene, |
|
|
SceneNode * |
node, |
|
|
ashes::PipelineVertexInputStateCreateInfoPtr |
vertexLayout, |
|
|
uint32_t |
vertexStride, |
|
|
ashes::VertexBufferBasePtr |
vertexBuffer = nullptr |
|
) |
| |
Constructeur.
- Paramètres
-
[in] | scene | La scène parente. |
[in] | node | Le noeud de scène parent. |
[in] | vertexLayout | Le layout du tampon de sommets. |
[in] | vertexStride | Le stride du tampon de sommets. |
[in] | vertexBuffer | Le tampon de sommets. |
◆ ~BillboardBase()
C3D_API castor3d::BillboardBase::~BillboardBase |
( |
| ) |
|
◆ cleanup()
Nettoie les elements GPU.
- Paramètres
-
◆ getBillboardSize()
BillboardSize castor3d::BillboardBase::getBillboardSize |
( |
| ) |
const |
|
inline |
◆ getBillboardType()
BillboardType castor3d::BillboardBase::getBillboardType |
( |
| ) |
const |
|
inline |
◆ 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 |
◆ getMaterial()
MaterialSPtr castor3d::BillboardBase::getMaterial |
( |
| ) |
const |
|
inline |
◆ getNode()
SceneNode* castor3d::BillboardBase::getNode |
( |
| ) |
const |
|
inline |
◆ getParentScene() [1/2]
Scene const& castor3d::BillboardBase::getParentScene |
( |
| ) |
const |
|
inline |
◆ getParentScene() [2/2]
Scene& castor3d::BillboardBase::getParentScene |
( |
| ) |
|
|
inline |
◆ getProgramFlags()
◆ getVertexBuffer() [1/2]
ashes::VertexBufferBase const& castor3d::BillboardBase::getVertexBuffer |
( |
| ) |
const |
|
inline |
◆ getVertexBuffer() [2/2]
ashes::VertexBufferBase& castor3d::BillboardBase::getVertexBuffer |
( |
| ) |
|
|
inline |
◆ initialise()
C3D_API bool castor3d::BillboardBase::initialise |
( |
RenderDevice const & |
device, |
|
|
uint32_t |
count |
|
) |
| |
Initialise les éléments GPU.
- Paramètres
-
| device | Le device actuel. |
[in] | count | Le nombre d'éléments. |
- Renvoie
true
si tout s'est bien passé.
◆ 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 |
◆ setMaterial()
C3D_API void castor3d::BillboardBase::setMaterial |
( |
MaterialSPtr |
value | ) |
|
◆ setNode()
void castor3d::BillboardBase::setNode |
( |
SceneNode & |
value | ) |
|
|
inline |
◆ sortByDistance()
C3D_API void castor3d::BillboardBase::sortByDistance |
( |
castor::Point3f const & |
cameraPosition | ) |
|
Trie les points des plus éloignés aux plus proches de la caméra.
- Paramètres
-
[in] | cameraPosition | La position de la caméra, relative au billboard. |
◆ update()
Met à jour la passe de rendu, au niveau GPU.
- Paramètres
-
[in,out] | updater | Les données d'update. |
◆ 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_initialised
bool castor3d::BillboardBase::m_initialised { false } |
|
protected |
◆ m_material
MaterialWPtr castor3d::BillboardBase::m_material |
|
protected |
◆ m_needUpdate
bool castor3d::BillboardBase::m_needUpdate { true } |
|
protected |
◆ m_node
◆ m_quadBuffer
ashes::VertexBufferPtr< Quad > castor3d::BillboardBase::m_quadBuffer |
|
protected |
◆ m_quadLayout
ashes::PipelineVertexInputStateCreateInfoPtr castor3d::BillboardBase::m_quadLayout |
|
protected |
◆ m_scene
Scene& castor3d::BillboardBase::m_scene |
|
protected |
◆ m_vertexBuffer
ashes::VertexBufferBasePtr castor3d::BillboardBase::m_vertexBuffer |
|
protected |
◆ m_vertexLayout
ashes::PipelineVertexInputStateCreateInfoPtr castor3d::BillboardBase::m_vertexLayout |
|
protected |
◆ m_vertexStride
uint32_t castor3d::BillboardBase::m_vertexStride |
|
protected |
◆ onMaterialChanged
La documentation de cette classe a été générée à partir du fichier suivant :