|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.NodeComponent
org.xith3d.scenegraph.TextureImage
org.xith3d.scenegraph.TextureImage2D
public class TextureImage2D
TextureImage2D defines 2D TextureImage
as part of a Texture2D.
Application may define internal format hint for OpenGL that determines how image data should be stored in texture memory.
If both format and hint designate uncompressed formats, image will be transferred and stored in uncompressed form.
If both format and hint designate compressed formats, image will be transferred and stored compressed form.
If format designates uncompressed format and hint designates compressed format, image will be transferred in uncompressed form,
compressed by OpenGL driver and stored in texture memory in compressed form.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
java.awt.image.BufferedImage image)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
java.awt.image.BufferedImage image,
boolean yUp)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
boolean yUp)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
boolean yUp,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int orgWidth,
int orgHeight,
java.awt.image.BufferedImage image,
boolean yUp)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data)
Constructs a new TextureImage2D object. |
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data,
int dataLength)
Constructs a new TextureImage2D object. |
protected |
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data,
int dataLength,
boolean useBuffer,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data,
int dataLength,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
boolean yUp)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
boolean yUp,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data)
Constructs a new TextureImage2D object. |
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data,
int dataLength)
Constructs a new TextureImage2D object. |
protected |
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data,
int dataLength,
boolean useBuffer,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data,
int dataLength,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
|
|
TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
|
| Method Summary | ||
|---|---|---|
void |
clear(boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Clears the whole (used part of the) texture with a black-transparent color. |
|
void |
clear(org.openmali.vecmath2.Colorf color,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Clears the whole (used part of the) texture with the specified color. |
|
void |
clear(org.openmali.vecmath2.Colorf color,
int offsetX,
int offsetY,
int width,
int height,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Clears the given rectangle with the specified color. |
|
void |
clear(int offsetX,
int offsetY,
int width,
int height,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Clears the given rectangle with a black-transparent color. |
|
void |
clear(TextureImage2D srcTI,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and simply overwrites anything. |
|
void |
clear(TextureImage2D srcTI,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and simply overwrites anything. |
|
void |
clear(TextureImage2D srcTI,
int trgX,
int trgY,
int trgWidth,
int trgHeight,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and simply overwrites anything. |
|
void |
clear(TextureImage2D srcTI,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and simply overwrites anything. |
|
void |
clear(TextureImage2D srcTI,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int trgX,
int trgY,
int trgWidth,
int trgHeight,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and simply overwrites anything. |
|
void |
clear(TextureImage2D srcTI,
org.openmali.types.twodee.Rect2i srcRect,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and simply overwrites anything. |
|
void |
clearOutline(java.awt.Color color,
int offsetX,
int offsetY,
int width,
int height,
int lineWidth,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Clears the given rectangle's outline with the specified color. |
|
void |
clearPixelLine(byte[] pixels,
int pixelSize,
int startX,
int startY,
int length,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Clears a horizontal line of pixels. |
|
void |
clearUpdateList()
|
|
TextureImage2D |
cloneNodeComponent(boolean forceDuplicate)
|
|
protected java.awt.Graphics2D |
createGraphics2D()
|
|
void |
drawImage(TextureImage2D ti,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and honors the alpha channels (if any). |
|
void |
drawImage(TextureImage2D srcTI,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and honors the alpha channels (if any). |
|
void |
drawImage(TextureImage2D srcTI,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int trgX,
int trgY,
int trgWidth,
int trgHeight,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and honors the alpha channels (if any). |
|
void |
drawImage(TextureImage2D ti,
org.openmali.types.twodee.Rect2i srcRect,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Draws the given TextureImage2D onto this one and honors the alpha channels (if any). |
|
void |
drawPixelLine(byte[] pixels,
int pixelSize,
int startX,
int startY,
int length,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Fills the complete (used part of the) texture with the specified color and combines alpha channels if necessary. |
|
protected void |
duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
|
|
void |
fillFullRectangle(org.openmali.vecmath2.Colorf color,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
|
|
void |
fillRectangle(org.openmali.vecmath2.Colorf color,
int offsetX,
int offsetY,
int width,
int height,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Fills the given rectangle with the specified color and combines alpha channels if necessary. |
|
void |
freeLocalData()
|
|
java.awt.image.BufferedImage |
getBufferedImage()
|
|
|
getClipRect(Rect2i_ rect)
|
|
int |
getData(byte[] data)
|
|
void |
getData(java.nio.ByteBuffer bb)
|
|
java.nio.ByteBuffer |
getDataBuffer()
|
|
int |
getDataSize()
|
|
byte[] |
getPixel(int x,
int y,
byte[] data)
|
|
byte[] |
getPixelLine(int offset,
int length,
byte[] data)
|
|
byte[] |
getPixelLine(int x,
int y,
int length,
byte[] data)
|
|
int |
getPixelSize()
|
|
|
getTextureCoordinateUR(T tcUR)
|
|
org.openmali.vecmath2.TexCoord2f |
getTextureCoordinateUR(org.openmali.vecmath2.TexCoord2f tcUR)
|
|
java.util.ArrayList<org.openmali.types.twodee.Rect2i> |
getUpdateList()
|
|
protected boolean |
getYUp()
|
|
boolean |
initImageData(boolean allowBiggerTexture,
boolean usebuffer)
|
|
boolean |
initImageData(int orgWidth,
int orgHeight,
boolean allowBiggerTexture)
|
|
boolean |
initImageData(int orgWidth,
int orgHeight,
boolean allowBiggerTexture,
boolean usebuffer)
|
|
protected boolean |
initImageData(int width,
int height,
int orgWidth,
int orgHeight,
boolean allowBiggerTexture,
boolean usebuffer)
|
|
void |
setClipRect(int x,
int y,
int width,
int height)
|
|
void |
setClipRect(org.openmali.types.twodee.Rect2i clipRect)
|
|
void |
setImageData(java.awt.image.BufferedImage image)
|
|
protected void |
setImageData(java.awt.image.BufferedImage image,
boolean useBuffer)
|
|
void |
setImageData(byte[] data)
Sets the data for the image. |
|
protected void |
setImageData(byte[] data,
boolean useBuffer)
Sets the data for the image. |
|
void |
setImageData(byte[] data,
int dataLength)
Sets the data for the image. |
|
protected void |
setImageData(byte[] data,
int dataLength,
boolean useBuffer)
Sets the data for the image. |
|
protected void |
setPixel(int offset,
byte[] data)
|
|
void |
setPixel(int x,
int y,
byte[] data,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Sets one pixel. |
|
void |
setPixelLine(int trgByteOffset,
byte[] data,
int srcByteOffset,
int length)
|
|
void |
setPixelLine(int x,
int y,
byte[] data,
int srcOffset,
int length)
|
|
void |
setPixelLine(int x,
int y,
int length,
byte[] data,
int srcByteOffset,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
Sets one (part of a) pixel line. |
|
void |
update(int x,
int y,
int width,
int height)
Marks a portion of the image component as dirty. |
|
void |
update(org.openmali.types.twodee.Rect2i r)
Marks a portion of the image component as dirty. |
|
| Methods inherited from class org.xith3d.scenegraph.TextureImage |
|---|
calculateNeededImageSize, freeOpenGLResources, getFormat, getHeight, getInternalFormat, getOriginalHeight, getOriginalSize, getOriginalWidth, getSize, getWidth, hasAlpha, hasData, isCompressed, isInternalFormatCompressed, setHasData, setInternalFormat, setOriginalSize, setSize |
| Methods inherited from class org.xith3d.scenegraph.NodeComponent |
|---|
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
boolean yUp,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
boolean yUp)
protected TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data,
int dataLength,
boolean useBuffer,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data,
int dataLength,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data,
int dataLength)
TextureImage2D object.
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
int orgWidth,
int orgHeight,
byte[] data)
TextureImage2D object.
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
boolean yUp,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
boolean yUp)
protected TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data,
int dataLength,
boolean useBuffer,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data,
int dataLength,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data,
org.jagatoo.opengl.enums.TextureImageInternalFormat internalFormat)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data,
int dataLength)
TextureImage2D object.
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int width,
int height,
byte[] data)
TextureImage2D object.
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
int orgWidth,
int orgHeight,
java.awt.image.BufferedImage image,
boolean yUp)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
java.awt.image.BufferedImage image,
boolean yUp)
public TextureImage2D(org.jagatoo.opengl.enums.TextureImageFormat format,
java.awt.image.BufferedImage image)
| Method Detail |
|---|
protected final boolean getYUp()
public final org.openmali.vecmath2.TexCoord2f getTextureCoordinateUR(org.openmali.vecmath2.TexCoord2f tcUR)
public final <T extends org.openmali.vecmath2.Tuple2f> T getTextureCoordinateUR(T tcUR)
public final int getPixelSize()
public final int getDataSize()
public final java.nio.ByteBuffer getDataBuffer()
public final void getData(java.nio.ByteBuffer bb)
public final int getData(byte[] data)
public void freeLocalData()
public void update(int x,
int y,
int width,
int height)
Texture2D.setHasUpdateList(boolean) must be called afterwards.
x - y - width - height - public final void update(org.openmali.types.twodee.Rect2i r)
Texture2D.setHasUpdateList(boolean) must be called afterwards.
r - public final java.util.ArrayList<org.openmali.types.twodee.Rect2i> getUpdateList()
public final void clearUpdateList()
public java.awt.image.BufferedImage getBufferedImage()
protected java.awt.Graphics2D createGraphics2D()
public void setClipRect(int x,
int y,
int width,
int height)
public final void setClipRect(org.openmali.types.twodee.Rect2i clipRect)
public final <Rect2i_ extends org.openmali.types.twodee.Rect2i> Rect2i_ getClipRect(Rect2i_ rect)
protected final void setImageData(byte[] data,
int dataLength,
boolean useBuffer)
data - dataLength - useBuffer -
public final void setImageData(byte[] data,
int dataLength)
data - dataLength -
protected final void setImageData(byte[] data,
boolean useBuffer)
data - useBuffer - public final void setImageData(byte[] data)
data -
protected boolean initImageData(int width,
int height,
int orgWidth,
int orgHeight,
boolean allowBiggerTexture,
boolean usebuffer)
public final boolean initImageData(int orgWidth,
int orgHeight,
boolean allowBiggerTexture,
boolean usebuffer)
public final boolean initImageData(int orgWidth,
int orgHeight,
boolean allowBiggerTexture)
public final boolean initImageData(boolean allowBiggerTexture,
boolean usebuffer)
protected void setImageData(java.awt.image.BufferedImage image,
boolean useBuffer)
public void setImageData(java.awt.image.BufferedImage image)
protected final void setPixel(int offset,
byte[] data)
public final void setPixel(int x,
int y,
byte[] data,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
x - the x-coordinatey - the y-coordinatedata - the source pixel datamarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final byte[] getPixel(int x,
int y,
byte[] data)
public final void setPixelLine(int trgByteOffset,
byte[] data,
int srcByteOffset,
int length)
public final void setPixelLine(int x,
int y,
int length,
byte[] data,
int srcByteOffset,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
x - the x-cordinate of the starting locationy - the y-cordinate of the starting locationlength - the number of pixels to writedata - the source pixel datasrcByteOffset - the offset in the source arraymarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void setPixelLine(int x,
int y,
byte[] data,
int srcOffset,
int length)
public final byte[] getPixelLine(int offset,
int length,
byte[] data)
public final byte[] getPixelLine(int x,
int y,
int length,
byte[] data)
public final void drawImage(TextureImage2D srcTI,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int trgX,
int trgY,
int trgWidth,
int trgHeight,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and honors the alpha channels (if any).
srcTI - source imagesrcX - the rectangle's left to copy from the source TextureImage2D.srcY - the rectangle's top to copy from the source TextureImage2D.srcWidth - the rectangle's width to copy from the source TextureImage2D.srcHeight - the rectangle's height to copy from the source TextureImage2D.trgX - target x-coordinatetrgY - target y-coordinatetrgWidth - the targetWidth (tiled or clipped if necessary)trgHeight - the targetHeight (tiled or clipped if necessary)markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void drawImage(TextureImage2D srcTI,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and honors the alpha channels (if any).
srcTI - source imagesrcX - the rectangle's left to copy from the source TextureImage2D.srcY - the rectangle's top to copy from the source TextureImage2D.srcWidth - the rectangle's width to copy from the source TextureImage2D.srcHeight - the rectangle's height to copy from the source TextureImage2D.trgX - target x-coordinatetrgY - target y-coordinatemarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void drawImage(TextureImage2D ti,
org.openmali.types.twodee.Rect2i srcRect,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and honors the alpha channels (if any).
ti - source imagesrcRect - the rectangle to copy from the source TextureImage2D.trgX - target x-coordinatetrgY - target y-coordinatemarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void drawImage(TextureImage2D ti,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and honors the alpha channels (if any).
ti - source imagetrgX - target x-coordinatetrgY - target y-coordinatemarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public void fillRectangle(org.openmali.vecmath2.Colorf color,
int offsetX,
int offsetY,
int width,
int height,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
color - offsetX - offsetY - width - height - markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void fillFullRectangle(org.openmali.vecmath2.Colorf color,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
public void drawPixelLine(byte[] pixels,
int pixelSize,
int startX,
int startY,
int length,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
color - markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instancemarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void clear(TextureImage2D srcTI,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int trgX,
int trgY,
int trgWidth,
int trgHeight,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and simply overwrites anything.
srcTI - source imagesrcX - the rectangle's left to copy from the source TextureImage2D.srcY - the rectangle's top to copy from the source TextureImage2D.srcWidth - the rectangle's width to copy from the source TextureImage2D.srcHeight - the rectangle's height to copy from the source TextureImage2D.trgX - target x-coordinatetrgY - target y-coordinatetrgWidth - the targetWidth (tiled or clipped if necessary)trgHeight - the targetHeight (tiled or clipped if necessary)markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void clear(TextureImage2D srcTI,
int trgX,
int trgY,
int trgWidth,
int trgHeight,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and simply overwrites anything.
srcTI - source imagetrgX - target x-coordinatetrgY - target y-coordinatetrgWidth - the targetWidth (tiled or clipped if necessary)trgHeight - the targetHeight (tiled or clipped if necessary)markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void clear(TextureImage2D srcTI,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and simply overwrites anything.
srcTI - source imagesrcX - the rectangle's left to copy from the source TextureImage2D.srcY - the rectangle's top to copy from the source TextureImage2D.srcWidth - the rectangle's width to copy from the source TextureImage2D.srcHeight - the rectangle's height to copy from the source TextureImage2D.trgX - target x-coordinatetrgY - target y-coordinatemarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void clear(TextureImage2D srcTI,
org.openmali.types.twodee.Rect2i srcRect,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and simply overwrites anything.
srcTI - source imagesrcRect - the rectangle to copy from the source TextureImage2D.trgX - target x-coordinatetrgY - target y-coordinatemarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void clear(TextureImage2D srcTI,
int trgX,
int trgY,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and simply overwrites anything.
srcTI - source imagetrgX - target x-coordinatetrgY - target y-coordinatemarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void clear(TextureImage2D srcTI,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
TextureImage2D onto this one and simply overwrites anything.
ti - source imagemarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public void clearOutline(java.awt.Color color,
int offsetX,
int offsetY,
int width,
int height,
int lineWidth,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
color - offsetX - offsetY - width - height - markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public void clear(org.openmali.vecmath2.Colorf color,
int offsetX,
int offsetY,
int width,
int height,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
color - offsetX - offsetY - width - height - markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void clear(org.openmali.vecmath2.Colorf color,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
color - markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void clear(int offsetX,
int offsetY,
int width,
int height,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
offsetX - offsetY - width - height - markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public final void clear(boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
markDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
public void clearPixelLine(byte[] pixels,
int pixelSize,
int startX,
int startY,
int length,
boolean markDirty,
org.openmali.types.twodee.Rect2i dirtyRect)
pixels - the pixel datastartX - the x-coordinate of the starting locationstartY - the y-coordinate of the starting locationlength - the number of pixels to clearmarkDirty - if true, the pixel is marked dirtydirtyRect - if non null, the dirty rect is written to this instance
protected void duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
duplicateNodeComponent in class NodeComponentpublic TextureImage2D cloneNodeComponent(boolean forceDuplicate)
cloneNodeComponent in class NodeComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||