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