_styleName = capsule.readString("styleName", null); _pageTexture = (Texture) capsule.readSavable("pageTexture", null); _pageTexture = TextureManager.loadFromImage(_pageTexture.getImage(), _pageTexture.getMinificationFilter());
_styleName = capsule.readString("styleName", null); _pageTexture = (Texture) capsule.readSavable("pageTexture", null); _pageTexture = TextureManager.loadFromImage(_pageTexture.getImage(), _pageTexture.getMinificationFilter());
@Override protected void takedownForSingleTexDraw(final Texture tex) { // automatically generate mipmaps for our texture. if (tex.getMinificationFilter().usesMipMapLevels()) { LwjglTextureStateUtil.doTextureBind(tex, 0, true); EXTFramebufferObject.glGenerateMipmapEXT(LwjglTextureStateUtil.getGLType(tex.getType())); } }
@Override protected void takedownForSingleTexDraw(final Texture tex) { final GL gl = GLContext.getCurrentGL(); // automatically generate mipmaps for our texture. if (tex.getMinificationFilter().usesMipMapLevels()) { JoglTextureStateUtil.doTextureBind(tex, 0, true); gl.glGenerateMipmap(JoglTextureStateUtil.getGLType(tex.getType())); } }
@Override public boolean equals(final Object other) { if (other == this) { return true; } if (!(other instanceof Texture)) { return false; } final Texture that = (Texture) other; if (getImage() != null && !getImage().equals(that.getImage())) { return false; } if (getImage() == null && that.getImage() != null) { return false; } if (getAnisotropicFilterPercent() != that.getAnisotropicFilterPercent()) { return false; } if (getMagnificationFilter() != that.getMagnificationFilter()) { return false; } if (getMinificationFilter() != that.getMinificationFilter()) { return false; } if (!_borderColor.equals(that._borderColor)) { return false; } return true; }
@Override protected void takedownForSingleTexDraw(final Texture tex) { if (isEnableMipGeneration()) { // automatically generate mipmaps for our texture, if supported. if (tex.getMinificationFilter().usesMipMapLevels()) { Lwjgl3TextureStateUtil.doTextureBind(tex, 0, true); GL30C.glGenerateMipmap(Lwjgl3TextureStateUtil.getGLType(tex.getType())); } } tex.getTextureKey().markClean(ContextManager.getCurrentContext()); }
if (texs.get(x).getMinificationFilter().usesMipMapLevels()) { final Texture tex = texs.get(x); if (tex.getMinificationFilter().usesMipMapLevels()) { Lwjgl3TextureStateUtil.doTextureBind(texs.get(x), 0, true); GL30C.glGenerateMipmap(Lwjgl3TextureStateUtil.getGLType(tex.getType()));
if (texs.get(x).getMinificationFilter().usesMipMapLevels()) { final Texture tex = texs.get(x); if (tex.getMinificationFilter().usesMipMapLevels()) { LwjglTextureStateUtil.doTextureBind(texs.get(x), 0, true); EXTFramebufferObject.glGenerateMipmapEXT(LwjglTextureStateUtil.getGLType(tex.getType()));
if (tex.getMinificationFilter().usesMipMapLevels()) { JoglTextureStateUtil.doTextureBind(tex, 0, true); gl.glGenerateMipmap(JoglTextureStateUtil.getGLType(tex.getType()));
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context) != 0) { throw new Ardor3dException("Texture is already setup and has id."); if (tex.getMinificationFilter().usesMipMapLevels()) { GL30C.glGenerateMipmap(Lwjgl3TextureStateUtil.getGLType(tex.getType()));
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context.getGlContextRep()) != 0) { throw new Ardor3dException("Texture is already setup and has id."); if (tex.getMinificationFilter().usesMipMapLevels()) { EXTFramebufferObject.glGenerateMipmapEXT(LwjglTextureStateUtil.getGLType(tex.getType()));
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context.getGlContextRep()) != 0) { throw new Ardor3dException("Texture is already setup and has id.");
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context.getGlContextRep()) != 0) { throw new Ardor3dException("Texture is already setup and has id.");
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context.getGlContextRep()) != 0) { throw new Ardor3dException("Texture is already setup and has id."); if (tex.getMinificationFilter().usesMipMapLevels()) { gl.glGenerateMipmap(JoglTextureStateUtil.getGLType(tex.getType()));
if (!texture.getMinificationFilter().usesMipMapLevels() && !texture.getTextureStoreFormat().isCompressed()) { } else if (texture.getMinificationFilter().usesMipMapLevels() && !image.hasMipmaps() && !texture.getTextureStoreFormat().isCompressed()) { } else if (texture.getMinificationFilter().usesMipMapLevels()) { max = mipSizes.length; } else if (texture.getMinificationFilter().usesMipMapLevels()) { max = mipSizes.length;
if (!texture.getMinificationFilter().usesMipMapLevels() && !texture.getTextureStoreFormat().isCompressed()) { } else if (texture.getMinificationFilter().usesMipMapLevels() && !image.hasMipmaps() && !texture.getTextureStoreFormat().isCompressed()) { } else if (texture.getMinificationFilter().usesMipMapLevels()) { max = mipSizes.length; } else if (texture.getMinificationFilter().usesMipMapLevels()) { max = mipSizes.length;
final int minFilter = JoglTextureUtil.getGLMinFilter(texture.getMinificationFilter());
final int minFilter = Lwjgl3TextureUtils.getGLMinFilter(texture.getMinificationFilter());
final int minFilter = LwjglTextureUtil.getGLMinFilter(texture.getMinificationFilter());
return false; if (getMinificationFilter() != that.getMinificationFilter()) { return false;