{"action":"opened","issue":{"url":"https://api.github.com/repos/eliasdaler/imgui-sfml/issues/45","repository_url":"https://api.github.com/repos/eliasdaler/imgui-sfml","labels_url":"https://api.github.com/repos/eliasdaler/imgui-sfml/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/eliasdaler/imgui-sfml/issues/45/comments","events_url":"https://api.github.com/repos/eliasdaler/imgui-sfml/issues/45/events","html_url":"https://github.com/eliasdaler/imgui-sfml/issues/45","id":296868460,"number":45,"title":"Imgui Text is buggy","user":{"login":"Dexxxxter","id":36456825,"avatar_url":"https://avatars1.githubusercontent.com/u/36456825?v=4","gravatar_id":"","url":"https://api.github.com/users/Dexxxxter","html_url":"https://github.com/Dexxxxter","followers_url":"https://api.github.com/users/Dexxxxter/followers","following_url":"https://api.github.com/users/Dexxxxter/following{/other_user}","gists_url":"https://api.github.com/users/Dexxxxter/gists{/gist_id}","starred_url":"https://api.github.com/users/Dexxxxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dexxxxter/subscriptions","organizations_url":"https://api.github.com/users/Dexxxxter/orgs","repos_url":"https://api.github.com/users/Dexxxxter/repos","events_url":"https://api.github.com/users/Dexxxxter/events{/privacy}","received_events_url":"https://api.github.com/users/Dexxxxter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-13T20:07:18Z","updated_at":"2018-02-13T20:07:18Z","closed_at":null,"author_association":"NONE","body":"I try to implementate imgui in a dll. My Problem ist that the text in the window looks not as he should do.\r\n![unbenannt](https://user-images.githubusercontent.com/36456825/36171073-90d8ea14-1101-11e8-9bc5-fc810f0b4846.PNG).\r\n\r\nHere is my code:\r\n```\r\n//imgui settings\r\n\tImGui::CreateContext();\r\n\tImGuiIO& io = ImGui::GetIO();\r\n\tio.RenderDrawListsFn = renderer;\r\n\tio.DisplaySize.x = 1024;\r\n\tio.DisplaySize.y = 768;\r\n\tio.DeltaTime = 1.0f / 60.0f;\r\n\r\n\t//font\r\n\tunsigned char* pixels;\r\n\tint width, height, bytes_per_pixels;\r\n\tio.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height, &bytes_per_pixels);\r\n\t//io.Fonts->GetTexDataAsAlpha8(&pixels, &width, &height);\r\n\r\n\t//frame\r\n\tImGui::NewFrame();\r\n\tImGui::Begin(\"My window\");\r\n\tImGui::Text(\"Hello, world.\");\r\n\tstatic float f = 0.0f;\r\n\t//ImGui::SliderFloat(\"float\", &f, 0.0f, 1.0f);\r\n\tImGui::End();\r\n\r\n\t//glViewport(0, 0, 1024, 768);\r\n\tImGui::Render();\r\n```\r\n\r\nmy renderer function is from this thread:\r\n[https://github.com/ocornut/imgui/wiki/Getting-Started](url)\r\n\r\nI hope someone can help me ^^"}}
{"actor":{"display_login":"Dexxxxter"}}