Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
AeonGames::OpenGLMesh Class Reference

OpenGL mesh wrapper managing vertex and index buffers. More...

#include <C:/Code/AeonEngine/engine/renderers/opengl/OpenGLMesh.hpp>

Collaboration diagram for AeonGames::OpenGLMesh:
Collaboration graph

Public Member Functions

 OpenGLMesh (const OpenGLRenderer &aOpenGLRenderer, const Mesh &aMesh)
 Construct from a renderer and mesh resource.
 OpenGLMesh (OpenGLMesh &&aOpenGLMesh)
 Move constructor.
 OpenGLMesh (const OpenGLMesh &aOpenGLMesh)=delete
OpenGLMeshoperator= (const OpenGLMesh &aOpenGLMesh)=delete
OpenGLMeshoperator= (OpenGLMesh &&aOpenGLMesh)=delete
void Bind () const
 Bind the vertex and index buffers.
void EnableAttributes (const std::vector< OpenGLVariable > &aAttributes) const
 Enable the specified vertex attributes for rendering.
void DisableAttributes (const std::vector< OpenGLVariable > &aAttributes) const
 Disable the specified vertex attributes.

Detailed Description

OpenGL mesh wrapper managing vertex and index buffers.

Definition at line 27 of file OpenGLMesh.hpp.

Constructor & Destructor Documentation

◆ OpenGLMesh() [1/2]

AeonGames::OpenGLMesh::OpenGLMesh ( const OpenGLRenderer & aOpenGLRenderer,
const Mesh & aMesh )

Construct from a renderer and mesh resource.

Definition at line 26 of file OpenGLMesh.cpp.

◆ OpenGLMesh() [2/2]

AeonGames::OpenGLMesh::OpenGLMesh ( OpenGLMesh && aOpenGLMesh)

Move constructor.

Definition at line 41 of file OpenGLMesh.cpp.

Member Function Documentation

◆ Bind()

void AeonGames::OpenGLMesh::Bind ( ) const

Bind the vertex and index buffers.

Definition at line 62 of file OpenGLMesh.cpp.

◆ DisableAttributes()

void AeonGames::OpenGLMesh::DisableAttributes ( const std::vector< OpenGLVariable > & aAttributes) const

Disable the specified vertex attributes.

Definition at line 127 of file OpenGLMesh.cpp.

◆ EnableAttributes()

void AeonGames::OpenGLMesh::EnableAttributes ( const std::vector< OpenGLVariable > & aAttributes) const

Enable the specified vertex attributes for rendering.

Definition at line 68 of file OpenGLMesh.cpp.


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