MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / ReshapeWindow

Function ReshapeWindow

demo/main.cpp:2182–2198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2180}
2181
2182void ReshapeWindow(int width, int height)
2183{
2184 if (!g_benchmark)
2185 printf("Reshaping\n");
2186
2187 ReshapeRender(g_window);
2188
2189 if (!g_fluidRenderer || (width != g_screenWidth || height != g_screenHeight))
2190 {
2191 if (g_fluidRenderer)
2192 DestroyFluidRenderer(g_fluidRenderer);
2193 g_fluidRenderer = CreateFluidRenderer(width, height);
2194 }
2195
2196 g_screenWidth = width;
2197 g_screenHeight = height;
2198}
2199
2200void InputArrowKeysDown(int key, int x, int y)
2201{

Callers 3

InputKeyboardDownFunction · 0.85
SDLMainLoopFunction · 0.85
mainFunction · 0.85

Calls 3

ReshapeRenderFunction · 0.50
DestroyFluidRendererFunction · 0.50
CreateFluidRendererFunction · 0.50

Tested by

no test coverage detected