MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / reshape

Function reshape

cpp/5_Domain_Specific/fluidsGL/fluidsGL.cpp:327–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327void reshape(int x, int y)
328{
329 wWidth = x;
330 wHeight = y;
331 glViewport(0, 0, x, y);
332 glMatrixMode(GL_PROJECTION);
333 glLoadIdentity();
334 glOrtho(0, 1, 1, 0, 0, 1);
335 glMatrixMode(GL_MODELVIEW);
336 glLoadIdentity();
337 glutPostRedisplay();
338}
339
340void cleanup(void)
341{

Callers 1

autoTestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected