Render MiniGL in a window

This forum is for general developer support questions.
Post Reply
AmiDARK
Posts: 40
Joined: Thu Oct 20, 2011 9:23 am

Render MiniGL in a window

Post 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,
Sam440EP - AmigaOS 4.1 Final Edition
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: Render MiniGL in a window

Post 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
AmiDARK
Posts: 40
Joined: Thu Oct 20, 2011 9:23 am

Re: Render MiniGL in a window

Post by AmiDARK »

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
Post Reply