GLDraw.cpp 321 B

123456789101112131415
  1. /*
  2. * Copyright (c) 2021, Jelle Raaijmakers <jelle@gmta.nl>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include "GL/gl.h"
  7. #include "GLContext.h"
  8. extern GL::GLContext* g_gl_context;
  9. void glRasterPos2i(GLint x, GLint y)
  10. {
  11. g_gl_context->gl_raster_pos(static_cast<float>(x), static_cast<float>(y), 0.0f, 1.0f);
  12. }