{"action":"created","issue":{"url":"https://api.github.com/repos/vurtun/nuklear/issues/102","repository_url":"https://api.github.com/repos/vurtun/nuklear","labels_url":"https://api.github.com/repos/vurtun/nuklear/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/vurtun/nuklear/issues/102/comments","events_url":"https://api.github.com/repos/vurtun/nuklear/issues/102/events","html_url":"https://github.com/vurtun/nuklear/pull/102","id":150260079,"number":102,"title":"Demo with Win32 GDI rendering","user":{"login":"mmozeiko","id":1665010,"avatar_url":"https://avatars.githubusercontent.com/u/1665010?v=3","gravatar_id":"","url":"https://api.github.com/users/mmozeiko","html_url":"https://github.com/mmozeiko","followers_url":"https://api.github.com/users/mmozeiko/followers","following_url":"https://api.github.com/users/mmozeiko/following{/other_user}","gists_url":"https://api.github.com/users/mmozeiko/gists{/gist_id}","starred_url":"https://api.github.com/users/mmozeiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmozeiko/subscriptions","organizations_url":"https://api.github.com/users/mmozeiko/orgs","repos_url":"https://api.github.com/users/mmozeiko/repos","events_url":"https://api.github.com/users/mmozeiko/events{/privacy}","received_events_url":"https://api.github.com/users/mmozeiko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-22T04:06:20Z","updated_at":"2016-04-22T15:37:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vurtun/nuklear/pulls/102","html_url":"https://github.com/vurtun/nuklear/pull/102","diff_url":"https://github.com/vurtun/nuklear/pull/102.diff","patch_url":"https://github.com/vurtun/nuklear/pull/102.patch"},"body":"This adds new `gdi` folder under demo that uses Win32 GDI for rendering. It's based on x11 demo, so it also doesn't implement RECT_MULTI_CLEAR, IMAGE, ARC and ARC_FILLED render commands.\r\n\r\nMain loop is structured so it doesn't use 100% of CPU. It waits for Windows message to happen, and only then executes GUI layout and rendering code. If you need continuous update you'll need to use either windows timer to produce periodic messages or remove call to GetMessage and use only PeekMessage functionality."},"comment":{"url":"https://api.github.com/repos/vurtun/nuklear/issues/comments/213478094","html_url":"https://github.com/vurtun/nuklear/pull/102#issuecomment-213478094","issue_url":"https://api.github.com/repos/vurtun/nuklear/issues/102","id":213478094,"user":{"login":"mmozeiko","id":1665010,"avatar_url":"https://avatars.githubusercontent.com/u/1665010?v=3","gravatar_id":"","url":"https://api.github.com/users/mmozeiko","html_url":"https://github.com/mmozeiko","followers_url":"https://api.github.com/users/mmozeiko/followers","following_url":"https://api.github.com/users/mmozeiko/following{/other_user}","gists_url":"https://api.github.com/users/mmozeiko/gists{/gist_id}","starred_url":"https://api.github.com/users/mmozeiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmozeiko/subscriptions","organizations_url":"https://api.github.com/users/mmozeiko/orgs","repos_url":"https://api.github.com/users/mmozeiko/repos","events_url":"https://api.github.com/users/mmozeiko/events{/privacy}","received_events_url":"https://api.github.com/users/mmozeiko/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T15:37:23Z","updated_at":"2016-04-22T15:37:23Z","body":"@dumblob Yes, such message limiting capabilities can be implemented. But I don't feel this demo is a good place for that. This demo is about how to implement rendering backend using GDI for nuklear. This is not full-blown application. The code for application should be as simple as possible to make it easier to understand. And all other examples (glfw, SDL, x11) also doesn't limit event processing."}}