Top Fields Constructors Methods
com.sun.prism.null3d

pack-priv Class DummyRTTexture

extends DummyTexture
implements RTTexture
Class Inheritance
All Implemented Interfaces
com.sun.prism.RTTexture, com.sun.prism.RenderTarget, com.sun.prism.Surface, com.sun.prism.Texture, com.sun.prism.GraphicsResource
Imports
com.sun.glass.ui.Screen, com.sun.prism.MediaFrame, .Graphics, .Image, .PixelFormat, .RTTexture, java.nio.Buffer

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from com.sun.prism.null3d.DummyTexture:
context

Constructor Summary

AccessConstructor and Description
pack-priv
DummyRTTexture(DummyContext context, Texture.WrapMode wrapMode, int contentWidth, int contentHeight)

Method Summary

Modifier and TypeMethod and Description
public Graphics
public Screen
public int[]
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
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.null3d.DummyTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer.

public void
update(MediaFrame frame, boolean skipFlush)

Overrides com.sun.prism.null3d.DummyTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the provided MediaFrame.

Inherited from com.sun.prism.null3d.DummyTexture:
createSharedTexturegetContext

Field Detail

opaqueback to summary
private boolean opaque

Constructor Detail

DummyRTTextureback to summary
pack-priv DummyRTTexture(DummyContext context, Texture.WrapMode wrapMode, int contentWidth, int contentHeight)

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
getPixelsback to summary
public int[] getPixels()

Implements com.sun.prism.RTTexture.getPixels.

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 opaque)

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.null3d.DummyTexture.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
updateback to summary
public void update(MediaFrame frame, boolean skipFlush)

Overrides com.sun.prism.null3d.DummyTexture.update.

Implements com.sun.prism.Texture.update.

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

Updates this texture using the contents of the provided MediaFrame. The source and destination coordinates are implicit, you can only update the entire video texture.

Annotations
@Override