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

Function reshape

cpp/3_CUDA_Features/bindlessTexture/bindlessTexture.cpp:207–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void reshape(int x, int y)
208{
209 glViewport(0, 0, x, y);
210
211 glMatrixMode(GL_MODELVIEW);
212 glLoadIdentity();
213
214 glMatrixMode(GL_PROJECTION);
215 glLoadIdentity();
216 glOrtho(0.0, 1.0, 0.0, 1.0, 0.0, 1.0);
217}
218
219// Global cleanup function
220// Shared by both GL and non-GL code paths

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected