public class ES2Pipeline extends GraphicsPipeline
GraphicsPipeline.ShaderModel, GraphicsPipeline.ShaderType
Modifier and Type | Field and Description |
---|---|
(package private) ES2ResourceFactory |
_default |
private static java.lang.Thread |
creator |
private static boolean |
es2Enabled |
private static ES2ResourceFactory[] |
factories |
static GLFactory |
glFactory |
private static boolean |
isEglfb |
(package private) static boolean |
msaa |
(package private) static boolean |
npotSupported |
static GLPixelFormat.Attributes |
pixelFormatAttributes |
private static ES2Pipeline |
theInstance |
deviceDetails
Constructor and Description |
---|
ES2Pipeline() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
private static ES2ResourceFactory |
findDefaultResourceFactory(java.util.List<Screen> screens) |
int |
getAdapterOrdinal(Screen screen) |
ResourceFactory |
getDefaultResourceFactory(java.util.List<Screen> screens) |
private static ES2ResourceFactory |
getES2ResourceFactory(int adapterOrdinal,
Screen screen) |
static ES2Pipeline |
getInstance() |
ResourceFactory |
getResourceFactory(Screen screen) |
private static Screen |
getScreenForAdapter(java.util.List<Screen> screens,
int adapterOrdinal) |
boolean |
init() |
boolean |
is3DSupported() |
boolean |
isMSAASupported() |
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, getFontFactory, getPipeline, isEffectSupported, isUploading, setDeviceDetails, supportsShader
public static final GLFactory glFactory
public static final GLPixelFormat.Attributes pixelFormatAttributes
static final boolean msaa
static final boolean npotSupported
private static boolean es2Enabled
private static boolean isEglfb
private static java.lang.Thread creator
private static final ES2Pipeline theInstance
private static ES2ResourceFactory[] factories
ES2ResourceFactory _default
public static ES2Pipeline getInstance()
public boolean init()
init
in class GraphicsPipeline
private static ES2ResourceFactory getES2ResourceFactory(int adapterOrdinal, Screen screen)
private static Screen getScreenForAdapter(java.util.List<Screen> screens, int adapterOrdinal)
public int getAdapterOrdinal(Screen screen)
getAdapterOrdinal
in class GraphicsPipeline
private static ES2ResourceFactory findDefaultResourceFactory(java.util.List<Screen> screens)
public ResourceFactory getDefaultResourceFactory(java.util.List<Screen> screens)
getDefaultResourceFactory
in class GraphicsPipeline
public ResourceFactory getResourceFactory(Screen screen)
getResourceFactory
in class GraphicsPipeline
public void dispose()
dispose
in class GraphicsPipeline
public boolean is3DSupported()
is3DSupported
in class GraphicsPipeline
public final boolean isMSAASupported()
isMSAASupported
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 supported