Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvRendering::Resources::Mesh Class Reference

#include <Mesh.h>

Inheritance diagram for OvRendering::Resources::Mesh:
OvRendering::Resources::IMesh

Public Member Functions

 Mesh (const std::vector< Geometry::Vertex > &p_vertices, const std::vector< uint32_t > &p_indices, uint32_t p_materialIndex)
 
virtual void Bind () override
 
virtual void Unbind () override
 
virtual uint32_t GetVertexCount () override
 
virtual uint32_t GetIndexCount () override
 
uint32_t GetMaterialIndex () const
 
const OvRendering::Geometry::BoundingSphereGetBoundingSphere () const
 

Detailed Description

Standard mesh of OvRendering

Constructor & Destructor Documentation

◆ Mesh()

OvRendering::Resources::Mesh::Mesh ( const std::vector< Geometry::Vertex > &  p_vertices,
const std::vector< uint32_t > &  p_indices,
uint32_t  p_materialIndex 
)

Create a mesh with the given vertices, indices and material index

Parameters
p_vertices
p_indices
p_materialIndex@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

Member Function Documentation

◆ Bind()

void OvRendering::Resources::Mesh::Bind ( )
overridevirtual

Bind the mesh (Actually bind its VAO)

Implements OvRendering::Resources::IMesh.

◆ GetBoundingSphere()

const OvRendering::Geometry::BoundingSphere & OvRendering::Resources::Mesh::GetBoundingSphere ( ) const

Returns the bounding sphere of the mesh

◆ GetIndexCount()

uint32_t OvRendering::Resources::Mesh::GetIndexCount ( )
overridevirtual

Returns the number of indices

Implements OvRendering::Resources::IMesh.

◆ GetMaterialIndex()

uint32_t OvRendering::Resources::Mesh::GetMaterialIndex ( ) const

Returns the material index of the mesh

◆ GetVertexCount()

uint32_t OvRendering::Resources::Mesh::GetVertexCount ( )
overridevirtual

Returns the number of vertices

Implements OvRendering::Resources::IMesh.

◆ Unbind()

void OvRendering::Resources::Mesh::Unbind ( )
overridevirtual

Unbind the mesh (Actually unbind its VAO)

Implements OvRendering::Resources::IMesh.


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