Top Fields Constructors Methods
com.sun.prism.d3d

pack-priv Class D3DRTTexture

extends D3DTexture
implements D3DRenderTarget, RTTexture, ReadbackRenderTarget
Class Inheritance
All Implemented Interfaces
com.sun.prism.ReadbackRenderTarget, com.sun.prism.RenderTarget, com.sun.prism.Surface, com.sun.prism.RTTexture, com.sun.prism.Texture, com.sun.prism.GraphicsResource, com.sun.prism.d3d.D3DRenderTarget
Imports
com.sun.glass.ui.Screen, com.sun.prism.Graphics, .Image, .PixelFormat, .RTTexture, .ReadbackRenderTarget, .Texture, java.nio.Buffer, .ByteBuffer, .IntBuffer

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv
D3DRTTexture(D3DContext context, Texture.WrapMode wrapMode, long pResource, int physicalWidth, int physicalHeight, int contentWidth, int contentHeight)

pack-priv
D3DRTTexture(D3DContext context, Texture.WrapMode wrapMode, long pResource, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, int samples)

Method Summary

Modifier and TypeMethod and Description
public Graphics
public Screen
public Texture
public int[]
public long
public boolean
public boolean
public boolean
public boolean
readPixels(Buffer pixels, int x, int y, int width, int height)

Implements com.sun.prism.RTTexture.readPixels.

public boolean
public void
setOpaque(boolean isOpaque)

Implements com.sun.prism.RenderTarget.setOpaque.

public void
update(Image img)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image.

public void
update(Image img, int dstx, int dsty)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image.

public void
update(Image img, int dstx, int dsty, int w, int h)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image.

public void
update(Image img, int dstx, int dsty, int w, int h, boolean skipFlush)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image.

public void
update(Buffer pixels, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean skipFlush)

Overrides com.sun.prism.d3d.D3DTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer.

Inherited from com.sun.prism.d3d.D3DTexture:
createSharedTexturegetContextgetNativeSourceHandlegetNativeTextureObjectupdateupdate

Field Detail

opaqueback to summary
private boolean opaque

Constructor Detail

D3DRTTextureback to summary
pack-priv D3DRTTexture(D3DContext context, Texture.WrapMode wrapMode, long pResource, int physicalWidth, int physicalHeight, int contentWidth, int contentHeight)
D3DRTTextureback to summary
pack-priv D3DRTTexture(D3DContext context, Texture.WrapMode wrapMode, long pResource, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, int samples)

Method Detail

createGraphicsback to summary
public Graphics createGraphics()

Implements com.sun.prism.RenderTarget.createGraphics.

Annotations
@Override
getAssociatedScreenback to summary
public Screen getAssociatedScreen()

Implements com.sun.prism.RenderTarget.getAssociatedScreen.

Annotations
@Override
getBackBufferback to summary
public Texture getBackBuffer()

Implements com.sun.prism.ReadbackRenderTarget.getBackBuffer.

Annotations
@Override
getPixelsback to summary
public int[] getPixels()

Implements com.sun.prism.RTTexture.getPixels.

Annotations
@Override
getResourceHandleback to summary
public long getResourceHandle()

Implements com.sun.prism.d3d.D3DRenderTarget.getResourceHandle.

Annotations
@Override
isMSAAback to summary
public boolean isMSAA()

Implements com.sun.prism.RenderTarget.isMSAA.

Annotations
@Override
isOpaqueback to summary
public boolean isOpaque()

Implements com.sun.prism.RenderTarget.isOpaque.

Annotations
@Override
isVolatileback to summary
public boolean isVolatile()

Implements com.sun.prism.RTTexture.isVolatile.

Annotations
@Override
readPixelsback to summary
public boolean readPixels(Buffer pixels, int x, int y, int width, int height)

Implements com.sun.prism.RTTexture.readPixels.

Annotations
@Override
readPixelsback to summary
public boolean readPixels(Buffer pixels)

Implements com.sun.prism.RTTexture.readPixels.

Annotations
@Override
setOpaqueback to summary
public void setOpaque(boolean isOpaque)

Implements com.sun.prism.RenderTarget.setOpaque.

Annotations
@Override
updateback to summary
public void update(Image img)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image. The upper-left corner of the image data will be positioned at (contentX, contentY) of the texture, and the full width and height of the image will be uploaded. This method will cause the vertex buffer to be flushed prior to uploading the pixels.

This is equivalent to calling:

    update(img, 0, 0);
Annotations
@Override
updateback to summary
public void update(Image img, int dstx, int dsty)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the full width and height of the image will be uploaded. This method will cause the vertex buffer to be flushed prior to uploading the pixels.

This is equivalent to calling:

    update(img, dstx, dsty, img.getWidth(), img.getHeight());
Annotations
@Override
updateback to summary
public void update(Image img, int dstx, int dsty, int w, int h)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the source region to be uploaded will be srcw by srch pixels. This method will cause the vertex buffer to be flushed prior to uploading the pixels.

This is equivalent to calling:

    update(img, dstx, dsty, srcw, srch, false);
Annotations
@Override
updateback to summary
public void update(Image img, int dstx, int dsty, int w, int h, boolean skipFlush)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the source region to be uploaded will be srcw by srch pixels. This method will cause the vertex buffer to be flushed unless skipFlush is true.

This is equivalent to calling:

    update(img.getPixelBuffer(), img.getPixelFormat(),
           dstx, dsty, img.getMinX(), img.getMinY(),
           srcw, srch, img.getScanlineStride(), skipFlush);
Annotations
@Override
updateback to summary
public void update(Buffer pixels, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean skipFlush)

Overrides com.sun.prism.d3d.D3DTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the source region to be uploaded will be srcw by srch pixels. This method will cause the vertex buffer to be flushed unless skipFlush is true.

Annotations
@Override