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

LibGL: Implement glGetProgramiv

This commit is contained in:
Stephan Unverwerth 2022-08-28 16:34:17 +02:00 committed by Andrew Kaster
parent 424e0a2792
commit 1b7b6e6c91
6 changed files with 56 additions and 0 deletions

View file

@ -8,7 +8,9 @@
#include <AK/Error.h>
#include <AK/NonnullRefPtr.h>
#include <AK/Optional.h>
#include <AK/RefCounted.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibGL/Shaders/Shader.h>
@ -22,11 +24,13 @@ public:
ErrorOr<void> attach_shader(Shader&);
ErrorOr<void> link();
bool link_status() const { return m_link_status; }
size_t info_log_length() const;
private:
bool m_link_status { false };
Vector<NonnullRefPtr<Shader>> m_vertex_shaders;
Vector<NonnullRefPtr<Shader>> m_fragment_shaders;
Optional<String> m_info_log;
};
}