Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::CommonMesh Class Reference

Base Mesh structure, this one doesn't relies on vertices. More...

#include <OxygenEngine/scene/mesh.h>

+ Inheritance diagram for oe::scene::CommonMesh:
+ Collaboration diagram for oe::scene::CommonMesh:

Public Member Functions

constexpr uint32_t getSubMeshCount () const noexcept
 
constexpr const std::vector< index_t > & getIndices (uint32_t sub_mesh=0) const noexcept
 
constexpr const AABBgetBoundingBox () const noexcept
 
constexpr void flipFaces () noexcept
 
constexpr const std::vector< glm::uvec3 > getTriangles (uint32_t sub_mesh=0) const
 

Protected Attributes

std::vector< std::vector< index_t > > _indices
 
AABB _aabb
 

Detailed Description

Base Mesh structure, this one doesn't relies on vertices.

Member Function Documentation

◆ getTriangles()

constexpr const std::vector< glm::uvec3 > oe::scene::CommonMesh::getTriangles ( uint32_t  sub_mesh = 0) const
inlineconstexpr

Get groups of 3 indices that form triangles


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