public class RenderDeviceJme
extends java.lang.Object
implements de.lessvoid.nifty.spi.render.RenderDevice
Constructor and Description |
---|
RenderDeviceJme(NiftyJmeDisplay display) |
Modifier and Type | Method and Description |
---|---|
void |
beginFrame() |
void |
clear() |
de.lessvoid.nifty.spi.render.RenderFont |
createFont(java.lang.String filename) |
de.lessvoid.nifty.spi.render.RenderImage |
createImage(java.lang.String filename,
boolean linear) |
de.lessvoid.nifty.spi.render.MouseCursor |
createMouseCursor(java.lang.String str,
int x,
int y) |
void |
disableClip() |
void |
disableMouseCursor() |
void |
enableClip(int x0,
int y0,
int x1,
int y1) |
void |
enableMouseCursor(de.lessvoid.nifty.spi.render.MouseCursor cursor) |
void |
endFrame() |
int |
getHeight() |
int |
getWidth() |
void |
renderFont(de.lessvoid.nifty.spi.render.RenderFont font,
java.lang.String str,
int x,
int y,
de.lessvoid.nifty.tools.Color color,
float sizeX,
float sizeY) |
void |
renderImage(de.lessvoid.nifty.spi.render.RenderImage image,
int x,
int y,
int width,
int height,
de.lessvoid.nifty.tools.Color color,
float imageScale) |
void |
renderImage(de.lessvoid.nifty.spi.render.RenderImage image,
int x,
int y,
int w,
int h,
int srcX,
int srcY,
int srcW,
int srcH,
de.lessvoid.nifty.tools.Color color,
float scale,
int centerX,
int centerY) |
void |
renderQuad(int x,
int y,
int width,
int height,
de.lessvoid.nifty.tools.Color color) |
void |
renderQuad(int x,
int y,
int width,
int height,
de.lessvoid.nifty.tools.Color topLeft,
de.lessvoid.nifty.tools.Color topRight,
de.lessvoid.nifty.tools.Color bottomRight,
de.lessvoid.nifty.tools.Color bottomLeft) |
void |
setBlendMode(de.lessvoid.nifty.render.BlendMode blendMode) |
void |
setRenderManager(RenderManager rm) |
void |
setResourceLoader(de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader niftyResourceLoader) |
public RenderDeviceJme(NiftyJmeDisplay display)
public void setResourceLoader(de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader niftyResourceLoader)
setResourceLoader
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void setRenderManager(RenderManager rm)
public de.lessvoid.nifty.spi.render.MouseCursor createMouseCursor(java.lang.String str, int x, int y)
createMouseCursor
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void enableMouseCursor(de.lessvoid.nifty.spi.render.MouseCursor cursor)
enableMouseCursor
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void disableMouseCursor()
disableMouseCursor
in interface de.lessvoid.nifty.spi.render.RenderDevice
public de.lessvoid.nifty.spi.render.RenderImage createImage(java.lang.String filename, boolean linear)
createImage
in interface de.lessvoid.nifty.spi.render.RenderDevice
public de.lessvoid.nifty.spi.render.RenderFont createFont(java.lang.String filename)
createFont
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void beginFrame()
beginFrame
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void endFrame()
endFrame
in interface de.lessvoid.nifty.spi.render.RenderDevice
public int getWidth()
getWidth
in interface de.lessvoid.nifty.spi.render.RenderDevice
public int getHeight()
getHeight
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void clear()
clear
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void setBlendMode(de.lessvoid.nifty.render.BlendMode blendMode)
setBlendMode
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void renderFont(de.lessvoid.nifty.spi.render.RenderFont font, java.lang.String str, int x, int y, de.lessvoid.nifty.tools.Color color, float sizeX, float sizeY)
renderFont
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void renderImage(de.lessvoid.nifty.spi.render.RenderImage image, int x, int y, int w, int h, int srcX, int srcY, int srcW, int srcH, de.lessvoid.nifty.tools.Color color, float scale, int centerX, int centerY)
renderImage
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void renderImage(de.lessvoid.nifty.spi.render.RenderImage image, int x, int y, int width, int height, de.lessvoid.nifty.tools.Color color, float imageScale)
renderImage
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void renderQuad(int x, int y, int width, int height, de.lessvoid.nifty.tools.Color color)
renderQuad
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void renderQuad(int x, int y, int width, int height, de.lessvoid.nifty.tools.Color topLeft, de.lessvoid.nifty.tools.Color topRight, de.lessvoid.nifty.tools.Color bottomRight, de.lessvoid.nifty.tools.Color bottomLeft)
renderQuad
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void enableClip(int x0, int y0, int x1, int y1)
enableClip
in interface de.lessvoid.nifty.spi.render.RenderDevice
public void disableClip()
disableClip
in interface de.lessvoid.nifty.spi.render.RenderDevice