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)
- 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 BoxMaterial
 Rendering surface material name. More...
- Public Attributes inherited from Leviathan::Component
bool Marked
 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 212 of file Components.h.

Constructor & Destructor Documentation

◆ BoxGeometry()

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

Definition at line 214 of file Components.h.

214  :
215  Component(TYPE), Sizes(size), BoxMaterial(material)
216  {}
static constexpr auto TYPE
Definition: Components.h:229
Component(COMPONENT_TYPE type)
Definition: Component.h:54
Float3 Sizes
Size along the axises.
Definition: Components.h:221
std::string BoxMaterial
Rendering surface material name.
Definition: Components.h:224

Member Function Documentation


Leviathan::BoxGeometry::REFERENCE_HANDLE_UNCOUNTED_TYPE ( BoxGeometry  )

Member Data Documentation

◆ BoxMaterial

std::string Leviathan::BoxGeometry::BoxMaterial

Rendering surface material name.

Definition at line 224 of file Components.h.

◆ Sizes

Float3 Leviathan::BoxGeometry::Sizes

Size along the axises.

Definition at line 221 of file Components.h.


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

Definition at line 229 of file Components.h.

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