public abstract class AbstractDynamicTexture extends java.lang.Object implements IDynamicTexture
| Constructor and Description |
|---|
AbstractDynamicTexture() |
| Modifier and Type | Method and Description |
|---|---|
int |
createTexture(android.graphics.Bitmap bitmap,
int width,
int height,
float xRatio,
float yRatio)
需要在OpenGL线程调用
|
int |
createTexture(android.graphics.Bitmap bitmap,
int width,
int height,
int xOffset,
int yOffSet) |
void |
deleteTexture(int textureId)
释放texture
|
int |
getXVisibleoffset(int width,
int height) |
int |
getYVisibleoffset(int width,
int height) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDynamicTextureId, onDoFrame, onReleasepublic int createTexture(android.graphics.Bitmap bitmap,
int width,
int height,
float xRatio,
float yRatio)
bitmap - 格式需要是Bitmap.Config.ARGB_8888public int createTexture(android.graphics.Bitmap bitmap,
int width,
int height,
int xOffset,
int yOffSet)
public void deleteTexture(int textureId)
textureId - createTexture创建的textureIdpublic int getXVisibleoffset(int width,
int height)
public int getYVisibleoffset(int width,
int height)