1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

LibGL: Implement glUseProgram

This commit is contained in:
Stephan Unverwerth 2022-08-28 15:39:44 +02:00 committed by Andrew Kaster
parent 1812a169b8
commit 69171e7a05
4 changed files with 25 additions and 0 deletions

View file

@ -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 {