| 93 | static SimpleOpenGL3App* gApp = 0; |
| 94 | |
| 95 | static void SimpleResizeCallback(float widthf, float heightf) |
| 96 | { |
| 97 | int width = (int)widthf; |
| 98 | int height = (int)heightf; |
| 99 | if (gApp && gApp->m_instancingRenderer) |
| 100 | gApp->m_instancingRenderer->resize(width, height); |
| 101 | |
| 102 | if (gApp && gApp->m_primRenderer) |
| 103 | gApp->m_primRenderer->setScreenSize(width, height); |
| 104 | } |
| 105 | |
| 106 | static void SimpleKeyboardCallback(int key, int state) |
| 107 | { |
nothing calls this directly
no test coverage detected