MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / SimpleResizeCallback

Function SimpleResizeCallback

examples/OpenGLWindow/SimpleOpenGL3App.cpp:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93static SimpleOpenGL3App* gApp = 0;
94
95static 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
106static void SimpleKeyboardCallback(int key, int state)
107{

Callers

nothing calls this directly

Calls 2

setScreenSizeMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected