| 106 | } |
| 107 | |
| 108 | bool 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 | |
| 129 | void NuklearRender() |
| 130 | { |
no test coverage detected