mirror of
https://github.com/JaCzekanski/Avocado.git
synced 2024-06-02 19:27:41 -04:00
18 lines
304 B
C++
18 lines
304 B
C++
#pragma once
|
|
#include <opengl.h>
|
|
#include <cstddef>
|
|
|
|
class Attribute {
|
|
GLuint id;
|
|
|
|
public:
|
|
Attribute(GLuint id);
|
|
~Attribute();
|
|
|
|
void enable();
|
|
void disable();
|
|
void pointer(GLint size, GLenum type, GLsizei stride, uintptr_t pointer);
|
|
|
|
static size_t getSize(GLenum type);
|
|
};
|