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

Function Simple2ResizeCallback

examples/OpenGLWindow/SimpleOpenGL2App.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42static SimpleOpenGL2App* gApp2 = 0;
43
44static void Simple2ResizeCallback(float widthf, float heightf)
45{
46 int width = (int)widthf;
47 int height = (int)heightf;
48 if (gApp2->m_renderer && gApp2->m_window)
49 gApp2->m_renderer->resize(width, height); //*gApp2->m_window->getRetinaScale(),height*gApp2->m_window->getRetinaScale());
50}
51
52static void Simple2KeyboardCallback(int key, int state)
53{

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected