poll method

  1. @override
void poll()
override

Implementation

@override
void poll() {
  _checkMakeCurrent();

  glfwPollEvents();

  glfwGetWindowSize(_windowHandle, _sizeBuff, _heightPointer);

  width = _sizeBuff[0];
  height = _sizeBuff[1];

  if (_lastWidth != width || _lastHeight != height) {
    graphics.changeBack(width, height);

    _lastWidth = width;
    _lastHeight = height;
  }
}