android.opengl
Class ETC1Util

java.lang.Object
  extended by android.opengl.ETC1Util

public class ETC1Util
extends Object


Nested Class Summary
static class ETC1Util.ETC1Texture
           
 
Constructor Summary
ETC1Util()
           
 
Method Summary
static ETC1Util.ETC1Texture compressTexture(Buffer input, int width, int height, int pixelSize, int stride)
           
static ETC1Util.ETC1Texture createTexture(InputStream input)
           
static boolean isETC1Supported()
           
static void loadTexture(int target, int level, int border, int fallbackFormat, int fallbackType, ETC1Util.ETC1Texture texture)
           
static void loadTexture(int target, int level, int border, int fallbackFormat, int fallbackType, InputStream input)
           
static void writeTexture(ETC1Util.ETC1Texture texture, OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ETC1Util

public ETC1Util()
Method Detail

loadTexture

public static void loadTexture(int target,
                               int level,
                               int border,
                               int fallbackFormat,
                               int fallbackType,
                               InputStream input)
                        throws IOException
Throws:
IOException

loadTexture

public static void loadTexture(int target,
                               int level,
                               int border,
                               int fallbackFormat,
                               int fallbackType,
                               ETC1Util.ETC1Texture texture)

isETC1Supported

public static boolean isETC1Supported()

createTexture

public static ETC1Util.ETC1Texture createTexture(InputStream input)
                                          throws IOException
Throws:
IOException

compressTexture

public static ETC1Util.ETC1Texture compressTexture(Buffer input,
                                                   int width,
                                                   int height,
                                                   int pixelSize,
                                                   int stride)

writeTexture

public static void writeTexture(ETC1Util.ETC1Texture texture,
                                OutputStream output)
                         throws IOException
Throws:
IOException


Copyright © 2008-2012. All Rights Reserved.