1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

LibGL: Implement glRasterPos2i

This commit is contained in:
Jelle Raaijmakers 2021-12-01 15:53:55 +01:00 committed by Andreas Kling
parent 78d0674228
commit 4eb6295a57
6 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2021, Jelle Raaijmakers <jelle@gmta.nl>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "GL/gl.h"
#include "GLContext.h"
extern GL::GLContext* g_gl_context;
void glRasterPos2i(GLint x, GLint y)
{
g_gl_context->gl_raster_pos(static_cast<float>(x), static_cast<float>(y), 0.0f, 1.0f);
}