com.jmex.awt.swingui
Class LWJGLImageGraphics

java.lang.Object
  extended by java.awt.Graphics
      extended by java.awt.Graphics2D
          extended by com.jmex.awt.swingui.ImageGraphics
              extended by com.jmex.awt.swingui.ImageGraphicsBaseImpl
                  extended by com.jmex.awt.swingui.LWJGLImageGraphics

 class LWJGLImageGraphics
extends ImageGraphicsBaseImpl

LWJGL implementation of ImageGraphics.


Field Summary
 
Fields inherited from class com.jmex.awt.swingui.ImageGraphicsBaseImpl
awtImage, data, delegate, dirty, glTexSubImage2DSupported, idBuff, logger, mipMapChild, mipMapLevel, paintedMipMapCount, scaleX, scaleY, tmp_byteBuffer, translation, TRANSPARENT, tx
 
Fields inherited from class com.jmex.awt.swingui.ImageGraphics
image
 
Constructor Summary
protected LWJGLImageGraphics(int width, int height, int paintedMipMapCount)
           
 
Method Summary
 java.awt.Graphics create()
           
 void update(Texture texture, boolean clean)
          Update a texture that contains the image from ImageGraphics.getImage().
 
Methods inherited from class com.jmex.awt.swingui.ImageGraphicsBaseImpl
addRenderingHints, clearRect, clip, clipRect, copyArea, dispose, draw, drawArc, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolyline, drawRenderableImage, drawRenderedImage, drawRoundRect, drawString, drawString, drawString, drawString, fill, fillArc, fillOval, fillPolygon, fillRect, fillRoundRect, getAwtImage, getBackground, getClip, getClipBounds, getColor, getComposite, getDeviceConfiguration, getFont, getFontMetrics, getFontRenderContext, getImageBounds, getPaint, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, isDirty, makeDirty, rotate, rotate, scale, setBackground, setClip, setClip, setColor, setComposite, setFont, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, setXORMode, shear, transform, translate, translate, update
 
Methods inherited from class com.jmex.awt.swingui.ImageGraphics
createInstance, getImage, isExpandDirtyRegion, setExpandDirtyRegion, update
 
Methods inherited from class java.awt.Graphics2D
draw3DRect, fill3DRect
 
Methods inherited from class java.awt.Graphics
create, drawBytes, drawChars, drawPolygon, drawRect, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LWJGLImageGraphics

protected LWJGLImageGraphics(int width,
                             int height,
                             int paintedMipMapCount)
Method Detail

update

public void update(Texture texture,
                   boolean clean)
Description copied from class: ImageGraphics
Update a texture that contains the image from ImageGraphics.getImage(). Only dirty areas are updated. The texture must have mipmapping turned off (Texture#MM_NONE).

Specified by:
update in class ImageGraphics
Parameters:
texture - texture to be updated
clean - true to mark whole area as clean after updating, false to keep dirty area for updating more textures

create

public java.awt.Graphics create()
Specified by:
create in class java.awt.Graphics