![]() |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
#include <world_objects.h>
Public Member Functions | |
BlamWorldObject_PrimitiveLine (BlamWorldState *_world) | |
BlamWorldObject_PrimitiveLine (BlamWorldObject *_parent) | |
void | SetStartPoint (BlamVector3 point) |
void | SetEndPoint (BlamVector3 point) |
void | SetDirection (BlamVector3 direction) |
void | SetLength (float length) |
BlamVector3 | GetStartPoint () |
BlamVector3 | GetEndPoint () |
BlamVector3 | GetDirection () |
float | GetLength () |
void | Render () override |
Renders the object to the screen. More... | |
void | ShowImGuiEditControls () override |
![]() | |
BlamWorldObject_Primitive (BlamWorldObjectType _type, BlamWorldState *_world) | |
Creates a new primitive world object. More... | |
BlamWorldObject_Primitive (BlamWorldObjectType _type, BlamWorldObject *_parent) | |
~BlamWorldObject_Primitive () | |
void | SetCustomDatabablock (Ogre::HlmsDatablock *datablock, bool wireframe) |
void | MarkForRebuild () |
void | SetDepthCheckEnabled (bool enable) |
void | SetQueryMask (uint32_t mask) |
![]() | |
BlamWorldObject (BlamWorldState *_world, BlamWorldObjectType _type) | |
Creates a new world object. More... | |
BlamWorldObject (BlamWorldObject *_parent, BlamWorldObjectType _type) | |
virtual | ~BlamWorldObject () |
uint64_t | GetID () |
Ogre::SceneNode * | GetParentSceneNode () |
BlamVector3 | GetRotation () |
void | SetRotation (BlamVector3 _rotation, bool local_axes=false) |
void | SetRotation (float x, float y, float z, bool local_axes=false) |
void | SetRotation (BlamAxis axis, float amount, bool local_axes=false) |
BlamVector3 | GetPosition () |
void | SetPosition (BlamVector3 position) |
void | SetPosition (float x, float y, float z) |
BlamVector3 | GetScale () |
void | SetScale (BlamVector3 scale) |
void | SetScale (float x, float y, float z) |
BlamVector3 | GetScaleModifier () |
void | SetScaleModifier (BlamVector3 scale) |
void | SetScaleModifier (float x, float y, float z) |
bool | GetHidden () |
void | SetHidden (bool hidden) |
std::string | GetName () |
void | SetName (std::string name) |
virtual void | OnMouseHoverEnter () |
virtual void | OnMouseHoverExit () |
virtual void | OnMouseMove (MouseMoveEvent *event) |
virtual void | OnMouseClick (MouseClickEvent *event) |
virtual void | OnMouseUnclick (MouseUnclickEvent *event) |
Additional Inherited Members | |
![]() | |
Ogre::ManualObject * | manual_object = nullptr |
Ogre::HlmsDatablock * | datablock = nullptr |
Ogre::HlmsDatablock * | datablock_wireframe = nullptr |
BlamColor | color = BlamColor(255, 255, 255) |
BlamColor | color_wireframe = BlamColor(255, 255, 255) |
Blam3DPrimitiveRenderMode | render_mode = Blam3DPrimitiveRenderMode::Solid |
bool | show_backfaces = false |
bool | cast_shadows = true |
![]() | |
uint64_t | id = 0 |
A unique identifier for this object. Used to identify objects during runtime. More... | |
std::string | description = "" |
An optional description of this object. More... | |
int | editor_folder_id = 0 |
The editor folder that this object exists within. Only used within the editing kit. More... | |
BlamWorldState * | world = nullptr |
The world state this object belongs to. More... | |
BlamWorldObject * | parent = nullptr |
BlamWorldObjectType | type = BlamWorldObjectType::Unspecified |
The type of this world object. More... | |
Ogre::SceneNode * | scene_node = nullptr |
![]() | |
bool | custom_datablock = false |
bool | custom_wireframe_datablock = false |
BlamWorldObject_PrimitiveLine::BlamWorldObject_PrimitiveLine | ( | BlamWorldState * | _world | ) |
BlamWorldObject_PrimitiveLine::BlamWorldObject_PrimitiveLine | ( | BlamWorldObject * | _parent | ) |
BlamVector3 BlamWorldObject_PrimitiveLine::GetDirection | ( | ) |
BlamVector3 BlamWorldObject_PrimitiveLine::GetEndPoint | ( | ) |
float BlamWorldObject_PrimitiveLine::GetLength | ( | ) |
BlamVector3 BlamWorldObject_PrimitiveLine::GetStartPoint | ( | ) |
|
overridevirtual |
Renders the object to the screen.
Reimplemented from BlamWorldObject_Primitive.
void BlamWorldObject_PrimitiveLine::SetDirection | ( | BlamVector3 | direction | ) |
void BlamWorldObject_PrimitiveLine::SetEndPoint | ( | BlamVector3 | point | ) |
void BlamWorldObject_PrimitiveLine::SetLength | ( | float | length | ) |
void BlamWorldObject_PrimitiveLine::SetStartPoint | ( | BlamVector3 | point | ) |
|
overridevirtual |