16#ifndef AEONGAMES_OPENGLMESH_HPP
17#define AEONGAMES_OPENGLMESH_HPP
20#include "OpenGLBuffer.hpp"
21#include "OpenGLVariable.hpp"
41 void EnableAttributes (
const std::vector<OpenGLVariable>& aAttributes )
const;
46 const Mesh* mMesh{
nullptr};
Represents a polygon mesh with vertex attributes and index data.
OpenGL GPU buffer wrapper implementing the Buffer interface.
void DisableAttributes(const std::vector< OpenGLVariable > &aAttributes) const
Disable the specified vertex attributes.
OpenGLMesh(const OpenGLRenderer &aOpenGLRenderer, const Mesh &aMesh)
Construct from a renderer and mesh resource.
void Bind() const
Bind the vertex and index buffers.
void EnableAttributes(const std::vector< OpenGLVariable > &aAttributes) const
Enable the specified vertex attributes for rendering.
OpenGL rendering backend implementing the Renderer interface.
<- This is here just for the literals