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

Function idle

cpp/4_CUDA_Libraries/randomFog/randomFog.cpp:328–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void idle(void)
329{
330 if (g_bAutoRotate) {
331 g_yRotated += 0.1f;
332
333 if (g_yRotated >= 360.0f) {
334 g_yRotated -= 360.0f;
335 }
336
337 g_xRotated += 0.05f;
338
339 if (g_xRotated >= 360.0f) {
340 g_xRotated -= 360.0f;
341 }
342
343 display();
344 }
345}
346
347void reCreate(void)
348{

Callers

nothing calls this directly

Calls 1

displayFunction · 0.70

Tested by

no test coverage detected