glViewport function

void glViewport(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
)
GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height)

Implementation

void glViewport(int x, int y, int width, int height) {
  final glViewportLookupFunction = libGL.lookupFunction<
      Void Function(Int32 x, Int32 y, Uint32 width, Uint32 height),
      void Function(int x, int y, int width, int height)>('glViewport');
  return glViewportLookupFunction(x, y, width, height);
}