lol
This commit is contained in:
parent
c40a38253d
commit
6c47960b69
4 changed files with 66 additions and 0 deletions
21
src/object.cpp
Normal file
21
src/object.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include "object.hpp"
|
||||
|
||||
namespace oglu
|
||||
{
|
||||
Object::Object() :
|
||||
VAO(0)
|
||||
{
|
||||
}
|
||||
|
||||
Object::Object(const GLfloat* vertices, size_t verticesSize,
|
||||
const GLuint* indices, size_t indicesSize,
|
||||
const VertexAttribute* topology, size_t topologySize) :
|
||||
VAO(0)
|
||||
{
|
||||
GLuint VBO;
|
||||
glGenBuffers(1, &VBO);
|
||||
|
||||
glBindBuffer(GL_ARRAY_BUFFER, VBO);
|
||||
glBufferData(GL_ARRAY_BUFFER, verticesSize, vertices, GL_STATIC_DRAW);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue