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

pack-priv Class MTLGraphics

extends BaseShaderGraphics
Class Inheritance
Imports
com.sun.prism.RenderTarget, com.sun.prism.impl.ps.BaseShaderGraphics, com.sun.prism.paint.Color

Field Summary

Modifier and TypeField and Description
private final MTLContext

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
clear(Color color)

Implements com.sun.prism.Graphics.clear.

Clears the current RenderTarget with the given Color.

pack-priv static MTLGraphics
create(MTLContext context, RenderTarget target)

private static native void
nClear(long pContext, float red, float green, float blue, float alpha, boolean clearDepth)

public void
sync()

Implements com.sun.prism.Graphics.sync.

Synchronize, or flush, any outstanding rendering operations to the destination in preparation for some caller potentially reusing or disposing a resource that has been used as the source of a recently invoked rendering operation.

Inherited from com.sun.prism.impl.ps.BaseShaderGraphics:
blitcanReadBackclearQuaddrawEllipsedrawLinedrawMappedTextureRaw2drawMultiTexturedrawPixelsMaskeddrawRectdrawRoundRectdrawStringdrawTexturedrawTexture3SliceHdrawTexture3SliceVdrawTexture9SlicedrawTextureRaw2fillEllipsefillQuadfillRectfillRoundRectgetExternalShadergetLightsgetPaintShaderTransformmaskInterpolatePixelsreadBackreleaseReadBackBufferrenderShapesetExternalShadersetLightssetNodeBoundssetPaintsetup3DRendering

Field Detail

contextback to summary
private final MTLContext context

Hides com.sun.prism.impl.ps.BaseShaderGraphics.context.

Constructor Detail

MTLGraphicsback to summary
private MTLGraphics(MTLContext context, RenderTarget target)

Method Detail

clearback to summary
public void clear(Color color)

Implements com.sun.prism.Graphics.clear.

Doc from com.sun.prism.Graphics.clear.

Clears the current RenderTarget with the given Color. Note that this operation is affected by the current clip rectangle, if set. To clear the entire surface, call setClipRect(null) prior to calling clear().

Annotations
@Override
createback to summary
pack-priv static MTLGraphics create(MTLContext context, RenderTarget target)
nClearback to summary
private static native void nClear(long pContext, float red, float green, float blue, float alpha, boolean clearDepth)
syncback to summary
public void sync()

Implements com.sun.prism.Graphics.sync.

Doc from com.sun.prism.Graphics.sync.

Synchronize, or flush, any outstanding rendering operations to the destination in preparation for some caller potentially reusing or disposing a resource that has been used as the source of a recently invoked rendering operation. This method does not (yet?) guarantee that the actual pixels in the destination will be updated - it simply guarantees that no currently buffered rendering will depend on any texture data included by reference. The typical usage is before a Texture disposal or "return to texture cache pool" operation.

Annotations
@Override