Represents a 2D sprite rendered in 3D space that always faces the camera, either fully (spherical) or around a fixed axis (cylindrical).
More...
|
| | SpriteBillboard (const std::string &name, bool visible, const std::filesystem::path &texturePath, const Math::Vector3 &pos, const Math::Vector3 &axis, bool spherical) |
| | Constructs a sprite billboard from a file path.
|
| | SpriteBillboard (const std::string &name="SpriteBillboard", bool visible=true, RefTexture2D resource=0, const Math::Vector3 &pos=Math::Vector3::Zero(), const Math::Vector3 &axis=Math::Vector3(0, 1, 0), bool spherical=false) |
| | Constructs a sprite billboard from a numerical asset identifier.
|
| Graphics::ITexture2D * | GetSpriteImage () |
| | Gets the underlying texture used by this billboard.
|
| void | SetSpriteImage (Graphics::ITexture2D *texture) |
| | Sets the underlying texture used by this billboard.
|
| void | Initialize () override |
| | Loads the texture asset and creates the billboard primitive.
|
| void | Load () override |
| | Loads the texture asset.
|
| void | Load (const std::filesystem::path &path) override |
| | Loads a texture from a specified path.
|
| void | Update () override |
| | Does nothing.
|
| void | Draw3D () override |
| | Draws the billboard.
|
| float | Intersects (const Math::Ray &r) const override |
| | Tests for intersections with the billboard.
|
| Reflection::UUID | GetUUID () const noexcept override |
| | Gets the UUID of the SpriteBillboard type.
|
| Gizmos::IGizmo * | GetGizmo () const noexcept override |
| | Gets the associated gizmo that allows rendering.
|
| | ~SpriteBillboard () override=default |
| Matrix4x4 | GetModelMatrix () |
| float? | Intersects (Ray ray) |
| virtual Math::Matrix4x4 | GetModelMatrix () const |
| | Gets the world matrix of this object, considering the entire hierarchy of parent objects.
|
| virtual Math::Matrix4x4 | GetLocalMatrix () const |
| | Gets the local transformation matrix of this object, considering only its own position, rotation, and scale.
|
| virtual float | Intersects (const Math::Ray &r) const =0 |
| | Returns the distance from the ray origin to the intersection point, or NaN if there is no intersection.
|
| virtual Math::BoundingBox | GetBoundingBox () const noexcept |
| | Gets the axis-aligned bounding box of this object in world space. Used for culling and intersections.
|
| | ~IObject3D ()=default |
| void | Enable () |
| void | Disable () |
| bool | Switch () |
| void | Show () |
| void | Hide () |
| bool | SwitchVisibility () |
| IObject | GetChild (int idx) |
| int | GetChildrenCount () |
| void | InternalInitialize (IGame *game) |
| | Called by ObjectsList to set the _game Game instance. If there are objects manually managed, this MUST be called before Initialize or EditorInitialize.
|
| Graphics::IGraphicsDevice * | GetGraphicsDeviceHandle () const noexcept |
| | Returns the graphics device handle associated with this object.
|
| IGame * | GetGame () const noexcept |
| | Gets the game that this object belongs to.
|
| IObject * | operator[] (size_t idxChild) const |
| | Returns the idx-th child of this object.
|
| IObject * | GetParent () const noexcept |
| | Returns the parent of this object.
|
| void | SetParent (IObject *newParent) noexcept |
| | Sets the parent of this object.
|
| bool | HasParent () const noexcept |
| | Checks if this object has a parent.
|
| size_t | GetChildrenCount () const noexcept |
| | Returns the number of children of this object.
|
| virtual void | Enable () |
| | Enables this object.
|
| virtual void | Disable () |
| | Disables this object.
|
| virtual bool | Switch () |
| | Switched the enable/disable state of this object.
|
| virtual void | Show () |
| | Shows this object.
|
| virtual void | Hide () |
| | Hides this object.
|
| virtual bool | SwitchVisibility () |
| | Switches the visibility state of this object.
|
| void | Uninitialize () override |
| | Called before the object has the destructor called.
|
| virtual | ~IObject () |
| void | Initialize () |
| virtual | ~IInitializable ()=default |
| void | Update () |
| virtual | ~IUpdateable ()=default |
| void | Load () |
| void | Load (string path) |
| virtual | ~ILoadable ()=default |
| void | Draw3D () |
| virtual | ~IDrawable3D ()=default |
|
| | IObject3D (const std::string &name="", bool enabled=false, bool visible=false, const Math::Vector3 &pos=Math::Vector3::Zero(), const Math::Vector3 &pivot=Math::Vector3::Zero(), const Math::Quaternion &rotation=Math::Quaternion(), const Math::Vector3 &scale=Math::Vector3::One()) |
| | IObject3D (const IObject3D &) noexcept=delete |
| IObject3D & | operator= (const IObject3D &) noexcept=delete |
| | IObject3D (IObject3D &&) noexcept=default |
| IObject3D & | operator= (IObject3D &&) noexcept=default |
| | IObject (const std::string &name="Empty", bool enabled=false, bool visible=false) |
| | Default constructor used for reflection. Objects created with this constructor are initially invalid, until internalInitialize() is called.
|
| | IObject (const IObject &) noexcept=delete |
| IObject & | operator= (const IObject &) noexcept=delete |
| | IObject (IObject &&) noexcept=default |
| IObject & | operator= (IObject &&) noexcept=default |
| | IInitializable ()=default |
| | IInitializable (const IInitializable &) noexcept=default |
| IInitializable & | operator= (const IInitializable &) noexcept=default |
| | IInitializable (IInitializable &&) noexcept=default |
| IInitializable & | operator= (IInitializable &&) noexcept=default |
| | IUpdateable ()=default |
| | IUpdateable (const IUpdateable &) noexcept=default |
| IUpdateable & | operator= (const IUpdateable &) noexcept=default |
| | IUpdateable (IUpdateable &&) noexcept=default |
| IUpdateable & | operator= (IUpdateable &&) noexcept=default |
| | ILoadable ()=default |
| | ILoadable (const ILoadable &) noexcept=default |
| ILoadable & | operator= (const ILoadable &) noexcept=default |
| | ILoadable (ILoadable &&) noexcept=default |
| ILoadable & | operator= (ILoadable &&) noexcept=default |
| | IDrawable3D ()=default |
| | IDrawable3D (const IDrawable3D &)=default |
| IDrawable3D & | operator= (const IDrawable3D &)=default |
| | IDrawable3D (IDrawable3D &&) noexcept=default |
| IDrawable3D & | operator= (IDrawable3D &&) noexcept=default |
| IGame * | _game = nullptr |
| Graphics::IGraphicsDevice * | _device = nullptr |
| IObject * | _parent = nullptr |
| Vector3 | Position [get, set] |
| Vector3 | RotationCenter [get, set] |
| Quaternion | Rotation [get, set] |
| Vector3 | Scale [get, set] |
| string | Name [get, set] |
| bool | Enabled [get, set] |
| | Is this object enabled?
|
| bool | Visible [get, set] |
| | Is this object visible?
|
| Reflection.UUID | UUID [get] |
| IGame | Game [get] |
| IGraphicsDevice | GraphicsDevice [get] |
| IGizmo | Gizmo [get] |
| ObjectCollection | Children [get] |
| IObject | Parent [get, set] |
| IntPtr | Handle [get] |
Represents a 2D sprite rendered in 3D space that always faces the camera, either fully (spherical) or around a fixed axis (cylindrical).