Java Code Examples for javax.microedition.khronos.opengles.GL10#GL_LINEAR_MIPMAP_LINEAR
The following examples show how to use
javax.microedition.khronos.opengles.GL10#GL_LINEAR_MIPMAP_LINEAR .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TexturePackParser.java From tilt-game-android with MIT License | 6 votes |
private static int parseMinFilter(final Attributes pAttributes) { final String minFilter = SAXUtils.getAttributeOrThrow(pAttributes, TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER); if (minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_NEAREST)) { return GL10.GL_NEAREST; } else if (minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_LINEAR)) { return GL10.GL_LINEAR; } else if (minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_LINEAR_MIPMAP_LINEAR)) { return GL10.GL_LINEAR_MIPMAP_LINEAR; } else if (minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_LINEAR_MIPMAP_NEAREST)) { return GL10.GL_LINEAR_MIPMAP_NEAREST; } else if (minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_NEAREST_MIPMAP_LINEAR)) { return GL10.GL_NEAREST_MIPMAP_LINEAR; } else if (minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_NEAREST_MIPMAP_NEAREST)) { return GL10.GL_NEAREST_MIPMAP_NEAREST; } else { throw new IllegalArgumentException("Unexpected " + TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER + " attribute: '" + minFilter + "'."); } }
Example 2
Source File: TexturePackParser.java From 30-android-libraries-in-30-days with Apache License 2.0 | 6 votes |
private static int parseMinFilter(final Attributes pAttributes) { final String minFilter = SAXUtils.getAttributeOrThrow(pAttributes, TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER); if(minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_NEAREST)) { return GL10.GL_NEAREST; } else if(minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_LINEAR)) { return GL10.GL_LINEAR; } else if(minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_LINEAR_MIPMAP_LINEAR)) { return GL10.GL_LINEAR_MIPMAP_LINEAR; } else if(minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_LINEAR_MIPMAP_NEAREST)) { return GL10.GL_LINEAR_MIPMAP_NEAREST; } else if(minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_NEAREST_MIPMAP_LINEAR)) { return GL10.GL_NEAREST_MIPMAP_LINEAR; } else if(minFilter.equals(TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER_VALUE_NEAREST_MIPMAP_NEAREST)) { return GL10.GL_NEAREST_MIPMAP_NEAREST; } else { throw new IllegalArgumentException("Unexpected " + TexturePackParser.TAG_TEXTURE_ATTRIBUTE_MINFILTER + " attribute: '" + minFilter + "'."); } }