5#ifndef NIRT_I_BILLBOARD_SCENE_NODE_HPP_INCLUDED
6#define NIRT_I_BILLBOARD_SCENE_NODE_HPP_INCLUDED
8#include <nirtcpp/core/engine/ISceneNode.hpp>
14 class ICameraSceneNode;
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
A billboard scene node.
Definition IBillboardSceneNode.hpp:23
virtual void setColor(const video::SColor &topColor, const video::SColor &bottomColor)=0
Set the color of the top and bottom vertices of the billboard.
virtual void getColor(video::SColor &topColor, video::SColor &bottomColor) const =0
Gets the color of the top and bottom vertices of the billboard.
IBillboardSceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0))
Constructor.
Definition IBillboardSceneNode.hpp:27
virtual const core::aabbox3d< f32 > & getTransformedBillboardBoundingBox(const nirt::scene::ICameraSceneNode *camera)=0
Get the real boundingbox used by the billboard, which can depend on the active camera.
virtual void setSize(f32 height, f32 bottomEdgeWidth, f32 topEdgeWidth)=0
Sets the size of the billboard with independent widths of the bottom and top edges.
virtual const core::dimension2d< f32 > & getSize() const =0
Returns the size of the billboard.
virtual u32 getMeshBufferCount() const =0
Get the amount of mesh buffers.
virtual void setColor(const video::SColor &overallColor)=0
Set the color of all vertices of the billboard.
virtual void setSize(const core::dimension2d< f32 > &size)=0
Sets the size of the billboard, making it rectangular.
virtual IMeshBuffer * getMeshBuffer(u32 nr) const =0
Get pointer to a mesh buffer.
virtual void getSize(f32 &height, f32 &bottomEdgeWidth, f32 &topEdgeWidth) const =0
Gets the size of the the billboard and handles independent top and bottom edge widths correctly.
Scene Node which is a (controllable) camera.
Definition ICameraSceneNode.hpp:24
Class for holding a mesh with a single material.
Definition IMeshBuffer.hpp:41
The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff.
Definition ISceneManager.hpp:160
Scene node interface.
Definition ISceneNode.hpp:43
Class representing a 32 bit ARGB color.
Definition SColor.hpp:317
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110