summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GLVertexArrays.cpp
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2021-08-13 13:03:06 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-14 12:49:29 +0200
commit07b9cba6e6aaa5baed9ae841890f477758a059f8 (patch)
treef89f0bfa3bd8b2a78ab797eb689c3533108c431e /Userland/Libraries/LibGL/GLVertexArrays.cpp
parent886f154c2ab87de6c8d9f0008eb16e8533c6ff85 (diff)
downloadserenity-07b9cba6e6aaa5baed9ae841890f477758a059f8.zip
LibGL: Implement glVertexPointer
Diffstat (limited to 'Userland/Libraries/LibGL/GLVertexArrays.cpp')
-rw-r--r--Userland/Libraries/LibGL/GLVertexArrays.cpp15
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);
+}