Class Scene

    • Method Detail

      • setSkybox

        public void setSkybox​(@Nullable
                              Skybox skybox)
        Sets the Skybox. The Skybox is drawn last and covers all pixels not touched by geometry.
        Parameters:
        skybox - the Skybox to use to fill untouched pixels, or null to unset the Skybox.
      • setIndirectLight

        public void setIndirectLight​(@Nullable
                                     IndirectLight ibl)
        Sets the IndirectLight to use when rendering the Scene. Currently, a Scene may only have a single IndirectLight. This call replaces the current IndirectLight.
        Parameters:
        ibl - the IndirectLight to use when rendering the Scene or null to unset.
      • addEntity

        public void addEntity​(int entity)
        Adds an Entity to the Scene.
        Parameters:
        entity - the entity is ignored if it doesn't have a RenderableManager component or LightManager component.
        A given Entity object can only be added once to a Scene.
      • addEntities

        public void addEntities​(int[] entities)
        Adds a list of entities to the Scene.
        Parameters:
        entities - array containing entities to add to the Scene.
      • removeEntity

        public void removeEntity​(int entity)
        Removes an Entity from the Scene.
        Parameters:
        entity - the Entity to remove from the Scene. If the specified entity doesn't exist, this call is ignored.
      • remove

        @Deprecated
        public void remove​(int entity)
        Deprecated.
      • removeEntities

        public void removeEntities​(int[] entities)
        Removes a list of entities from the Scene. This is equivalent to calling remove in a loop. If any of the specified entities do not exist in the scene, they are skipped.
        Parameters:
        entities - array containing entities to remove from the Scene.
      • getRenderableCount

        public int getRenderableCount()
        Returns the number of RenderableManager components in the Scene.
        Returns:
        number of RenderableManager components in the Scene..
      • getLightCount

        public int getLightCount()
        Returns the number of LightManager components in the Scene.
        Returns:
        number of LightManager components in the Scene..
      • getNativeObject

        public long getNativeObject()