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

public Class MTLSwapChain

extends Object
implements MTLRenderTarget, Presentable, GraphicsResource
Class Inheritance
All Implemented Interfaces
com.sun.prism.GraphicsResource, com.sun.prism.Presentable, com.sun.prism.RenderTarget, com.sun.prism.Surface, com.sun.prism.mtl.MTLRenderTarget
Imports
com.sun.glass.ui.Screen, com.sun.javafx.geom.Rectangle, com.sun.prism.Graphics, .GraphicsResource, .Presentable, .PresentableState, com.sun.prism.impl.PrismSettings

Field Summary

Modifier and TypeField and Description
private int
h

private boolean
private final MTLContext
private final float
private final float
private final PresentableState
private MTLRTTexture
private int
w

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Graphics
public void
public Screen
public int
public int
public int
public int
public MTLContext
public int
public int
public float
public float
public long
public boolean
public boolean
public boolean
lockResources(PresentableState state)

Implements com.sun.prism.Presentable.lockResources.

Locks any underlying resources needed for a createGraphics/prepare/present sequence and returns a boolean indicating if the presentable needs to be recreated.

public boolean
prepare(Rectangle dirtyregion)

Implements com.sun.prism.Presentable.prepare.

display the indicated region to the user.

public boolean
present()

Implements com.sun.prism.Presentable.present.

present the prepared region to the user.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hback to summary
private int h
needsResizeback to summary
private boolean needsResize
pContextback to summary
private final MTLContext pContext
pixelScaleFactorXback to summary
private final float pixelScaleFactorX
pixelScaleFactorYback to summary
private final float pixelScaleFactorY
pStateback to summary
private final PresentableState pState
stableBackbufferback to summary
private MTLRTTexture stableBackbuffer
wback to summary
private int w

Constructor Detail

MTLSwapChainback to summary
public MTLSwapChain(MTLContext context, PresentableState state)

Method Detail

createGraphicsback to summary
public Graphics createGraphics()

Implements com.sun.prism.RenderTarget.createGraphics.

Annotations
@Override
disposeback to summary
public void dispose()

Implements com.sun.prism.GraphicsResource.dispose.

Annotations
@Override
getAssociatedScreenback to summary
public Screen getAssociatedScreen()

Implements com.sun.prism.RenderTarget.getAssociatedScreen.

Annotations
@Override
getContentHeightback to summary
public int getContentHeight()

Implements com.sun.prism.Surface.getContentHeight.

Annotations
@Override
getContentWidthback to summary
public int getContentWidth()

Implements com.sun.prism.Surface.getContentWidth.

Annotations
@Override
getContentXback to summary
public int getContentX()

Implements com.sun.prism.Surface.getContentX.

Annotations
@Override
getContentYback to summary
public int getContentY()

Implements com.sun.prism.Surface.getContentY.

Annotations
@Override
getContextback to summary
public MTLContext getContext()
getPhysicalHeightback to summary
public int getPhysicalHeight()

Implements com.sun.prism.Surface.getPhysicalHeight.

Annotations
@Override
getPhysicalWidthback to summary
public int getPhysicalWidth()

Implements com.sun.prism.Surface.getPhysicalWidth.

Annotations
@Override
getPixelScaleFactorXback to summary
public float getPixelScaleFactorX()

Implements com.sun.prism.Presentable.getPixelScaleFactorX.

Annotations
@Override
getPixelScaleFactorYback to summary
public float getPixelScaleFactorY()

Implements com.sun.prism.Presentable.getPixelScaleFactorY.

Annotations
@Override
getResourceHandleback to summary
public long getResourceHandle()

Implements com.sun.prism.mtl.MTLRenderTarget.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
lockResourcesback to summary
public boolean lockResources(PresentableState state)

Implements com.sun.prism.Presentable.lockResources.

Doc from com.sun.prism.Presentable.lockResources.

Locks any underlying resources needed for a createGraphics/prepare/present sequence and returns a boolean indicating if the presentable needs to be recreated. If the method returns true and the Presentable implements GraphicsResource then its dispose() method will be called prior to recreating a new Presentable object and so no resource should need to be locked in that case. The resources will be unlocked in either prepare() or present().

Annotations
@Override
prepareback to summary
public boolean prepare(Rectangle dirtyregion)

Implements com.sun.prism.Presentable.prepare.

Doc from com.sun.prism.Presentable.prepare.

display the indicated region to the user.

Annotations
@Override
presentback to summary
public boolean present()

Implements com.sun.prism.Presentable.present.

Doc from com.sun.prism.Presentable.present.

present the prepared region to the user.

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

Implements com.sun.prism.RenderTarget.setOpaque.

Annotations
@Override