Are you doing this with Lazarus? It has lazOpenGLContext package which works same time on most operating systems.
Are you doing this with Lazarus? It has lazOpenGLContext package which works same time on most operating systems.
Nope, I use my own code(that can be compiled by FreePascal and Delphi(7-2010, Win32 only)). Maybe some time later I will present my library with examples hereOriginally Posted by User137
Cool stuff! programs seems to work ok here. I experimented with this a while back see we use the same approach. You can not only load textures this way but also geometry into VBO/DPL, load and compile shader programs or any other OpenGL resource for that matter.
To bad that this approach requires a context switch I made a small grid bassed world system that would automaticly stream in new models/textures when needed but the switching of contexts gave me pretty large framedrops. Hope that OGL 4.X wil have a solution for this like DX10 and DX11.
I switch context only one time - for creating second context. After that all threads working without switching and waitingOriginally Posted by Luuk van Venrooij
WILL
Here the MacOS X version of demo compiled under MacOS X 10.6.3
Last edited by Andru; 04-10-2010 at 11:48 PM.
I tried your demo and it works. I assume that the music stopping when switching to different windows is intentional?
My PC is:
OS: Windows 7 Ultimate
CPU: Athlon II X2 240
GPU: Sapphire Radeon HD4850 512MB
Existence is pain
Why you so sure? OpenGL has a rule - "one thread - one context", so situation "will be send to the wrong threads" never will happen, and my demo works as you can see(only Windows version has a problem and it will be fixed the same way as MacOS X demo)Originally Posted by Luuk van Venrooij
Last edited by Andru; 05-10-2010 at 05:02 PM.
AthenaOfDelphi
Can you test this new demo for Windows, please?
Bookmarks