GLBasic forum

Main forum => GLBasic - en => Topic started by: bigsofty on 2011-Jan-21

Title: OpenGL rendering context pointer retrieval?
Post by: bigsofty on 2011-Jan-21
Hi,

This is mainly aimed at Gernot but if anyone else has relevant experience in this area it would be greatly appreciated.

I am trying to get a C++ 3D lib to work with GLB but it has it's own init that sets up a rendering context. GLB pre-sets up one, whether it is required or not. This is a problem I've run into in the past a lot, when trying to use 3rd part GFX libs unfortunately. 2 rendering contexts causes a clash.

I have a few choices here.

1) attempt to kill off GLB's context and continue
2) request a "no GFX" option from Gernot, feature
3) patch the lib to use the current GLB one

I would prefer option 2 but option 3 would work and avoid option 1 if possible.

Cheers,


Ian
Title: Re: OpenGL rendering context pointer retrieval?
Post by: Kitty Hello on 2011-Jan-21
2=easy: Console program.

3=might. You get the window handle to my hwnd with GLBASIC_HWND(). You can close my gl stuff and try that. Even better: Create a new child window over my gl window and use htat.
Title: Re: OpenGL rendering context pointer retrieval?
Post by: bigsofty on 2011-Jan-21
The console option sound like the best way to go. I would like to, in the long term, use this lib on the iOS platforms as well but, I believe, there is no console compile options that platform? Any suggestions Gernot?

Cheers,


Ian
Title: Re: OpenGL rendering context pointer retrieval?
Post by: Kitty Hello on 2011-Jan-21
oh. No, there's no way to disable the OpenGL so far. Trucidare however has a way to access (and thus destroy or overwrite) the UIView I use.
Title: Re: OpenGL rendering context pointer retrieval?
Post by: bigsofty on 2011-Jan-22
Thanks Gernot, I'll contact Trucidare once I've got the Windows version up and running.

I had the same problem with my iXors header conversion too if I remember correctly.

I would appreciate it, if you would consider adding a way not to open a GLB rendering context on iOS executables.

Many thanks,


Ian