Package snap.gfx3d

Class RendererFactory

java.lang.Object
snap.gfx3d.RendererFactory
Direct Known Subclasses:
Renderer2D.Renderer2DFactory

public abstract class RendererFactory extends Object
Used to create new renderers.
  • Constructor Details

    • RendererFactory

      public RendererFactory()
  • Method Details

    • getRendererName

      public abstract String getRendererName()
      Returns the renderer name.
    • newRenderer

      public abstract Renderer newRenderer(Camera aCamera)
      Returns a new default renderer.
    • newDefaultRenderer

      public static Renderer newDefaultRenderer(Camera aCamera)
      Returns a new default renderer.
    • getDefaultFactory

      public static RendererFactory getDefaultFactory()
      Returns the default renderer.
    • setDefaultFactory

      public static void setDefaultFactory(RendererFactory aRenderer)
      Sets a default renderer.
    • getFactories

      public static RendererFactory[] getFactories()
      Returns all factories.
    • addFactory

      public static void addFactory(RendererFactory aFactory)
      Adds a factory.
    • getFactoryNames

      public static String[] getFactoryNames()
      Returns the names of all factories.
    • getFactoryForName

      public static RendererFactory getFactoryForName(String aName)
      Returns the RendererFactory for given name.