mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-13 05:57:10 +03:00
26 lines
480 B
C++
26 lines
480 B
C++
#pragma once
|
|
|
|
#include "Object.hpp"
|
|
#include "gl_core_3_3.h"
|
|
|
|
namespace glrage {
|
|
namespace gl {
|
|
|
|
class Buffer : public Object
|
|
{
|
|
public:
|
|
Buffer(GLenum target);
|
|
~Buffer();
|
|
void bind();
|
|
void data(GLsizei size, const void* data, GLenum usage);
|
|
void subData(GLsizei offset, GLsizei size, const void* data);
|
|
void* map(GLenum access);
|
|
void unmap();
|
|
GLint parameter(GLenum pname);
|
|
|
|
private:
|
|
GLenum m_target;
|
|
};
|
|
|
|
} // namespace gl
|
|
} // namespace glrage
|