3485bcb2a0
Now batches are actually batches. Also added the MeshFactory class. Drawing modes are now specified with DrawMode instead of the GLenum. Renderables must be specified with a draw mode.
9 lines
143 B
C++
9 lines
143 B
C++
#include "MyBatch.h"
|
|
|
|
void MyBatch::setup_vao()
|
|
{
|
|
glEnableVertexAttribArray(0);
|
|
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, NULL);
|
|
}
|
|
|