Class TextureData


  • public class TextureData
    extends Model3D.Texture
    container for storing texture data.
    • Constructor Detail

      • TextureData

        public TextureData​(long cPtr,
                           boolean cMemoryOwn)
      • TextureData

        public TextureData()
        constructor
      • TextureData

        public TextureData​(java.lang.String name,
                           ImagePtr img)
        constructor
        Parameters:
        name - [in] texture id
        img - [in] texture data
      • TextureData

        public TextureData​(java.lang.String name,
                           float r,
                           float g,
                           float b)
        constructor
        Parameters:
        name - [in] texture id
        r - [in] red value [0:1]
        g - [in] green value [0:1]
        b - [in] blue value [0:1]
    • Method Detail

      • getCPtr

        public static long getCPtr​(TextureData obj)
      • hasImageData

        public boolean hasImageData()
        check if this texture has image data
        Overrides:
        hasImageData in class Model3D.Texture
        Returns:
        true if it has image data, false otherwise
      • getImageData

        public ImagePtr getImageData()
        get image data
        Returns:
      • getName

        public java.lang.String getName()
        get id of texture
        Overrides:
        getName in class Model3D.Texture
        Returns:
      • clone

        public TexturePtr clone()
        Clone the current texture.
        The image data will be shared with the clone
        Overrides:
        clone in class Model3D.Texture
        Returns:
        rw::core::Ptr<Texture>