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
the image data to be uploaded to this texture
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
the image data to be uploaded to this texture
img
,
int
the x-offset of the image data, in pixels, relative to the contentX of this texture
dstx
,
int
the y-offset of the image data, in pixels, relative to the contentY of this texture
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
the image data to be uploaded to this texture
img
,
int
the x-offset of the image data, in pixels, relative to the contentX of this texture
dstx
,
int
the y-offset of the image data, in pixels, relative to the contentY of this texture
dsty
,
int
the width of the pixel region from the source image
w
,
int
the height of the pixel region from the source image
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
the image data to be uploaded to this texture
img
,
int
the x-offset of the image data, in pixels, relative to the contentX of this texture
dstx
,
int
the y-offset of the image data, in pixels, relative to the contentY of this texture
dsty
,
int
the width of the pixel region from the source image
w
,
int
the height of the pixel region from the source image
h
,
boolean
if true, the vertex buffer will not be flushed
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
the format of the data contained in the pixel buffer
format
,
int
the x-offset of the image data, in pixels, relative to the contentX of this texture
dstx
,
int
the y-offset of the image data, in pixels, relative to the contentY of this texture
dsty
,
int
the x-offset into the source buffer, in pixels
srcx
,
int
the y-offset into the source buffer, in pixels
srcy
,
int
the width of the pixel region from the source buffer
srcw
,
int
the height of the pixel region from the source buffer
srch
,
int
the scanline stride of the source buffer, in bytes
srcscan
,
boolean
if true, the vertex buffer will not be flushed
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
the source video buffer to update the texture data from
frame
,
boolean
if true, the vertex buffer will not be flushed
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);
Parameters
img:Image

the image data to be uploaded to this texture

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());
Parameters
img:Image

the image data to be uploaded to this texture

dstx:int

the x-offset of the image data, in pixels, relative to the contentX of this texture

dsty:int

the y-offset of the image data, in pixels, relative to the contentY of this texture

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);
Parameters
img:Image

the image data to be uploaded to this texture

dstx:int

the x-offset of the image data, in pixels, relative to the contentX of this texture

dsty:int

the y-offset of the image data, in pixels, relative to the contentY of this texture

w:int

the width of the pixel region from the source image

h:int

the height of the pixel region from the source image

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);
Parameters
img:Image

the image data to be uploaded to this texture

dstx:int

the x-offset of the image data, in pixels, relative to the contentX of this texture

dsty:int

the y-offset of the image data, in pixels, relative to the contentY of this texture

w:int

the width of the pixel region from the source image

h:int

the height of the pixel region from the source image

skipFlush:boolean

if true, the vertex buffer will not be flushed

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.

Parameters
format:PixelFormat

the format of the data contained in the pixel buffer

dstx:int

the x-offset of the image data, in pixels, relative to the contentX of this texture

dsty:int

the y-offset of the image data, in pixels, relative to the contentY of this texture

srcx:int

the x-offset into the source buffer, in pixels

srcy:int

the y-offset into the source buffer, in pixels

srcw:int

the width of the pixel region from the source buffer

srch:int

the height of the pixel region from the source buffer

srcscan:int

the scanline stride of the source buffer, in bytes

skipFlush:boolean

if true, the vertex buffer will not be flushed

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.

Parameters
frame:MediaFrame

the source video buffer to update the texture data from

skipFlush:boolean

if true, the vertex buffer will not be flushed

Annotations
@Override