com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class EntityRenderer

  • java.lang.Object
    • com.aspose.threed.EntityRenderer


  • public class EntityRenderer
    extends java.lang.Object
    Subclass this to implement rendering for different kind of entities.
    • Constructor Detail

      • EntityRenderer

        public EntityRenderer(java.lang.String key,
                              byte features)
        Constructor of EntityRenderer
        Parameters:
        key - The key of the entity renderer
        features - The extra features of the entity renderer
      • EntityRenderer

        public EntityRenderer(java.lang.String key)
        Constructor of EntityRenderer
        Parameters:
        key - The key of the entity renderer
    • Method Detail

      • initialize

        public void initialize(Renderer renderer)
        Initialize the entity renderer
        Parameters:
        renderer -
      • resetSceneCache

        public void resetSceneCache()
                             throws java.io.IOException
        The scene has changed or removed, need to dispose scene-level render resources in this
        Throws:
        java.io.IOException
      • frameBegin

        public void frameBegin(Renderer renderer)
        Begin rendering a frame
        Parameters:
        renderer - Current renderer
      • frameEnd

        public void frameEnd(Renderer renderer)
        Ends rendering a frame
        Parameters:
        renderer - Current renderer
      • prepareRenderQueue

        public void prepareRenderQueue(Renderer renderer,
                                       Node node,
                                       Entity entity)
                                throws java.io.IOException
        Prepare rendering commands for specified node/entity pair.
        Parameters:
        renderer -
        node -
        entity -
        Throws:
        java.io.IOException
      • dispose

        public void dispose()
                     throws java.io.IOException
        The entity renderer is being disposed, release shared resources.
        Throws:
        java.io.IOException