BlackBox/Wine/OpenGL

Usage of the framework, compiler and tools
Post Reply
Volkert
Posts: 3
Joined: Fri Apr 04, 2014 8:29 pm
Location: Laufenburg, Germany

BlackBox/Wine/OpenGL

Post by Volkert »

Dear all,

i am trying BlackBox under Wine/Ubuntu (Windows free zone here ;-) ). It looks quite stable and fast, but the
OGL Subsystem (http://www.zinnamturm.eu/downloadsOS.htm#Ogl) seams not work with Wine.

Is there a way to tell Wine to support OpenGL?

BW,
Volkert
User avatar
Ivan Denisov
Posts: 362
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: BlackBox/Wine/OpenGL

Post by Ivan Denisov »

Volkert wrote:Is there a way to tell Wine to support OpenGL?
Wine has good support of OpenGL from the box.

You can find my lessons with that subsystem here:
http://oberoncore.ru/bbcc/subs/ogl/lessons
They are all working well with Wine.

I am using this OGL and SDL:
http://oberon.molpit.com/packs/Sdl.txt

If you will have questions, I will be happy to provide the support.
Volkert-1
Posts: 4
Joined: Fri Jan 13, 2017 6:50 pm

Re: BlackBox/Wine/OpenGL

Post by Volkert-1 »

i few days later ..... ;-)

With the latest BB1.7 (Ubuntu 16.04, Wine 1.6.2) i still get an "TRAP3" when using OGL. None of the OGL-Quick-Start Examples is working.

Here is were the examples are halting.

>> PROCEDURE OglContext.Init

>> bResult := WinApi.wglMakeCurrent(rc.dib.hdc, rc.hglrc);
>> ASSERT(bResult # WinApi.FALSE, 103);

No hints?

Volkert
User avatar
Ivan Denisov
Posts: 362
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: BlackBox/Wine/OpenGL

Post by Ivan Denisov »

The way to use OpenGL with Wine is different. You can not use it in MDI BlackBox windows context.
Separate windows should be created with SDL.
Also for Linux you can make native OpenGL application. I will make an video tutorial how to do this soon.
Volkert-1
Posts: 4
Joined: Fri Jan 13, 2017 6:50 pm

Re: BlackBox/Wine/OpenGL

Post by Volkert-1 »

Ok, looking forward to watch your tutorial :-)

Thanks,
Vokert
Volkert-1
Posts: 4
Joined: Fri Jan 13, 2017 6:50 pm

Re: BlackBox/Wine/OpenGL

Post by Volkert-1 »

i tried with the latest wine (wine-2.0 (Staging). no crashes, but the colors are wrong ... Volkert
Post Reply