Render MiniGL in a window

This forum is for general developer support questions.

Render MiniGL in a window

Postby AmiDARK » Sun Jan 06, 2019 1:56 am

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,
Sam440EP - AmigaOS 4.1 Final Edition
AmiDARK
 
Posts: 40
Joined: Thu Oct 20, 2011 10:23 am

Re: Render MiniGL in a window

Postby broadblues » Sun Jan 06, 2019 3:03 am

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
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 560
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: Render MiniGL in a window

Postby AmiDARK » Sun Jan 06, 2019 3:45 pm

Thank you Broadblues.
I will check the Blender source code to understand how it works...
And I'll do my system :)
Sam440EP - AmigaOS 4.1 Final Edition
AmiDARK
 
Posts: 40
Joined: Thu Oct 20, 2011 10:23 am


Return to General Developer Support

Who is online

Users browsing this forum: No registered users and 3 guests