org.xith3d.ui.hud.utils
Class DrawUtils
java.lang.Object
org.xith3d.ui.hud.utils.DrawUtils
public class DrawUtils
- extends java.lang.Object
Keeps static methods for Widget drawing.
|
Method Summary |
static void |
clearImage(org.openmali.vecmath2.Colorf color,
Texture2D texture,
TileMode tileMode,
Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height)
Clears the given area with the given image. |
static void |
drawImage(org.openmali.vecmath2.Colorf color,
Texture2D texture,
TileMode tileMode,
Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height)
Renders the given image to the given area and mixes the pixel colors, if the image has an alpha channel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrawUtils
public DrawUtils()
drawImage
public static void drawImage(org.openmali.vecmath2.Colorf color,
Texture2D texture,
TileMode tileMode,
Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height)
- Renders the given image to the given area and mixes the pixel colors, if the image has an alpha channel.
- Parameters:
color - texture - tileMode - texCanvas - offsetX - offsetY - width - height -
clearImage
public static void clearImage(org.openmali.vecmath2.Colorf color,
Texture2D texture,
TileMode tileMode,
Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height)
- Clears the given area with the given image.
- Parameters:
color - texture - tileMode - texCanvas - offsetX - offsetY - width - height -