|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.effects.NiftyRenderDeviceProxy
public class NiftyRenderDeviceProxy
RenderDeviceProxy.
| Constructor Summary | |
|---|---|
NiftyRenderDeviceProxy()
|
|
| Method Summary | |
|---|---|
void |
beginFrame()
Called when a frame begins. |
void |
clear()
Clear the screen. |
RenderFont |
createFont(String name)
Create a new RenderFont. |
NiftyImage |
createImage(String name,
boolean filterLinear)
Create a new Image. |
void |
disableClip()
Disable the clipping. |
void |
displayResolutionChanged()
This is called from Nifty when it receives the resolutionChange notify from application code. |
void |
disposeImage(RenderImage image)
Dispose image. |
void |
enableClip(int x0,
int y0,
int x1,
int y1)
Enable clipping to the given region. |
void |
endFrame()
Called when a frame ends. |
RenderFont |
getFont()
get font. |
int |
getHeight()
Get Height of Display mode. |
RenderDevice |
getRenderDevice()
Get RenderDevice. |
Set<RenderStateType> |
getStates()
|
int |
getWidth()
Get Width of Display mode. |
boolean |
isColorAlphaChanged()
return true when color alpha has been changed. |
boolean |
isColorChanged()
return true when color has been changed. |
void |
moveTo(float param,
float param2)
Move to the given x/y position. |
RenderImage |
reload(RenderImage image)
Dispose the given image and reload it. |
void |
renderImage(NiftyImage image,
int x,
int y,
int width,
int height)
Render Image. |
void |
renderQuad(int x,
int y,
int width,
int height)
render a quad. |
void |
renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft)
Renders a quad with different colors at the quad vertices. |
void |
renderText(String text,
int x,
int y,
int selectionStart,
int selectionEnd,
Color c)
renderText. |
void |
reset()
|
void |
restoreState()
restore states. |
void |
saveState(Set<RenderStateType> statesToSave)
save given states. |
void |
setBlendMode(BlendMode blendMode)
Set BlendMode. |
void |
setColor(Color colorParam)
Set a new color. |
void |
setColorAlpha(float newColorAlpha)
set only the color alpha. |
void |
setColorIgnoreAlpha(Color color)
Set only the color component of the given color. |
void |
setFont(RenderFont font)
set font. |
void |
setGlobalPosition(float pos,
float pos2)
set global position. |
void |
setImageScale(float scale)
set image size. |
void |
setRenderTextSize(float size)
Set RenderTextSize. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NiftyRenderDeviceProxy()
| Method Detail |
|---|
public void beginFrame()
NiftyRenderEngine
beginFrame in interface NiftyRenderEnginepublic void endFrame()
NiftyRenderEngine
endFrame in interface NiftyRenderEnginepublic void clear()
NiftyRenderEngine
clear in interface NiftyRenderEnginepublic RenderFont createFont(String name)
NiftyRenderEngine
createFont in interface NiftyRenderEnginename - name of the font
public NiftyImage createImage(String name,
boolean filterLinear)
NiftyRenderEngine
createImage in interface NiftyRenderEnginename - file name to usefilterLinear - filter
public void disableClip()
NiftyRenderEngine
disableClip in interface NiftyRenderEngine
public void enableClip(int x0,
int y0,
int x1,
int y1)
NiftyRenderEngine
enableClip in interface NiftyRenderEnginex0 - x0y0 - y0x1 - x1y1 - y1public int getHeight()
NiftyRenderEngine
getHeight in interface NiftyRenderEnginepublic int getWidth()
NiftyRenderEngine
getWidth in interface NiftyRenderEnginepublic void setColor(Color colorParam)
NiftyRenderEngine
setColor in interface NiftyRenderEnginecolorParam - new current color to setpublic void setColorAlpha(float newColorAlpha)
NiftyRenderEngine
setColorAlpha in interface NiftyRenderEnginenewColorAlpha - new alpha valuepublic void setColorIgnoreAlpha(Color color)
NiftyRenderEngine
setColorIgnoreAlpha in interface NiftyRenderEnginecolor - colorpublic boolean isColorChanged()
NiftyRenderEngine
isColorChanged in interface NiftyRenderEnginepublic boolean isColorAlphaChanged()
NiftyRenderEngine
isColorAlphaChanged in interface NiftyRenderEngine
public void moveTo(float param,
float param2)
NiftyRenderEngine
moveTo in interface NiftyRenderEngineparam - xparam2 - y
public void renderImage(NiftyImage image,
int x,
int y,
int width,
int height)
NiftyRenderEngine
renderImage in interface NiftyRenderEngineimage - the image to renderx - the x position on the screeny - the y position on the screenwidth - the widthheight - the height
public void renderQuad(int x,
int y,
int width,
int height)
NiftyRenderEngine
renderQuad in interface NiftyRenderEnginex - xy - ywidth - widthheight - height
public void renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft)
NiftyRenderEngine
renderQuad in interface NiftyRenderEngine
public void renderText(String text,
int x,
int y,
int selectionStart,
int selectionEnd,
Color c)
NiftyRenderEngine
renderText in interface NiftyRenderEnginetext - textx - xy - yselectionStart - selection startselectionEnd - selection endc - color for text selectionspublic void restoreState()
NiftyRenderEngine
restoreState in interface NiftyRenderEnginepublic void saveState(Set<RenderStateType> statesToSave)
NiftyRenderEngine
saveState in interface NiftyRenderEnginestatesToSave - set of renderstates to savepublic void setFont(RenderFont font)
NiftyRenderEngine
setFont in interface NiftyRenderEnginefont - fontpublic RenderFont getFont()
NiftyRenderEngine
getFont in interface NiftyRenderEngine
public void setGlobalPosition(float pos,
float pos2)
NiftyRenderEngine
setGlobalPosition in interface NiftyRenderEnginepos - xpos2 - ypublic void setImageScale(float scale)
NiftyRenderEngine
setImageScale in interface NiftyRenderEnginescale - new image sizepublic void setRenderTextSize(float size)
NiftyRenderEngine
setRenderTextSize in interface NiftyRenderEnginesize - sizepublic void setBlendMode(BlendMode blendMode)
NiftyRenderEngine
setBlendMode in interface NiftyRenderEnginepublic RenderDevice getRenderDevice()
NiftyRenderEngine
getRenderDevice in interface NiftyRenderEnginepublic void disposeImage(RenderImage image)
NiftyRenderEngine
disposeImage in interface NiftyRenderEngineimage - image to disposepublic void displayResolutionChanged()
NiftyRenderEngine
displayResolutionChanged in interface NiftyRenderEnginepublic void reset()
public Set<RenderStateType> getStates()
public RenderImage reload(RenderImage image)
NiftyRenderEngine
reload in interface NiftyRenderEngineimage - image
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||