mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 08:45:45 +00:00
renderer_opengl/utils: Forward declare private structs
Keeps the definitions hidden and allows changes to the structs without needing to recompile all users of classes containing said structs.
This commit is contained in:
parent
8f44846de6
commit
0cb80ac6dc
2 changed files with 16 additions and 12 deletions
|
@ -26,12 +26,7 @@ public:
|
|||
void Bind();
|
||||
|
||||
private:
|
||||
struct Entry {
|
||||
GLuint binding_index{};
|
||||
const GLuint* buffer{};
|
||||
GLintptr offset{};
|
||||
GLsizei stride{};
|
||||
};
|
||||
struct Entry;
|
||||
|
||||
GLuint vao{};
|
||||
const GLuint* index_buffer{};
|
||||
|
@ -50,12 +45,7 @@ public:
|
|||
void Bind();
|
||||
|
||||
private:
|
||||
struct Entry {
|
||||
GLuint binding;
|
||||
const GLuint* buffer;
|
||||
GLintptr offset;
|
||||
GLsizeiptr size;
|
||||
};
|
||||
struct Entry;
|
||||
|
||||
GLenum target;
|
||||
std::vector<Entry> entries;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue