pixel icon indicating copy to clipboard operation
pixel copied to clipboard

Does Pixel support embedding in other GUI widgets?

Open NaniteFactory opened this issue 5 years ago • 5 comments

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.

NaniteFactory avatar Aug 02 '18 09:08 NaniteFactory

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

faiface avatar Sep 02 '18 15:09 faiface

@NaniteFactory Did you ever get anywhere with this?

hamogor avatar Oct 07 '19 13:10 hamogor

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

NaniteFactory avatar Oct 11 '19 05:10 NaniteFactory

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.

dusk125 avatar Jul 15 '20 13:07 dusk125

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?

Asday avatar Jul 15 '20 17:07 Asday