public interface IRender
| Modifier and Type | Method and Description |
|---|---|
void |
clip(int inWidth,
int inHeight,
int outWidth,
int outHeight,
int clipMode)
adjust texture coordinates, clipMode Refer to Constant.ClipMode
|
void |
flipHorizontal()
flip texture horizontally
|
void |
flipVertical()
flip texture vertically
|
boolean |
prepareInputImageData(YMFImageBuffer buffer)
prepare the input image data, used for image as input
|
boolean |
prepareInputTexture(YMFTexture texture)
prepare the input texture, bind input texture.
|
boolean |
prepareOutputTexture(YMFTexture texture)
prepare the output texture, bind framebuffer and so on.
|
void |
prepareWaterTexture(YMFTexture texture)
prepare water marker texture
|
void |
release()
release resource of this render
|
void |
render()
start render input texture to target output texture
|
void |
rotate(int angle)
rotate
|
boolean prepareInputTexture(YMFTexture texture)
texture - input texture as source of the renderboolean prepareInputImageData(YMFImageBuffer buffer)
buffer - input image buffervoid prepareWaterTexture(YMFTexture texture)
texture - water mark textureboolean prepareOutputTexture(YMFTexture texture)
texture - output texturevoid flipHorizontal()
void flipVertical()
void rotate(int angle)
angle - rotate angle (0, 90, 180, 270)void clip(int inWidth,
int inHeight,
int outWidth,
int outHeight,
int clipMode)
void render()
void release()