Class MaterialTechnique

    • Constructor Detail

      • MaterialTechnique

        protected MaterialTechnique​(int techniqueIndex)
        Protected constructor, only called from children.
        Parameters:
        techniqueIndex - Value of the index.
      • MaterialTechnique

        protected MaterialTechnique​(int techniqueIndex,
                                    List<MaterialPass> passList)
        Protected copy constructor, only called from children.
        Parameters:
        techniqueIndex - Value of the index.
        passList - List of pass contained in this technique.
    • Method Detail

      • createTexturePass

        public final MaterialPass createTexturePass()
        Create a new MaterialPass and insert it in the list.
        Returns:
        The newly created MaterialPass.
      • createPassImpl

        protected abstract MaterialPass createPassImpl​(int index)
        Call implementation to create a new MaterialPass.
        Parameters:
        index - Pass index.
        Returns:
        the created pass.
      • getPass

        public final MaterialPass getPass​(int indexValue)
        Get a pass used with this technique, throws InvalidParameterException If no technique is found for the given parameter.
        Parameters:
        indexValue - Index of the technique used, first is 0.
        Returns:
        The associated technique.
      • setGlow

        public final void setGlow()
        Activate glow for this technique.
      • setGlowImpl

        protected abstract void setGlowImpl()
        Activate glow for this technique in implementation.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object