MCPcopy Create free account
hub / github.com/baldurk/renderdoc / NuklearTick

Function NuklearTick

util/test/demos/main.cpp:108–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108bool NuklearTick(nk_context *ctx)
109{
110 MSG msg = {};
111 UpdateWindow(wnd);
112
113 nk_input_begin(ctx);
114 // Check to see if any messages are waiting in the queue
115 while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
116 {
117 // Translate the message and dispatch it to WindowProc()
118 TranslateMessage(&msg);
119 DispatchMessage(&msg);
120 }
121 nk_input_end(ctx);
122
123 if(!IsWindowVisible(wnd) || msg.message == WM_QUIT)
124 return false;
125
126 return true;
127}
128
129void NuklearRender()
130{

Callers 1

mainFunction · 0.85

Calls 9

nk_input_beginFunction · 0.85
nk_input_endFunction · 0.85
nk_xlib_handle_eventFunction · 0.85
allocFunction · 0.85
nk_appkit_new_frameFunction · 0.85
initMethod · 0.45
nextEventMatchingMaskMethod · 0.45
sendEventMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected