Package snap.gfx3d
Class RendererFactory
java.lang.Object
snap.gfx3d.RendererFactory
- Direct Known Subclasses:
Renderer2D.Renderer2DFactory
Used to create new renderers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addFactory
(RendererFactory aFactory) Adds a factory.static RendererFactory
Returns the default renderer.static RendererFactory[]
Returns all factories.static RendererFactory
getFactoryForName
(String aName) Returns the RendererFactory for given name.static String[]
Returns the names of all factories.abstract String
Returns the renderer name.static Renderer
newDefaultRenderer
(Camera aCamera) Returns a new default renderer.abstract Renderer
newRenderer
(Camera aCamera) Returns a new default renderer.static void
setDefaultFactory
(RendererFactory aRenderer) Sets a default renderer.
-
Constructor Details
-
RendererFactory
public RendererFactory()
-
-
Method Details
-
getRendererName
Returns the renderer name. -
newRenderer
Returns a new default renderer. -
newDefaultRenderer
Returns a new default renderer. -
getDefaultFactory
Returns the default renderer. -
setDefaultFactory
Sets a default renderer. -
getFactories
Returns all factories. -
addFactory
Adds a factory. -
getFactoryNames
Returns the names of all factories. -
getFactoryForName
Returns the RendererFactory for given name.
-