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:
[legend]
Collaboration diagram for oe::scene::CommonMesh:
[legend]

Public Member Functions

uint32_t getSubMeshCount () const
 
const std::vector< index_t > & getIndices (uint32_t sub_mesh=0) const
 
const AABBgetBoundingBox () const
 
void flipFaces ()
 
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()

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

Get groups of 3 indices that form triangles


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