Class DecalMaterial


  • public class DecalMaterial
    extends java.lang.Object
    Material used by the Decal class
    • Field Detail

      • srcBlendFactor

        protected int srcBlendFactor
      • dstBlendFactor

        protected int dstBlendFactor
    • Constructor Detail

      • DecalMaterial

        public DecalMaterial()
    • Method Detail

      • set

        public void set()
        Binds the material's texture to the OpenGL context and changes the glBlendFunc to the values used by it.
      • isOpaque

        public boolean isOpaque()
        Returns:
        true if the material is completely opaque, false if it is not and therefor requires blending
      • getSrcBlendFactor

        public int getSrcBlendFactor()
      • getDstBlendFactor

        public int getDstBlendFactor()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object