MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / Model

Method Model

Source/Model.cpp:6–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <stdexcept>
5
6Model::Model(const std::vector<GLfloat>& vertexPositions,
7 const std::vector<GLfloat>& textureCoordinates,
8 const std::vector<GLuint>& indices)
9: m_indicesCount (indices.size())
10{
11 glGenVertexArrays(1, &m_vao);
12 bind();
13
14 addVBO(3, vertexPositions);
15 addVBO(2, textureCoordinates);
16 addEBO(indices);
17}
18
19Model::Model(Model&& other)
20: m_vao (other.m_vao)

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected