class SWRTTexture extends SWArgbPreTexture implements RTTexture
Texture.Usage, Texture.WrapMode
Modifier and Type | Field and Description |
---|---|
private Rectangle |
dimensions |
private boolean |
isOpaque |
private PiscesRenderer |
pr |
private JavaSurface |
surface |
allocated, contentHeight, contentWidth, employcount, permanent, physicalHeight, physicalWidth
Constructor and Description |
---|
SWRTTexture(SWResourceFactory factory,
int w,
int h) |
Modifier and Type | Method and Description |
---|---|
Graphics |
createGraphics() |
Screen |
getAssociatedScreen() |
(package private) Rectangle |
getDimensions() |
int[] |
getPixels() |
(package private) JavaSurface |
getSurface() |
boolean |
isMSAA() |
boolean |
isOpaque() |
boolean |
isVolatile() |
boolean |
readPixels(java.nio.Buffer pixels) |
boolean |
readPixels(java.nio.Buffer pixels,
int x,
int y,
int width,
int height) |
void |
setOpaque(boolean opaque) |
allocateBuffer, applyCompositeAlpha, checkDimensions, createSharedLockedTexture, getDataNoClone, getOffset, getPixelFormat, hasAlpha, update, update
allocate, assertLocked, contentsNotUseful, contentsUseful, create, dispose, getContentHeight, getContentWidth, getContentX, getContentY, getLastImageSerial, getLinearFiltering, getLockCount, getMaxContentHeight, getMaxContentWidth, getPhysicalHeight, getPhysicalWidth, getResourceFactory, getSharedTexture, getUseMipmap, getWrapMode, isLocked, isSurfaceLost, lock, makePermanent, setContentHeight, setContentWidth, setLastImageSerial, setLinearFiltering, unlock, update, update, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assertLocked, contentsNotUseful, contentsUseful, getContentHeight, getContentWidth, getContentX, getContentY, getLastImageSerial, getLinearFiltering, getLockCount, getMaxContentHeight, getMaxContentWidth, getPhysicalHeight, getPhysicalWidth, getPixelFormat, getSharedTexture, getUseMipmap, getWrapMode, isLocked, isSurfaceLost, lock, makePermanent, setContentHeight, setContentWidth, setLastImageSerial, setLinearFiltering, unlock, update, update, update, update, update, update
dispose
getContentHeight, getContentWidth, getContentX, getContentY, getPhysicalHeight, getPhysicalWidth
private PiscesRenderer pr
private JavaSurface surface
private final Rectangle dimensions
private boolean isOpaque
SWRTTexture(SWResourceFactory factory, int w, int h)
JavaSurface getSurface()
public boolean readPixels(java.nio.Buffer pixels, int x, int y, int width, int height)
readPixels
in interface RTTexture
public boolean readPixels(java.nio.Buffer pixels)
readPixels
in interface RTTexture
public Screen getAssociatedScreen()
getAssociatedScreen
in interface RenderTarget
public Graphics createGraphics()
createGraphics
in interface RenderTarget
public boolean isOpaque()
isOpaque
in interface RenderTarget
public void setOpaque(boolean opaque)
setOpaque
in interface RenderTarget
Rectangle getDimensions()
public boolean isVolatile()
isVolatile
in interface RTTexture
public boolean isMSAA()
isMSAA
in interface RenderTarget