PDA

View Full Version : Sharing textures in multithreading app.



PittjePuck
03-16-2000, 05:55 AM
Moi! I have an windows application which uses a huge amount of textures (>6 MB).
The application itself allows to inspect the visualized data set (including textures) from different directions. Each rendering of a different direction is done in a separate thread. My question is: has anybody a hack of an idea how I can share texture objects among a number of threads for rendering ?

Thanks in advance
Pittje

Mike F
03-16-2000, 08:26 AM
Assuming you're using win32, try wglShareLists. The documentation states that this shares display lists between render-contexts, but in practice this seems to include textures as well.