|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.nulldevice.NullRenderDevice
public class NullRenderDevice
| Constructor Summary | |
|---|---|
NullRenderDevice()
|
|
| Method Summary | |
|---|---|
void |
beginFrame()
Called every begin frame. |
void |
clear()
clear screen. |
RenderFont |
createFont(String filename)
Create a new RenderFont. |
RenderImage |
createImage(String filename,
boolean filterLinear)
Create a new RenderImage. |
MouseCursor |
createMouseCursor(String filename,
int hotspotX,
int hotspotY)
Create a new mouse cursor. |
void |
disableClip()
Disable Clipping. |
void |
disableMouseCursor()
Disable the current mouse cursor. |
void |
enableClip(int x0,
int y0,
int x1,
int y1)
Enable clipping to the given region. |
void |
enableMouseCursor(MouseCursor mouseCursor)
Enable the given mouse cursor. |
void |
endFrame()
Called every end frame. |
int |
getHeight()
Get Height. |
int |
getWidth()
Get Width. |
void |
renderFont(RenderFont font,
String text,
int x,
int y,
Color fontColor,
float size)
Render the given text at the given position. |
void |
renderImage(RenderImage image,
int x,
int y,
int width,
int height,
Color color,
float imageScale)
Render the image. |
void |
renderImage(RenderImage image,
int x,
int y,
int w,
int h,
int srcX,
int srcY,
int srcW,
int srcH,
Color color,
float scale,
int centerX,
int centerY)
Render a sub image of this image. |
void |
renderQuad(int x,
int y,
int width,
int height,
Color color)
Render a quad. |
void |
renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft)
Render a quad with different colors at the vertices. |
void |
setBlendMode(BlendMode renderMode)
Change the RenderMode to the given Mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullRenderDevice()
| Method Detail |
|---|
public void beginFrame()
RenderDevice
beginFrame in interface RenderDevicepublic void endFrame()
RenderDevice
endFrame in interface RenderDevicepublic void clear()
RenderDevice
clear in interface RenderDevicepublic RenderFont createFont(String filename)
RenderDevice
createFont in interface RenderDevicefilename - filename
public RenderImage createImage(String filename,
boolean filterLinear)
RenderDevice
createImage in interface RenderDevicefilename - filenamefilterLinear - filter
public void disableClip()
RenderDevice
disableClip in interface RenderDevice
public void enableClip(int x0,
int y0,
int x1,
int y1)
RenderDevice
enableClip in interface RenderDevicex0 - x0y0 - y0x1 - x1y1 - y1public int getHeight()
RenderDevice
getHeight in interface RenderDevicepublic int getWidth()
RenderDevice
getWidth in interface RenderDevice
public void renderFont(RenderFont font,
String text,
int x,
int y,
Color fontColor,
float size)
RenderDevice
renderFont in interface RenderDevicetext - text to renderx - x positiony - y positionfontColor - font colorsize - size
public void renderImage(RenderImage image,
int x,
int y,
int width,
int height,
Color color,
float imageScale)
RenderDevice
renderImage in interface RenderDevicex - xy - ywidth - wheight - hcolor - colorimageScale - image scale
public void renderImage(RenderImage image,
int x,
int y,
int w,
int h,
int srcX,
int srcY,
int srcW,
int srcH,
Color color,
float scale,
int centerX,
int centerY)
RenderDevice
renderImage in interface RenderDevicex - xy - yw - wh - hsrcX - source xsrcY - source ysrcW - source widthsrcH - source heightcolor - color
public void renderQuad(int x,
int y,
int width,
int height,
Color color)
RenderDevice
renderQuad in interface RenderDevicex - xy - ywidth - widthheight - heightcolor - color
public void renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft)
RenderDevice
renderQuad in interface RenderDevicepublic void setBlendMode(BlendMode renderMode)
RenderDevice
setBlendMode in interface RenderDevicerenderMode - RenderMode
public MouseCursor createMouseCursor(String filename,
int hotspotX,
int hotspotY)
RenderDevice
createMouseCursor in interface RenderDevicefilename - image file for the cursorhotspotX - hotspot x with 0 being left of the screenhotspotY - hotspot y with 0 being top of the screen
public void enableMouseCursor(MouseCursor mouseCursor)
RenderDevice
enableMouseCursor in interface RenderDevicemouseCursor - the mouse cursor to enablepublic void disableMouseCursor()
RenderDevice
disableMouseCursor in interface RenderDevice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||