Get Window Handle in OpenGL (and on Mac)

BlitzMax Forums/BlitzMax Programming/Get Window Handle in OpenGL (and on Mac)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

@Tommo: Wow that seems pretty neat! I haven't tried it out yet though. So that's a non-module hack solution, which is my perference. I can try it on Mac too.

@Brucey: Yeah that command you've invented would be fantastic. I often use the window handle to pass to various Windows and Mac API functions. For example I get the moues cursor relative to the desktop so I can slide it smoothly in and out of the BMax window. Also I like to reposition the window centrally on the desktop. I know there are module hacks for those (which you specialise in) but I prefer not to do them as I'd have to re-do them after every BMax update and also get anyone else using my framework to do them. I know it's a self-imposed resistance to a useful solution though...