/** * Sets the id for this texture in regards to the given OpenGL context. * * @param context * the OpenGL context this texture belongs to. * @param textureId * the texture id of this texture. To be valid, this must be greater than 0. * @throws IllegalArgumentException * if textureId is less than or equal to 0. */ public void setTextureIdForContext(final RenderContext context, final int textureId) { _key.setTextureIdForContext(context, textureId); }
/** * Sets the id for this texture in regards to the given OpenGL context. * * @param glContext * the object representing the OpenGL context this texture belongs to. See * {@link RenderContext#getGlContextRep()} * @param textureId * the texture id of this texture. To be valid, this must be greater than 0. * @throws IllegalArgumentException * if textureId is less than or equal to 0. */ public void setTextureIdForContext(final Object glContext, final int textureId) { _key.setTextureIdForContext(glContext, textureId); }