com.aspose.threed

Interfaces

Classes

Enums

Exceptions

Class Texture



  • public class Texture
    extends TextureBase
    This class defines the texture from an external file.
    • Constructor Detail

      • Texture

        public Texture()
        Initializes a new instance of the Texture class.
      • Texture

        public Texture(String name)
        Initializes a new instance of the Texture class.
        Parameters:
        name - Name
    • Method Detail

      • getEnableMipMap

        public boolean getEnableMipMap()
        Gets if the mipmap is enabled for this texture
      • setEnableMipMap

        public void setEnableMipMap(boolean value)
        Sets if the mipmap is enabled for this texture
        Parameters:
        value - New value
      • getContent

        public byte[] getContent()
        Gets the binary content of the texture. The embedded texture content is optional, user should load texture from external file if this is missing.
      • setContent

        public void setContent(byte[] value)
        Sets the binary content of the texture. The embedded texture content is optional, user should load texture from external file if this is missing.
        Parameters:
        value - New value
      • getFileName

        public String getFileName()
        Gets the associated texture file.
      • setFileName

        public void setFileName(String value)
        Sets the associated texture file.
        Parameters:
        value - New value