{"action":"created","issue":{"url":"https://api.github.com/repos/mobius3/KiWi/issues/17","repository_url":"https://api.github.com/repos/mobius3/KiWi","labels_url":"https://api.github.com/repos/mobius3/KiWi/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/mobius3/KiWi/issues/17/comments","events_url":"https://api.github.com/repos/mobius3/KiWi/issues/17/events","html_url":"https://github.com/mobius3/KiWi/issues/17","id":157492690,"number":17,"title":"Surface/Texture screw-ups","user":{"login":"wasamasa","id":3588994,"avatar_url":"https://avatars.githubusercontent.com/u/3588994?v=3","gravatar_id":"","url":"https://api.github.com/users/wasamasa","html_url":"https://github.com/wasamasa","followers_url":"https://api.github.com/users/wasamasa/followers","following_url":"https://api.github.com/users/wasamasa/following{/other_user}","gists_url":"https://api.github.com/users/wasamasa/gists{/gist_id}","starred_url":"https://api.github.com/users/wasamasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasamasa/subscriptions","organizations_url":"https://api.github.com/users/wasamasa/orgs","repos_url":"https://api.github.com/users/wasamasa/repos","events_url":"https://api.github.com/users/wasamasa/events{/privacy}","received_events_url":"https://api.github.com/users/wasamasa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-30T12:23:19Z","updated_at":"2016-06-01T16:22:32Z","closed_at":"2016-05-30T17:34:20Z","body":"`KW_GetTilesetSurface` in `KW_gui.h` specifies that it returns a `KW_Surface*`, yet it doesn't in the implementation.  There's a number of other surface/texture screw-ups in the docs (see `KW_GetWidgetTilesetSurface` for another one).  I find this pretty confusing as I've learned from experimenting with SDL that surfaces and textures are *not* interchangeable, in fact surfaces are the basis for creating GPU-accelerated textures.\r\n\r\nSomewhat related question:  With this in mind, what exactly are the texture-related API functions (like, `KW_GetTilesetTexture` or `KW_GetWidgetTilesetTexture`) for?"},"comment":{"url":"https://api.github.com/repos/mobius3/KiWi/issues/comments/223046908","html_url":"https://github.com/mobius3/KiWi/issues/17#issuecomment-223046908","issue_url":"https://api.github.com/repos/mobius3/KiWi/issues/17","id":223046908,"user":{"login":"wasamasa","id":3588994,"avatar_url":"https://avatars.githubusercontent.com/u/3588994?v=3","gravatar_id":"","url":"https://api.github.com/users/wasamasa","html_url":"https://github.com/wasamasa","followers_url":"https://api.github.com/users/wasamasa/followers","following_url":"https://api.github.com/users/wasamasa/following{/other_user}","gists_url":"https://api.github.com/users/wasamasa/gists{/gist_id}","starred_url":"https://api.github.com/users/wasamasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasamasa/subscriptions","organizations_url":"https://api.github.com/users/wasamasa/orgs","repos_url":"https://api.github.com/users/wasamasa/repos","events_url":"https://api.github.com/users/wasamasa/events{/privacy}","received_events_url":"https://api.github.com/users/wasamasa/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T16:22:32Z","updated_at":"2016-06-01T16:22:32Z","body":"I suspect not as the FFI handles a small set of types and cannot represent a function pointer to something taking a `SDL_Scancode` type.  If I change it to the equivalent type, I either get complaints that `enum SDL_Scancode` is invalid syntax inside a function signature or that `int` makes it an incompatible pointer type.  Therefore I've decided to not include wrappers to keydown and keyup events for the time being."}}
{"actor":{"display_login":"wasamasa"}}