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

Function reshape

cpp/5_Domain_Specific/marchingCubes/marchingCubes.cpp:1032–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032void reshape(int w, int h)
1033{
1034 glMatrixMode(GL_PROJECTION);
1035 glLoadIdentity();
1036 gluPerspective(60.0, (float)w / (float)h, 0.1, 10.0);
1037
1038 glMatrixMode(GL_MODELVIEW);
1039 glViewport(0, 0, w, h);
1040}
1041
1042void mainMenu(int i) { keyboard((unsigned char)i, 0, 0); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected