mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
LibGL: Implement glRasterPos2i
This commit is contained in:
parent
78d0674228
commit
4eb6295a57
6 changed files with 41 additions and 1 deletions
15
Userland/Libraries/LibGL/GLDraw.cpp
Normal file
15
Userland/Libraries/LibGL/GLDraw.cpp
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue