mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibGL: Implement glUseProgram
This commit is contained in:
parent
1812a169b8
commit
69171e7a05
4 changed files with 25 additions and 0 deletions
|
@ -239,6 +239,7 @@ public:
|
|||
void gl_delete_program(GLuint program);
|
||||
void gl_attach_shader(GLuint program, GLuint shader);
|
||||
void gl_link_program(GLuint program);
|
||||
void gl_use_program(GLuint program);
|
||||
|
||||
private:
|
||||
void sync_device_config();
|
||||
|
@ -414,6 +415,7 @@ private:
|
|||
NameAllocator m_program_name_allocator;
|
||||
HashMap<GLuint, RefPtr<Shader>> m_allocated_shaders;
|
||||
HashMap<GLuint, RefPtr<Program>> m_allocated_programs;
|
||||
RefPtr<Program> m_current_program;
|
||||
|
||||
struct Listing {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue