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

Function reshape

cpp/0_Introduction/simpleTexture3D/simpleTexture3D.cpp:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void reshape(int x, int y)
222{
223 glViewport(0, 0, x, y);
224
225 glMatrixMode(GL_MODELVIEW);
226 glLoadIdentity();
227
228 glMatrixMode(GL_PROJECTION);
229 glLoadIdentity();
230 glOrtho(0.0, 1.0, 0.0, 1.0, 0.0, 1.0);
231}
232
233void cleanup()
234{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected