public abstract class

Texture

extends Object
java.lang.Object
   ↳ com.cooliris.media.Texture
Known Direct Subclasses

Summary

Constants
int STATE_ERROR
int STATE_LOADED
int STATE_LOADING
int STATE_QUEUED
int STATE_UNLOADED
Public Constructors
Texture()
Public Methods
final void clear()
final int getHeight()
final float getNormalizedHeight()
final float getNormalizedWidth()
final int getState()
final int getWidth()
boolean isCached()
final boolean isLoaded()
boolean isUncachedVideo()
Protected Methods
abstract Bitmap load(RenderView view)
Returns a bitmap, or null if an error occurs.
boolean shouldQueue()
If this returns true, the texture will be enqueued.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int STATE_ERROR

Constant Value: 4 (0x00000004)

public static final int STATE_LOADED

Constant Value: 3 (0x00000003)

public static final int STATE_LOADING

Constant Value: 2 (0x00000002)

public static final int STATE_QUEUED

Constant Value: 1 (0x00000001)

public static final int STATE_UNLOADED

Constant Value: 0 (0x00000000)

Public Constructors

public Texture ()

Public Methods

public final void clear ()

public final int getHeight ()

public final float getNormalizedHeight ()

public final float getNormalizedWidth ()

public final int getState ()

public final int getWidth ()

public boolean isCached ()

public final boolean isLoaded ()

public boolean isUncachedVideo ()

Protected Methods

protected abstract Bitmap load (RenderView view)

Returns a bitmap, or null if an error occurs.

protected boolean shouldQueue ()

If this returns true, the texture will be enqueued.