On 26 June 2023 13:18:08 EEST, Nathan mutex@tilde.club wrote:
Looks like I can send attachments, my GPG signature got sent. I will resend the file as an attachment. Sorry.
On Mon, Jun 26, 2023 at 11:15:46AM +0100, Nathan wrote:
Hello. I was wondering if anybody has GLFW3 knowledge, I can't figure out how to make the window floating. I tried defining GLFW_FLOATING to GLFW_TRUE but still nothing. Thank you ~mutex
...
Hi ~mutex,
I'm not sure what you mean by floating, as GLFW uses that word to mean "always on top". Assuming that's what you meant...
You need to call glfwWindowHint(GLFW_FLOATING, GLFW_TRUE);
...before `glfwCreateWindow'.
You should have also gotten a compiler warning about `GLFW_FLOATING' being already defined. Macros are defined with the `define' preprocessor directive, but that's not what "they" meant. :-) "They" usually don't ask you to define preprocessor macros, unless (very) explicitly stated (e.g. `#define NOMINMAX'). Usually you need to look around for an accompanying "set" function or bitfield.
If you meant floating vs tiled windows (in the X11 sense), you'll need to provide a bit more context...
Refs: https://www.glfw.org/docs/latest/group__window.html#ga7d9c8c62384b1e2821c4dc... https://www.glfw.org/docs/latest/window_guide.html#window_hints
Off topic, but it's probably better to include (minified) code snippets in the email text than requiring someone (e.g. me) to open the attachment to look at 3 lines of C(++). Of course, for 100s of lines of code, attachments or a link to a tildegit repo works better ;-)
Cheers, ~alzwded