Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

Support GetForegroundDrawList#180

Merged
dertseha merged 1 commit intoinkyblackness:mainfrom
kaishuu0123:feat/get-foreground-drawlist
Jun 18, 2022
Merged

Support GetForegroundDrawList#180
dertseha merged 1 commit intoinkyblackness:mainfrom
kaishuu0123:feat/get-foreground-drawlist

Conversation

@kaishuu0123
Copy link
Copy Markdown
Contributor

@kaishuu0123 kaishuu0123 commented Jun 10, 2022

Motivation

  • I am making an emulator with golang and imgui-go in my project.
  • In the process, I wanted to use imgui to draw text on the Foreground.

Question

Reference of ocornut/imgui

Screenshot & Example code

スクリーンショット 2022-06-10 11 16 23

imgui.ForegroundDrawList().
		AddText(
			imgui.Vec2{X: 10, Y: 10},
			imgui.PackedColor(0xFFFFFFFF),
			"Hi, this text is \ndrawn by GetForegroundDrawList",
		)

P.S.

Thank you for publishing this wonderful repository.
imgui-go is a simple and very easy to use project.

@dertseha dertseha merged commit b51a58d into inkyblackness:main Jun 18, 2022
@dertseha
Copy link
Copy Markdown
Member

Thank you for your contribution!
I would be very grateful if you could showcase this as well by expanding the Go demo window. This, in case it has an equivalent place like in the original ImGui demo window. However, this being a very specific function, I suspect this may be a lot of work in order to mimic the original. So it is OK if that's a little too big of a task compared to the extension.

@kaishuu0123
Copy link
Copy Markdown
Contributor Author

Thanks for the merge!

I would be very grateful if you could showcase this as well by expanding the Go demo window. This, in case it has an equivalent place like in the original ImGui demo window. However, this being a very specific function, I suspect this may be a lot of work in order to mimic the original. So it is OK if that's a little too big of a task compared to the extension.

If I can make time to write a demo, I will give it a try.

@kaishuu0123 kaishuu0123 deleted the feat/get-foreground-drawlist branch June 27, 2022 02:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants