View Full Version : Multiple texture object sharing same texturedata?
12-15-2011, 01:51 AM
I wonder if there is some way to have multiple texture objects (with different wrapping for example) setup initially using the same texture data that has been pushed to the gpu with glTexImage2D?
You could change the texture object while drawing of course but it would be nice to be able to setup multiple textureobjects initially (sharing the same texturedata) and just use them.
12-15-2011, 02:07 AM
The purpose of sampler objects (http://www.opengl.org/registry/specs/ARB/sampler_objects.txt) is to be able to separate texture data from texture parameters. So you have one texture, but multiple ways to sample from it.
12-15-2011, 02:13 AM
Thank you! Now I just need to figure out if that extension is available in OpenGL ES 2.0.
12-15-2011, 02:25 AM
These are the extensions available on my HTC Desire HD Android phone. Doesn't look like the GL_ARB_sampler_objects is supported.
12-15-2011, 02:30 AM
This is an OpenGL forum, not an OpenGL ES forum. If you wanted an answer specific to GL ES, you should have at least mentioned it in your initial inquiry. Then, I could have told you, "Desktop GL has sampler objects, but GL ES has no equivalent, so there's nothing you can do except change your texture parameters as needed."
12-15-2011, 02:37 AM
Have I understood it correctly that there are a number of extensions available for lets say OpenGL ES 2.0 ->
but it's up to the various vendors to choose which ones to support?
EDIT : Ah, I missed that there is ES forum. Thanks for pointing it out! Sorry for cluttering this forum with ES specific stuff...
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.