From 07b9cba6e6aaa5baed9ae841890f477758a059f8 Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Fri, 13 Aug 2021 13:03:06 +0200 Subject: LibGL: Implement glVertexPointer --- Userland/Libraries/LibGL/GLVertexArrays.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Userland/Libraries/LibGL/GLVertexArrays.cpp (limited to 'Userland/Libraries/LibGL/GLVertexArrays.cpp') 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 + * + * 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); +} -- cgit v1.2.3