faiface / pixel

A hand-crafted 2D game library in Go
MIT License
4.45k stars 246 forks source link

Does Pixel support embedding in other GUI widgets? #130

Open NaniteFactory opened 6 years ago

NaniteFactory commented 6 years ago

There are several GUI frameworks out there like Qt, GTK, etc. Pixel is a great library for 2D game developments and I want it to integrate with them. Is there a way to embed Pixel canvases into other windows of GUI libraries? Thanks.

faiface commented 6 years ago

It might be possible, but I haven't attempted that and don't really know how to do it.

hamogor commented 4 years ago

@NaniteFactory Did you ever get anywhere with this?

NaniteFactory commented 4 years ago

@oref No, I haven't got a clue. But it'd be great if someone had this feature implemented in Pixel..

dusk125 commented 4 years ago

I've been working on embedding imgui widgets into a pixel window (and using the pixel rendering stack). I'm ironing out the last few issues to get it ready for general use; pixelui. If you were interested in embedding a different GUI framework, this could potentially be used as a guide; if you just wanted a gui system, this should just work for you.

Asday commented 4 years ago

Pixel renders with OpenGL and it seems like Qt supports embedding OpenGL views: https://doc.qt.io/archives/qt-4.8/qt-opengl-hellogl-example.html

Does that help at all?