public class BitmapTexture extends BasicTexture
BitMap纹理渲染
BasicRenderer.AsyncLoadTask<O>Texture.Stateheight, id, state, widthSTATE_ERROR, STATE_LOADED, STATE_UNLOADEDDEFAULT_PRIORITY, MODE_2D, MODE_3D| 限定符和类型 | 方法和说明 |
|---|---|
void |
bindData(ShaderProgram program) |
void |
draw(GLContext glContext) |
static BitmapTexture |
fromBitmap(GLContext glContext,
Coordinate coordinate,
android.graphics.Bitmap bitmap,
float scale,
float anchor_x,
float anchor_y,
java.lang.String name) |
float |
getOpacity() |
android.graphics.RectF |
getRectF(GLContext glContext) |
void |
onRemoved() |
boolean |
setOpacity(float opacity) |
getHeight, getId, getPriority, getState, getWidthbindIBO, bindVBO, bufferData, bufferData, bufferSubData, createBufferObject, createFloatBuffer, createShortBuffer, deleteBufferObject, deleteBufferObject, deleteTextures, unBindTexturepublic static BitmapTexture fromBitmap(GLContext glContext, Coordinate coordinate, android.graphics.Bitmap bitmap, float scale, float anchor_x, float anchor_y, java.lang.String name)
public void bindData(ShaderProgram program)
public void draw(GLContext glContext)
public void onRemoved()
onRemoved 在接口中 RendereronRemoved 在类中 BasicTexturepublic android.graphics.RectF getRectF(GLContext glContext)
public float getOpacity()
public boolean setOpacity(float opacity)