lol
This commit is contained in:
parent
c40a38253d
commit
6c47960b69
4 changed files with 66 additions and 0 deletions
31
include/object.hpp
Normal file
31
include/object.hpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef DRAWABLE_HPP
|
||||
#define DRAWABLE_HPP
|
||||
|
||||
#include "core.hpp"
|
||||
#include <glad/glad.h>
|
||||
|
||||
namespace oglu
|
||||
{
|
||||
typedef struct {
|
||||
GLuint index;
|
||||
GLint size;
|
||||
GLenum type;
|
||||
GLboolean normalized;
|
||||
GLsizei stride;
|
||||
const GLvoid* pointer;
|
||||
} VertexAttribute;
|
||||
|
||||
class OGLU_API Object
|
||||
{
|
||||
public:
|
||||
Object();
|
||||
Object(const GLfloat* vertices, size_t verticesSize, const GLuint* indices, size_t indicesSize, const VertexAttribute* topology, size_t topologySize);
|
||||
|
||||
GLuint GetVAO() { return VAO; }
|
||||
|
||||
private:
|
||||
GLuint VAO;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue