![]() |
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
|
Class representing a world object. More...
#include <world.h>
Public Member Functions | |
BlamWorldObject (BlamWorldState *_world, BlamWorldObjectType _type) | |
Creates a new world object. More... | |
virtual void | Render () |
Renders the object to the screen. More... | |
Public Attributes | |
std::string | name = "unnamed" |
The unique name of this object. More... | |
std::string | description = "" |
An optional description of this object. More... | |
BlamWorldState * | world = nullptr |
The world state this object belongs to. More... | |
BlamVector3 | position = { 0, 0, 0 } |
The position of this object in world space. More... | |
BlamVector3 | rotation = { 0, 0, 0 } |
The rotation of this object in world space. More... | |
BlamVector3 | scale = { 1, 1, 1 } |
The scale/size of the object. More... | |
BlamWorldObjectType | type = BlamWorldObjectType::Unspecified |
The type of this world object. More... | |
Class representing a world object.
The world object will have several properties that can be modified on a per-object basis, such as a custom name, position, and rotation.
BlamWorldObject::BlamWorldObject | ( | BlamWorldState * | _world, |
BlamWorldObjectType | _type | ||
) |
Creates a new world object.
_world | - The world state this object should belong to. |
_type | - The type of world object being created. |
|
virtual |
Renders the object to the screen.
Reimplemented in BlamWorldObject_Primitive, and BlamWorldObject_Tag.
std::string BlamWorldObject::description = "" |
An optional description of this object.
std::string BlamWorldObject::name = "unnamed" |
The unique name of this object.
BlamVector3 BlamWorldObject::position = { 0, 0, 0 } |
The position of this object in world space.
BlamVector3 BlamWorldObject::rotation = { 0, 0, 0 } |
The rotation of this object in world space.
BlamVector3 BlamWorldObject::scale = { 1, 1, 1 } |
The scale/size of the object.
BlamWorldObjectType BlamWorldObject::type = BlamWorldObjectType::Unspecified |
The type of this world object.
BlamWorldState* BlamWorldObject::world = nullptr |
The world state this object belongs to.