Page 1 of 1

Render MiniGL in a window

PostPosted: Sun Jan 06, 2019 1:56 am
by AmiDARK
When we create
1. A window in the Workbench screen
or
1b. A custom screen with a window inside it.

How can we setup MiniGL to render it inside the window or screen ?
All samples availables always uses SDL or GLUT.
does it exist any sample not using them but that directly setup MiniGL inside a window or customscreen ?

Thank you.
Regards,

Re: Render MiniGL in a window

PostPosted: Sun Jan 06, 2019 3:03 am
by broadblues
You need to render to a bitmap and then blit that into the window.

See the ghost system in blender (though it's not exactly a trivial example).

get the src and look in from os4depot

blender/intern/ghost/intern/GHOST_#?OS4.cpp

Re: Render MiniGL in a window

PostPosted: Sun Jan 06, 2019 3:45 pm
by AmiDARK
Thank you Broadblues.
I will check the Blender source code to understand how it works...
And I'll do my system :)