| 975 | } |
| 976 | |
| 977 | void SimpleOpenGL3App::setViewport(int width, int height) |
| 978 | { |
| 979 | m_data->m_customViewPortWidth = width; |
| 980 | m_data->m_customViewPortHeight = height; |
| 981 | if (width >= 0) |
| 982 | { |
| 983 | glViewport(0, 0, width, height); |
| 984 | } |
| 985 | else |
| 986 | { |
| 987 | glViewport(0, 0, m_window->getRetinaScale() * m_instancingRenderer->getScreenWidth(), m_window->getRetinaScale() * m_instancingRenderer->getScreenHeight()); |
| 988 | } |
| 989 | } |
| 990 | |
| 991 | void SimpleOpenGL3App::getScreenPixels(unsigned char* rgbaBuffer, int bufferSizeInBytes, float* depthBuffer, int depthBufferSizeInBytes) |
| 992 | { |
no test coverage detected