All pastes #738343 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-16 06:32 UTC
rendered paste body
  if (pn_rc->actuator)
    {
      // set the viewport to a texture size
      glViewport(0, 0, 128, 128);

      // run actuators
      exec_actuator (pn_rc->actuator);

      // reset the viewport to window size and draw
      glViewport(0, 0, pn_image_data->width, pn_image_data->height);
      SDL_GL_SwapBuffers();
    }