| Constructor and Description |
|---|
YMFRender(int programType) |
| Modifier and Type | Method and Description |
|---|---|
void |
clip(int inWidth,
int inHeight,
int outWidth,
int outHeight)
adjust texture coordinates
|
void |
flipHorizontal()
flip texture horizontally
|
void |
flipVertical()
flip texture vertically
|
static int |
imageFormatToProgramType(int imageFormat) |
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
|
public static int imageFormatToProgramType(int imageFormat)
public boolean prepareInputImageData(YMFImageBuffer buffer)
IRenderprepareInputImageData in interface IRenderbuffer - input image bufferpublic boolean prepareInputTexture(YMFTexture texture)
IRenderprepareInputTexture in interface IRendertexture - input texture as source of the renderpublic void prepareWaterTexture(YMFTexture texture)
IRenderprepareWaterTexture in interface IRendertexture - water mark texturepublic boolean prepareOutputTexture(YMFTexture texture)
IRenderprepareOutputTexture in interface IRendertexture - output texturepublic void flipHorizontal()
IRenderflipHorizontal in interface IRenderpublic void flipVertical()
IRenderflipVertical in interface IRenderpublic void rotate(int angle)
IRenderpublic void clip(int inWidth,
int inHeight,
int outWidth,
int outHeight)
IRenderpublic void render()
IRender