public class J2DPipeline extends GraphicsPipeline
GraphicsPipeline.ShaderModel, GraphicsPipeline.ShaderType
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.Integer,J2DResourceFactory> |
factories |
private FontFactory |
j2DFontFactory |
private static J2DPipeline |
theInstance |
deviceDetails
Modifier | Constructor and Description |
---|---|
private |
J2DPipeline() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
int |
getAdapterOrdinal(Screen screen) |
ResourceFactory |
getDefaultResourceFactory(java.util.List<Screen> screens) |
FontFactory |
getFontFactory() |
static J2DPipeline |
getInstance() |
ResourceFactory |
getResourceFactory(Screen screen) |
boolean |
init() |
boolean |
is3DSupported() |
boolean |
isUploading()
Checks if the GraphicsPipeline uses uploading or presenting painter
|
boolean |
isVsyncSupported() |
boolean |
supportsShaderModel(GraphicsPipeline.ShaderModel model)
Returns true iff the graphics objects from this pipeline support
the indicated
GraphicsPipeline.ShaderModel . |
boolean |
supportsShaderType(GraphicsPipeline.ShaderType type)
Returns true iff the graphics objects from this pipeline support
the indicated
GraphicsPipeline.ShaderType . |
createPipeline, getDefaultResourceFactory, getDeviceDetails, getPipeline, isEffectSupported, isMSAASupported, setDeviceDetails, supportsShader
private static J2DPipeline theInstance
private final java.util.HashMap<java.lang.Integer,J2DResourceFactory> factories
private FontFactory j2DFontFactory
public boolean init()
init
in class GraphicsPipeline
public static J2DPipeline getInstance()
public int getAdapterOrdinal(Screen screen)
getAdapterOrdinal
in class GraphicsPipeline
public ResourceFactory getResourceFactory(Screen screen)
getResourceFactory
in class GraphicsPipeline
public ResourceFactory getDefaultResourceFactory(java.util.List<Screen> screens)
getDefaultResourceFactory
in class GraphicsPipeline
public boolean is3DSupported()
is3DSupported
in class GraphicsPipeline
public boolean isVsyncSupported()
isVsyncSupported
in class GraphicsPipeline
public boolean supportsShaderType(GraphicsPipeline.ShaderType type)
GraphicsPipeline
GraphicsPipeline.ShaderType
.supportsShaderType
in class GraphicsPipeline
type
- the desired GraphicsPipeline.ShaderType
to be usedShaderType
is supportedpublic boolean supportsShaderModel(GraphicsPipeline.ShaderModel model)
GraphicsPipeline
GraphicsPipeline.ShaderModel
. Generally, the pipeline will
also support all older or lower-numbered ShaderModel
s as well.supportsShaderModel
in class GraphicsPipeline
model
- the desired GraphicsPipeline.ShaderModel
to be usedShaderModel
is supportedpublic void dispose()
dispose
in class GraphicsPipeline
public FontFactory getFontFactory()
getFontFactory
in class GraphicsPipeline
public boolean isUploading()
GraphicsPipeline
isUploading
in class GraphicsPipeline