mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 12:49:18 +02:00
Change size arguments type to GLsizeiptr
This commit is contained in:
4
gl/ubo.h
4
gl/ubo.h
@@ -13,11 +13,11 @@ namespace gl
|
||||
int index;
|
||||
|
||||
public:
|
||||
ubo(int size, int index, GLenum hint = GL_DYNAMIC_DRAW);
|
||||
ubo(size_t size, int index, GLenum hint = GL_DYNAMIC_DRAW);
|
||||
|
||||
void bind_uniform();
|
||||
|
||||
void update(const uint8_t *data, int offset, int size);
|
||||
void update(const uint8_t *data, int offset, GLsizeiptr size);
|
||||
template <typename T> void update(const T &data, size_t offset = 0)
|
||||
{
|
||||
update(reinterpret_cast<const uint8_t*>(&data), offset, sizeof(data));
|
||||
|
||||
Reference in New Issue
Block a user