nCine::Object class

Base class of nCine objects.

Derived classes

class AudioBuffer
OpenAL audio buffer.
class IAudioPlayer
Audio player interface.
class SceneNode
Base class for the transformation nodes hierarchy.
class Shader
Shader.
class Texture
Texture.

Public types

enum class ObjectType { Base = 0, Texture, Shader, SceneNode, Sprite, MeshSprite, AnimatedSprite, Particle, ParticleSystem, AudioBuffer, AudioBufferPlayer, AudioStreamPlayer }
Object types.

Public static functions

static auto sType() -> ObjectType
Static method to return class type.

Constructors, destructors, conversion operators

Object(ObjectType type) explicit
Constructs an object with a specified type and adds it to the index.
~Object() pure virtual
Removes an object from the index and then destroys it.
Object(Object&& other) noexcept
Object(const Object& other) protected
Protected copy constructor used to clone objects.

Public functions

auto operator=(Object&& other) -> Object& noexcept
auto id() const -> unsigned int
Returns the object identification number.
auto type() const -> ObjectType
Returns the object type (RTTI)

Protected variables

ObjectType _type
Object type.