diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2021-08-11 22:09:18 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-12 18:58:41 +0200 |
commit | b9523e15dfc6510b9c2978b1645ad61c690811ee (patch) | |
tree | aa40746eec0b948bb1f9944769963f2545c3ee6f /Userland/Libraries/LibGL/Tex | |
parent | e0fef60241397ce12be4ce311382060fe6db707d (diff) | |
download | serenity-b9523e15dfc6510b9c2978b1645ad61c690811ee.zip |
LibGL: Implement glTexParameter{i,f}
This currently only implements a subset of this function.
Namely setting wrap, mag and min modes for the GL_TETXURE_2D target.
Diffstat (limited to 'Userland/Libraries/LibGL/Tex')
-rw-r--r-- | Userland/Libraries/LibGL/Tex/Texture2D.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/Tex/Texture2D.h b/Userland/Libraries/LibGL/Tex/Texture2D.h index c1d3022dcf..a281f06be1 100644 --- a/Userland/Libraries/LibGL/Tex/Texture2D.h +++ b/Userland/Libraries/LibGL/Tex/Texture2D.h @@ -42,6 +42,7 @@ public: GLenum internal_format() const { return m_internal_format; } Sampler2D const& sampler() const { return m_sampler; } + Sampler2D& sampler() { return m_sampler; } private: template<typename TCallback> |