Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::primitive::Plane< VertexType > Struct Template Reference

A plane mesh from (-0.5f, -0.5f) to (0.5f, 0.5f) facing Y upward so you can use it as a simple floor. More...

#include <OxygenEngine/scene/primitive/plane.h>

+ Inheritance diagram for oe::scene::primitive::Plane< VertexType >:
+ Collaboration diagram for oe::scene::primitive::Plane< VertexType >:

Public Member Functions

 Plane ()
 
- Public Member Functions inherited from oe::scene::Mesh< VertexType, IndexType, MeshSettingsType >
constexpr AABB getPrimitiveBoundingBox (size_t primitive) const noexcept
 Generate bounding box for the specified primitive.
 
template<typename F >
constexpr AABB getPrimitiveBoundingBox (size_t primitive, F &&predicate) const noexcept
 Generate bounding box for the specified primitive containing vertices matching a predicate.
 
constexpr AABB getBoundingBox () const noexcept
 Generate englobing mesh bounding box.
 
constexpr void flipFaces ()
 
constexpr const std::vector< glm::uvec3 > getTriangles () const
 Get groups of 3 indices that form triangles.
 
constexpr void generateNormals ()
 Generate mesh normals from vertices positions.
 
constexpr void generateTangents ()
 Compute Tangents using mikkTSpace.
 

Additional Inherited Members

- Public Types inherited from oe::scene::Mesh< VertexType, IndexType, MeshSettingsType >
using vertex_type = VertexType
 
using index_type = IndexType
 
using VertexContainerType = MeshSettingsType::VertexContainerType
 
using IndexContainerType = MeshSettingsType::IndexContainerType
 
- Static Public Member Functions inherited from oe::scene::Mesh< VertexType, IndexType, MeshSettingsType >
template<typename PrimitiveType >
static Mesh generateFromPrimitives (std::span< const PrimitiveType > primitives)
 Generate a mesh from primitives.
 
- Public Attributes inherited from oe::scene::Mesh< VertexType, IndexType, MeshSettingsType >
VertexContainerType vertices
 
IndexContainerType indices
 
MeshSettingsType::PrimitivesContainerType primitives = {}
 

Detailed Description

template<typename VertexType = Vertex>
struct oe::scene::primitive::Plane< VertexType >

A plane mesh from (-0.5f, -0.5f) to (0.5f, 0.5f) facing Y upward so you can use it as a simple floor.

Note
If you intend to use this mesh for "screen covering" renders, we suggest to use oe::render::ScreenQuad instead

Constructor & Destructor Documentation

◆ Plane()

template<typename VertexType = Vertex>
oe::scene::primitive::Plane< VertexType >::Plane ( )
inline

Generate plane mesh


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