|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.ar.ar3D.core.TextureFactory
public class TextureFactory
Holds all textures manipulation
Method Summary | |
---|---|
static TextureFactory |
getInstance()
Returns an instance of TextureFactory |
int |
getTexture(Bitmap bitmap,
boolean recycle)
|
int |
getTexture(int id)
Returns the texture id for an app resource. |
int |
getTexture(java.lang.String uri)
Returns the texture id for an URI. |
static void |
init(Context c,
GL10 gl)
Initializes texture factory instance |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TextureFactory getInstance()
public int getTexture(Bitmap bitmap, boolean recycle)
public int getTexture(int id)
GL10#glBindTexture(int, int)
id
- the resource id
public int getTexture(java.lang.String uri)
GL10#glBindTexture(int, int)
uri
- the absolute uri for the resource
public static void init(Context c, GL10 gl)
c
- App contextgl
- GL10 context to generate the textures
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |