/** * @param context * the OpenGL context this texture belongs to. * @return the texture id of this texture in the given context as an Integer object. If the texture is not found in * the given context, a 0 integer is returned. */ public Integer getTextureIdForContextAsInteger(final RenderContext context) { return _key.getTextureIdForContext(context); }
/** * @param glContext * the object representing the OpenGL context this texture belongs to. See * {@link RenderContext#getGlContextRep()} * @return the texture id of this texture in the given context. If the texture is not found in the given context, 0 * is returned. */ public int getTextureIdForContext(final Object glContext) { return _key.getTextureIdForContext(glContext); }
/** * @param glContext * the object representing the OpenGL context this texture belongs to. See * {@link RenderContext#getGlContextRep()} * @return the texture id of this texture in the given context as an Integer object. If the texture is not found in * the given context, a 0 integer is returned. */ public Integer getTextureIdForContextAsInteger(final Object glContext) { return _key.getTextureIdForContext(glContext); }
/** * @param context * the OpenGL context this texture belongs to. * @return the texture id of this texture in the given context. If the texture is not found in the given context, 0 * is returned. */ public int getTextureIdForContext(final RenderContext context) { return _key.getTextureIdForContext(context); }
final Integer id = key.getTextureIdForContext(context); if (id != 0) { idMap.put(context.getGlContextRef(), id);
for (final Object o : contextObjects) { idMap.put(o, key.getTextureIdForContext(o)); idMap.put(ContextManager.getCurrentContext().getGlContextRep(), key.getTextureIdForContext(null));
final Integer id = key.getTextureIdForContext(glRep); if (id != 0) { idMap.put(context.getGlContextRep(), id);