Symphony Of Empires
mesh.hpp File Reference
#include <cstdint>
#include <vector>
#include <string>
#include <memory>
#include <array>
#include <glm/vec3.hpp>
#include <glm/vec2.hpp>
Include dependency graph for mesh.hpp:

Go to the source code of this file.

Classes

class  Eng3D::OpenGL::VAO
 
class  Eng3D::OpenGL::VBO
 
class  Eng3D::OpenGL::EBO
 
struct  Eng3D::MeshData< V, T, C >
 
struct  Eng3D::MeshData< V, T, void >
 
struct  Eng3D::Mesh< V, T, C >
 Packed model - packs both vertices and texcoords into the same buffer. More...
 
struct  Eng3D::MeshStatic< vtc_size, i_size, V, T, C >
 A static mesh with fixed number of elements. More...
 

Namespaces

 Eng3D
 
 Eng3D::OpenGL
 

Enumerations

enum class  Eng3D::MeshMode {
  Eng3D::TRIANGLE_FAN , Eng3D::TRIANGLE_STRIP , Eng3D::TRIANGLES , Eng3D::LINES ,
  Eng3D::LINE_STRIP
}
 

Functions

void Eng3D::draw (const Eng3D::OpenGL::VAO &vao, MeshMode mode, const void *indices, size_t n_indices, const void *buffer, size_t n_buffer, int instances)
 
void Eng3D::upload (const Eng3D::OpenGL::VAO &vao, const Eng3D::OpenGL::VBO &vbo, const Eng3D::OpenGL::EBO &ebo, const void *buffer, size_t n_buffer, size_t sz_buffer, size_t sz_buffer_vert, size_t sz_buffer_tex, size_t v_len, size_t t_len, size_t c_len, const void *indices, size_t n_indices, size_t sz_indices, bool has_color)
 
void Eng3D::instancing (const Eng3D::OpenGL::VAO &vao, const Eng3D::OpenGL::VBO &i_vbo, const void *buffer, size_t index_size, int instances)