APIdia Launch Partner
Top Fields Constructors Methods
com.sun.prism.es2

pack-priv Class ES2RTTexture

extends ES2Texture<ES2RTTextureData>
implements ES2RenderTarget, 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.es2.ES2RenderTarget
Imports
com.sun.glass.ui.Screen, com.sun.prism.Graphics, .Image, .PixelFormat, .RTTexture, .ReadbackRenderTarget, .Texture, com.sun.prism.impl.PrismSettings, .PrismTrace, java.nio.Buffer

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from com.sun.prism.es2.ES2Texture:
context

Constructor Summary

AccessConstructor and Description
private
ES2RTTexture(ES2Context context, ES2TextureResource<ES2RTTextureData> resource, Texture.WrapMode wrapMode, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, int maxContentWidth, int maxContentHeight)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
attachDepthBuffer(ES2Context
current context
context
)

Attach a depth buffer to the currently bound FBO

pack-priv static ES2RTTexture
create(ES2Context context, int w, int h, Texture.WrapMode wrapMode, boolean msaa)

private void
createAndAttachMSAABuffer(ES2Context
current context
context
)

Create and attach a color multisample render buffer to current FBO

public Graphics
public Screen
public Texture
pack-priv static int
getCompatibleDimension(ES2Context context, int dim, Texture.WrapMode wrapMode)

public int
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.es2.ES2Texture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer.

Inherited from com.sun.prism.es2.ES2Texture:
createcreatecreateSharedTexturegetBufferElementSizeLoggetNativeSourceHandlenextPowerOfTwoupdateupdateFilterStateupdateWrapState

Field Detail

opaqueback to summary
private boolean opaque

Constructor Detail

ES2RTTextureback to summary
private ES2RTTexture(ES2Context context, ES2TextureResource<ES2RTTextureData> resource, Texture.WrapMode wrapMode, int physicalWidth, int physicalHeight, int contentX, int contentY, int contentWidth, int contentHeight, int maxContentWidth, int maxContentHeight)

Method Detail

attachDepthBufferback to summary
pack-priv void attachDepthBuffer(ES2Context context)

Attach a depth buffer to the currently bound FBO

Parameters
context:ES2Context

current context

createback to summary
pack-priv static ES2RTTexture create(ES2Context context, int w, int h, Texture.WrapMode wrapMode, boolean msaa)
createAndAttachMSAABufferback to summary
private void createAndAttachMSAABuffer(ES2Context context)

Create and attach a color multisample render buffer to current FBO

Parameters
context:ES2Context

current context

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
getCompatibleDimensionback to summary
pack-priv static int getCompatibleDimension(ES2Context context, int dim, Texture.WrapMode wrapMode)
getFboIDback to summary
public int getFboID()

Implements com.sun.prism.es2.ES2RenderTarget.getFboID.

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.es2.ES2Texture.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