Leviathan  0.8.0.0
Leviathan game engine
Leviathan::BoxGeometry Class Reference

Entity has a box for geometry/model, possibly also physics. More...

#include <Components.h>

+ Inheritance diagram for Leviathan::BoxGeometry:

Public Member Functions

 BoxGeometry (const Float3 &size, const std::string &material)
 
 REFERENCE_HANDLE_UNCOUNTED_TYPE (BoxGeometry)
 
- Public Member Functions inherited from Leviathan::Component
 Component (COMPONENT_TYPE type)
 
 Component (const Component &)=delete
 
Componentoperator= (const Component &)=delete
 

Public Attributes

Float3 Sizes
 Size along the axises. More...
 
std::string Material
 Rendering surface material name. More...
 
Ogre::Item * GraphicalObject = nullptr
 Entity created from a box mesh. More...
 
- Public Attributes inherited from Leviathan::Component
bool Marked
 
const COMPONENT_TYPE Type
 Type of this component, used for network serialization. More...
 

Static Public Attributes

static constexpr auto TYPE = COMPONENT_TYPE::BoxGeometry
 

Detailed Description

Entity has a box for geometry/model, possibly also physics.

Definition at line 208 of file Components.h.

Constructor & Destructor Documentation

◆ BoxGeometry()

Leviathan::BoxGeometry::BoxGeometry ( const Float3 size,
const std::string &  material 
)
inline

Definition at line 210 of file Components.h.

210  :
211  Component(TYPE), Sizes(size), Material(material)
212  {}
static constexpr auto TYPE
Definition: Components.h:225
Component(COMPONENT_TYPE type)
Definition: Component.h:54
Float3 Sizes
Size along the axises.
Definition: Components.h:217
std::string Material
Rendering surface material name.
Definition: Components.h:220

Member Function Documentation

◆ REFERENCE_HANDLE_UNCOUNTED_TYPE()

Leviathan::BoxGeometry::REFERENCE_HANDLE_UNCOUNTED_TYPE ( BoxGeometry  )

Member Data Documentation

◆ GraphicalObject

Ogre::Item* Leviathan::BoxGeometry::GraphicalObject = nullptr

Entity created from a box mesh.

Definition at line 223 of file Components.h.

◆ Material

std::string Leviathan::BoxGeometry::Material

Rendering surface material name.

Definition at line 220 of file Components.h.

◆ Sizes

Float3 Leviathan::BoxGeometry::Sizes

Size along the axises.

Definition at line 217 of file Components.h.

◆ TYPE

constexpr auto Leviathan::BoxGeometry::TYPE = COMPONENT_TYPE::BoxGeometry
static

Definition at line 225 of file Components.h.


The documentation for this class was generated from the following file: