Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
Engine::Mesh Class Reference

This object is used to store data regarding a mesh. NOTE: only the resource manager is allowed to create a mesh. More...

#include <Mesh.hpp>

Public Member Functions

uint64_t GetVAO () const
 This method allows you to get the VAO of this mesh. More...
 
template<typename T >
GetVAO ()
 This method allows you to get the VAO of this mesh. More...
 
uint64_t GetVBO () const
 This method allows you to get the VBO of this mesh. More...
 
template<typename T >
GetVBO ()
 This method allows you to get the VBO of this mesh. More...
 
uint64_t GetEBO () const
 This method allows you to get the EBO of this mesh. More...
 
template<typename T >
GetEBO ()
 This method allows you to get the EBO of this mesh. More...
 
uint64_t GetUBO () const
 This method allows you to get the UBO of this mesh. More...
 
template<typename T >
GetUBO ()
 This method allows you to get the UBO of this mesh. More...
 
bool operator== (Mesh &other)
 This method allows you to compare a mesh with another mesh. More...
 
bool operator!= (Mesh &other)
 This method allows you to compare a mesh with another mesh. More...
 

Public Attributes

eastl::vector< Vertexvertices
 The vertices of this mesh. More...
 
eastl::vector< unsigned > indices
 The indices of this mesh. More...
 
eastl::string name
 The name of this mesh. More...
 

Protected Attributes

uint64_t vao
 
uint64_t vbo
 
uint64_t ebo
 
uint64_t ubo
 

Friends

class ResourceManager
 

Detailed Description

This object is used to store data regarding a mesh. NOTE: only the resource manager is allowed to create a mesh.

Definition at line 14 of file Mesh.hpp.

Member Function Documentation

uint64_t Engine::Mesh::GetEBO ( ) const

This method allows you to get the EBO of this mesh.

Returns
Returns the EBO as an uint64_t.

Definition at line 35 of file Mesh.cpp.

template<typename T >
T Engine::Mesh::GetEBO ( )

This method allows you to get the EBO of this mesh.

Returns
Returns the EBO as the defined type.

Definition at line 126 of file Mesh.hpp.

uint64_t Engine::Mesh::GetUBO ( ) const

This method allows you to get the UBO of this mesh.

Returns
Returns the UBO as an uint64_t.

Definition at line 40 of file Mesh.cpp.

template<typename T >
T Engine::Mesh::GetUBO ( )

This method allows you to get the UBO of this mesh.

Returns
Returns the UBO as the defined type.

Definition at line 132 of file Mesh.hpp.

uint64_t Engine::Mesh::GetVAO ( ) const

This method allows you to get the VAO of this mesh.

Returns
Returns the VAO as an uint64_t.

Definition at line 25 of file Mesh.cpp.

template<typename T >
T Engine::Mesh::GetVAO ( )

This method allows you to get the VAO of this mesh.

Returns
Returns the VAO as the defined type.

Definition at line 114 of file Mesh.hpp.

uint64_t Engine::Mesh::GetVBO ( ) const

This method allows you to get the VBO of this mesh.

Returns
Returns the VBO as an uint64_t.

Definition at line 30 of file Mesh.cpp.

template<typename T >
T Engine::Mesh::GetVBO ( )

This method allows you to get the VBO of this mesh.

Returns
Returns the VBO as the defined type.

Definition at line 120 of file Mesh.hpp.

bool Engine::Mesh::operator!= ( Mesh other)

This method allows you to compare a mesh with another mesh.

Parameters
otherThe mesh you want to compare against.
Returns
Returns true if the meshes are not equal.

Definition at line 74 of file Mesh.cpp.

bool Engine::Mesh::operator== ( Mesh other)

This method allows you to compare a mesh with another mesh.

Parameters
otherThe mesh you want to compare against.
Returns
Returns true if both meshes are equal.

Definition at line 45 of file Mesh.cpp.

Friends And Related Function Documentation

friend class ResourceManager
friend

Definition at line 94 of file Mesh.hpp.

Member Data Documentation

uint64_t Engine::Mesh::ebo
protected

Definition at line 110 of file Mesh.hpp.

eastl::vector<unsigned> Engine::Mesh::indices

The indices of this mesh.

Definition at line 24 of file Mesh.hpp.

eastl::string Engine::Mesh::name

The name of this mesh.

Definition at line 77 of file Mesh.hpp.

uint64_t Engine::Mesh::ubo
protected

Definition at line 110 of file Mesh.hpp.

uint64_t Engine::Mesh::vao
protected

Definition at line 110 of file Mesh.hpp.

uint64_t Engine::Mesh::vbo
protected

Definition at line 110 of file Mesh.hpp.

eastl::vector<Vertex> Engine::Mesh::vertices

The vertices of this mesh.

Definition at line 20 of file Mesh.hpp.


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