blob: 4d1a49d2b90a764d9123aa41dfaff24a0d964bc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package com.android.camera.support.glrenderer;
//Texture is a rectangular image which can be drawn on GLCanvas.
//The isOpaque() function gives a hint about whether the texture is opaque,
//so the drawing can be done faster.
//
//This is the current texture hierarchy:
//
//Texture
//-- ColorTexture
//-- FadeInTexture
//-- BasicTexture
// -- UploadedTexture
// -- BitmapTexture
// -- Tile
// -- ResourceTexture
// -- NinePatchTexture
// -- CanvasTexture
// -- StringTexture
//
public interface Texture {
public int getWidth();
public int getHeight();
public void draw(GLCanvas canvas, int x, int y);
public void draw(GLCanvas canvas, int x, int y, int w, int h);
public boolean isOpaque();
}
|