podgorskiy / bimpy

imgui for python
https://podgorskiy.github.io/bimpy/
MIT License
202 stars 33 forks source link

pass custom params in init #18

Open juauzynhu opened 5 years ago

juauzynhu commented 5 years ago

If possible, pass GLFW args (like GLFW_TRANSPARENT_FRAMEBUFFER, etc) on .init params

eg.: cpx.init(100,100,"name", GLFW_FLOATING | GLFW_HOVERED)

podgorskiy commented 3 years ago

Just added this feature. Now you can do:

ctx.init(600, 600, "Hello", decorated=False)

The whole list of possible arguments:

        bool resizable,
        bool visible,
        bool decorated,
        bool focused,
        bool auto_iconify,
        bool floating,
        bool maximized,
        bool transperent,
        bool focus_on_show,
        bool scale_to_monitor,
        bool full_screen

I did not upload this to pypi yet, but I will do it soonish as well as I'll update the documentation