diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2021-08-13 13:03:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 12:49:29 +0200 |
commit | 07b9cba6e6aaa5baed9ae841890f477758a059f8 (patch) | |
tree | f89f0bfa3bd8b2a78ab797eb689c3533108c431e /Userland/Libraries/LibGL/GLVertexArrays.cpp | |
parent | 886f154c2ab87de6c8d9f0008eb16e8533c6ff85 (diff) | |
download | serenity-07b9cba6e6aaa5baed9ae841890f477758a059f8.zip |
LibGL: Implement glVertexPointer
Diffstat (limited to 'Userland/Libraries/LibGL/GLVertexArrays.cpp')
-rw-r--r-- | Userland/Libraries/LibGL/GLVertexArrays.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLVertexArrays.cpp b/Userland/Libraries/LibGL/GLVertexArrays.cpp new file mode 100644 index 0000000000..2f322e1772 --- /dev/null +++ b/Userland/Libraries/LibGL/GLVertexArrays.cpp @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include "GL/gl.h" +#include "GLContext.h" + +extern GL::GLContext* g_gl_context; + +void glVertexPointer(GLint size, GLenum type, GLsizei stride, const void* pointer) +{ + g_gl_context->gl_vertex_pointer(size, type, stride, pointer); +} |