aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorcutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475>2022-02-08 21:00:12 +0000
committersfan5 <sfan5@live.de>2022-02-09 19:09:04 +0100
commit4fb1c55ec53ef32654fc7cfe60419e93bc3072b8 (patch)
tree11aa21b90293548c91248618f78bf5284caf1f74 /source
parent7fb36849c7a1a6384de13206b9096945ce02bec9 (diff)
downloadirrlicht-4fb1c55ec53ef32654fc7cfe60419e93bc3072b8.tar.xz
IBillboardSceneNode got functions to access meshbuffers.
So uv-coordinates can now be modified directly (previously only possible via texture matrix). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6299 dfc29bdd-3216-0410-991c-e03cc46cb475
Diffstat (limited to 'source')
-rw-r--r--source/Irrlicht/CBillboardSceneNode.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/Irrlicht/CBillboardSceneNode.h b/source/Irrlicht/CBillboardSceneNode.h
index 98e965b..4f3ece2 100644
--- a/source/Irrlicht/CBillboardSceneNode.h
+++ b/source/Irrlicht/CBillboardSceneNode.h
@@ -72,6 +72,20 @@ public:
//! Get the real boundingbox used by the billboard (which depends on the active camera)
virtual const core::aabbox3d<f32>& getTransformedBillboardBoundingBox(const irr::scene::ICameraSceneNode* camera) _IRR_OVERRIDE_;
+ //! Get the amount of mesh buffers.
+ virtual u32 getMeshBufferCount() const
+ {
+ return Buffer ? 1 : 0;
+ }
+
+ //! Get pointer to the mesh buffer.
+ virtual IMeshBuffer* getMeshBuffer(u32 nr) const
+ {
+ if ( nr == 0 )
+ return Buffer;
+ return 0;
+ }
+
//! Returns type of the scene node
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_BILLBOARD; }