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

Support GetForegroundDrawList #180

Merged
merged 1 commit into from
Jun 18, 2022
Merged

Support GetForegroundDrawList #180

merged 1 commit into from
Jun 18, 2022

Conversation

kaishuu0123
Copy link
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
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
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