Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Object::Resource::Shape Struct Reference

Shape structure. More...

#include <Shape.hpp>

Public Member Functions

 Shape ()=default
 ~Shape ()=default
 Shape (Shape &&other)=default
Shapeoperator= (Shape &&other)=default
 Shape (const Shape &other)=default
Shapeoperator= (const Shape &other)=default
Component::MeshGetMesh ()
 Get the Mesh object of the shape.
const Component::MeshGetMesh () const
 Get the Mesh object of the shape (const version).
Component::MaterialGetMaterial ()
 Get the Material object of the shape.
const Component::MaterialGetMaterial () const
 Get the Material object of the shape (const version).
const std::string & GetName () const
 Get the name of the shape.

Public Attributes

Component::Mesh mesh {}
Component::Material material {}
std::string name {}

Detailed Description

Shape structure.

This structure is used to represent a shape. It contains the mesh and material of the shape.

Constructor & Destructor Documentation

◆ Shape() [1/3]

Object::Resource::Shape::Shape ( )
default

◆ ~Shape()

Object::Resource::Shape::~Shape ( )
default

◆ Shape() [2/3]

Object::Resource::Shape::Shape ( Shape && other)
default

◆ Shape() [3/3]

Object::Resource::Shape::Shape ( const Shape & other)
default

Member Function Documentation

◆ GetMaterial() [1/2]

Component::Material & Object::Resource::Shape::GetMaterial ( )
inline

Get the Material object of the shape.

Returns
Component::Material& Reference to the material object.

◆ GetMaterial() [2/2]

const Component::Material & Object::Resource::Shape::GetMaterial ( ) const
inline

Get the Material object of the shape (const version).

Returns
const Component::Material& Const reference to the material object.

◆ GetMesh() [1/2]

Component::Mesh & Object::Resource::Shape::GetMesh ( )
inline

Get the Mesh object of the shape.

Returns
Component::Mesh& Reference to the mesh object.

◆ GetMesh() [2/2]

const Component::Mesh & Object::Resource::Shape::GetMesh ( ) const
inline

Get the Mesh object of the shape (const version).

Returns
const Component::Mesh& Const reference to the mesh object.

◆ GetName()

const std::string & Object::Resource::Shape::GetName ( ) const
inline

Get the name of the shape.

Returns
const std::string& Const reference to the name string.

◆ operator=() [1/2]

Shape & Object::Resource::Shape::operator= ( const Shape & other)
default

◆ operator=() [2/2]

Shape & Object::Resource::Shape::operator= ( Shape && other)
default

Member Data Documentation

◆ material

Component::Material Object::Resource::Shape::material {}

◆ mesh

Component::Mesh Object::Resource::Shape::mesh {}

◆ name

std::string Object::Resource::Shape::name {}

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