Package com.ardor3d.renderer
Enum Class TextureRendererFactory
- All Implemented Interfaces:
Serializable
,Comparable<TextureRendererFactory>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateTextureRenderer
(int width, int height, int depthBits, int samples, Renderer renderer, ContextCapabilities caps) Create a TextureRenderer using params that are meaningful regardless of whether a Pbuffer or FBO renderer are used.createTextureRenderer
(int width, int height, Renderer renderer, ContextCapabilities caps) Create a TextureRenderer of the given width and height.createTextureRenderer
(DisplaySettings settings, boolean forcePbuffer, Renderer renderer, ContextCapabilities caps) Create a TextureRenderer using as many of the given DisplaySettings that are meaningful for the chosen type.void
setProvider
(TextureRendererProvider provider) static TextureRendererFactory
Returns the enum constant of this class with the specified name.static TextureRendererFactory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
setProvider
-
createTextureRenderer
public TextureRenderer createTextureRenderer(int width, int height, Renderer renderer, ContextCapabilities caps) Create a TextureRenderer of the given width and height. All other params are considered undefined. We will attempt to make an FBO based renderer if supported, or a Pbuffer based renderer if supported, or null if neither are supported.- Parameters:
width
- the width of our off screen rendering targetheight
- the height of our off screen rendering targetrenderer
- the renderer to use when rendering to this off screen target.caps
- the context capabilities, used for testing.- Returns:
- a TextureRenderer
- Throws:
IllegalStateException
- if provider has not been set prior to calling this method.
-
createTextureRenderer
public TextureRenderer createTextureRenderer(int width, int height, int depthBits, int samples, Renderer renderer, ContextCapabilities caps) Create a TextureRenderer using params that are meaningful regardless of whether a Pbuffer or FBO renderer are used. We will attempt to make an FBO based renderer if supported, or a Pbuffer based renderer if supported, or null if neither are supported.- Parameters:
width
- the width of our off screen rendering targetheight
- the height of our off screen rendering targetdepthBits
- the desired depth buffer size of our off screen rendering targetsamples
- the number of samples for our off screen rendering targetrenderer
- the renderer to use when rendering to this off screen target.caps
- the context capabilities, used for testing.- Returns:
- a TextureRenderer
- Throws:
IllegalStateException
- if provider has not been set prior to calling this method.
-
createTextureRenderer
public TextureRenderer createTextureRenderer(DisplaySettings settings, boolean forcePbuffer, Renderer renderer, ContextCapabilities caps) Create a TextureRenderer using as many of the given DisplaySettings that are meaningful for the chosen type. Unless forcePbuffer is true, we will attempt to make an FBO based renderer if supported, or a Pbuffer based renderer if supported, or null if neither are supported.- Parameters:
settings
- a complete set of possible display settings to use. Some will only be valid if Pbuffer is used.forcePbuffer
- if true, we will return a pbuffer or null if pbuffers are not supported.renderer
- the renderer to use when rendering to this off screen target.caps
- the context capabilities, used for testing.- Returns:
- a TextureRenderer
- Throws:
IllegalStateException
- if provider has not been set prior to calling this method.
-