org.xith3d.scenegraph
Interface Texture2DCanvas.DrawCallback2D

All Known Implementing Classes:
Texture2DCanvas.DrawCallback2DAdapter
Enclosing class:
Texture2DCanvas

public static interface Texture2DCanvas.DrawCallback2D


Method Summary
 void drawTexture(Texture2DCanvas texCanvas, int texWidth, int texHeight, int minSize)
          This callback is invoked, when the Texture needs to be redrawn.
 boolean needsRedraw()
           
 

Method Detail

needsRedraw

boolean needsRedraw()

drawTexture

void drawTexture(Texture2DCanvas texCanvas,
                 int texWidth,
                 int texHeight,
                 int minSize)
This callback is invoked, when the Texture needs to be redrawn.

Parameters:
texCanvas - the Texture2DCanvas to draw on.
texWidth - the (original) width of the texture
texHeight - the (original) height of the texture
minSize - the result of Math.min( texWidth, texHeight )