Search in sources :

Example 1 with SmartTexture

use of com.watabou.gltextures.SmartTexture in project PD-classes by watabou.

the class Image method texture.

public void texture(Object tx) {
    texture = tx instanceof SmartTexture ? (SmartTexture) tx : TextureCache.get(tx);
    frame(new RectF(0, 0, 1, 1));
}
Also used : RectF(android.graphics.RectF) SmartTexture(com.watabou.gltextures.SmartTexture)

Example 2 with SmartTexture

use of com.watabou.gltextures.SmartTexture in project pixel-dungeon by watabou.

the class HeroSprite method tiers.

public static TextureFilm tiers() {
    if (tiers == null) {
        SmartTexture texture = TextureCache.get(Assets.ROGUE);
        tiers = new TextureFilm(texture, texture.width, FRAME_HEIGHT);
    }
    return tiers;
}
Also used : SmartTexture(com.watabou.gltextures.SmartTexture) TextureFilm(com.watabou.noosa.TextureFilm)

Aggregations

SmartTexture (com.watabou.gltextures.SmartTexture)2 RectF (android.graphics.RectF)1 TextureFilm (com.watabou.noosa.TextureFilm)1