OpenGL rendering context pointer retrieval?

Previous topic - Next topic

bigsofty

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
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

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.

bigsofty

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
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

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.

bigsofty

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
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)