Hello,
I made a threaded loader for the IO part of reading the texture from a harddisk, but ended up having trouble with JOGL, because one context cannot be used in different threads simultaneously…
So my problem is:
How do I create a new context in which I can create a texture object with JOGL, load texture data into the object(store the texture on the graphicscard) and then later share it with the rendering-context?
To sum up I need:
- Separate Rendering GLContext (for rendering Thread)
- Separate texture loading GLContext(for loading Thread)
- Ability to access both glcontexts at the same time, and finally to pass on the generated texture from loading-context -> rendering context