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

Method addEBO

Source/Model.cpp:121–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120
121void Model::addEBO(const std::vector<GLuint>& indices)
122{
123 GLuint ebo;
124 glGenBuffers(1, &ebo);
125 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo);
126 glBufferData(GL_ELEMENT_ARRAY_BUFFER,
127 indices.size() * sizeof (indices[0]),
128 indices.data(),
129 GL_STATIC_DRAW);
130
131 m_buffers.push_back(ebo);
132}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected