Class Scene.CppProxy

  • All Implemented Interfaces:
    Scene
    Enclosing interface:
    Scene

    public static final class Scene.CppProxy
    extends java.lang.Object
    implements Scene
    • Method Detail

      • _djinni_private_destroy

        public void _djinni_private_destroy()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: Scene
        Set a new name for a scene. The name could be empty.
        Specified by:
        setName in interface Scene
      • getName

        public java.lang.String getName()
        Description copied from interface: Scene
        Get a scene name.
        Specified by:
        getName in interface Scene
      • getRoot

        public Entity getRoot()
        Description copied from interface: Scene
        Get the root of entities hierarchy. It always exists and has a name "Root".
        Specified by:
        getRoot in interface Scene
      • getAssetManager

        public AssetManager getAssetManager()
        Description copied from interface: Scene
        Get the AssetManager of a current scene. It always exists.
        Specified by:
        getAssetManager in interface Scene
      • addLayer

        public void addLayer​(Layer layer)
        Specified by:
        addLayer in interface Scene
      • getLayers

        public java.util.ArrayList<Layer> getLayers()
        Specified by:
        getLayers in interface Scene
      • getComponents

        public java.util.ArrayList<Component> getComponents​(ComponentType type)
        Description copied from interface: Scene
        Get all components present in this scene of specified type
        Specified by:
        getComponents in interface Scene
      • getLayer

        public Layer getLayer​(java.lang.String layerName)
        Description copied from interface: Scene
        Return first found layer with name `layerName` or NULL if such layer doesn't exist.
        Specified by:
        getLayer in interface Scene
      • clearRenderList

        public void clearRenderList()
        Specified by:
        clearRenderList in interface Scene
      • addEffectEvent

        public void addEffectEvent​(java.lang.String name,
                                   java.util.HashMap<java.lang.String,​java.lang.String> params)
        Specified by:
        addEffectEvent in interface Scene
      • createEntity

        public Entity createEntity​(java.lang.String name)
        Specified by:
        createEntity in interface Scene
      • findGlobalMaterialParameter

        public Parameter findGlobalMaterialParameter​(java.lang.String name)
        Description copied from interface: Scene
        find global material parameter by name
        Specified by:
        findGlobalMaterialParameter in interface Scene
        Parameters:
        name - (string)
        Returns:
        parameter (parameter) or null