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,
Render MiniGL in a window
Render MiniGL in a window
Sam440EP - AmigaOS 4.1 Final Edition
- broadblues
- AmigaOS Core Developer
- Posts: 600
- Joined: Sat Jun 18, 2011 2:40 am
- Location: Portsmouth, UK
- Contact:
Re: Render MiniGL in a window
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
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
Thank you Broadblues.
I will check the Blender source code to understand how it works...
And I'll do my system
I will check the Blender source code to understand how it works...
And I'll do my system
Sam440EP - AmigaOS 4.1 Final Edition