I have several questions regarding Exercise 10 instructions:
What does reload mean here? I guess it does not mean reload image from disk...reload darmstadt.jpg for every box,...
Does it mean each image should be loaded once for each cube? or rather that each image could be loaded only once while textures are instantiated/updated for each cube?...pretend that every box has a different texture
I'm a bit lost here =/ https://www.reddit.com/r/ProgrammerHumo ... e_threads/Beware, neither OpenGL nor Direct3D is thread safe - you can't just create a Texture in a second thread. But you can create a Kore::Image in another thread, access it's pixels in the main thread and put them in a Kore::Texture using lock/unlock.
using lock/unlock: use the lock/unlock methods of the Kore::Texture class? or declare our own mutex instead?
What does access it's pixels mean here? is it image.data? Ideally I would like to write something similar to:
Code: Alles auswählen
cubeNear.getTexture().setImage(highResImage);
So far I have managed to make textures disappear (they appear black) when close enough ^^'
Thanks for your help,
Best Regards,
PicoJr.