diff options
author | Sven Gothel <[email protected]> | 2012-09-28 18:52:57 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-09-28 18:52:57 +0200 |
commit | 52b499095dbe18d6a8f4383093e840480d50e930 (patch) | |
tree | 8b1b19a3e67d09ca696530a8a2eb2ce203739fa6 /src/jogl/classes/com | |
parent | e4176f4e76f519b3599ad557210def3d35266e7b (diff) |
Texture: Clarifiy API doc of getTextureObject(GL)
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java index 15dd19ea9..6e66e3d03 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java +++ b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java @@ -833,9 +833,14 @@ public class Texture { } /** - * Returns the underlying OpenGL texture object for this texture. + * Returns the underlying OpenGL texture object for this texture + * and generates it if not done yet. + * <p> * Most applications will not need to access this, since it is * handled automatically by the bind(GL) and destroy(GL) APIs. + * </p> + * @param gl required to be valid and current in case the texture object has not been generated yet, + * otherwise it may be <code>null</code>. */ public int getTextureObject(GL gl) { validateTexID(gl, false); |