Class ShortTextureProjected2D

    • Constructor Detail

      • ShortTextureProjected2D

        public ShortTextureProjected2D​(int dataSizeX,
                                       int dataSizeY)
      • ShortTextureProjected2D

        public ShortTextureProjected2D​(int dataSizeX,
                                       int dataSizeY,
                                       boolean useVertexZCoord)
    • Method Detail

      • setData

        public void setData​(short[][] data)
        Updates this texture with new data values. The dimensions of the data array should be float[n0][n1] where n0 and n1 are the first and second arguments provided to resize( ) or to the Texture constructor.
        Parameters:
        data - the new data values to load into this texture.
      • setData

        public void setData​(short[][] data,
                            boolean flip)
      • mutate

        public void mutate​(ShortTextureProjected2D.MutatorShort2D mutator)
        Provides a general, thread-safe mechanism for arbitrarily updating the data values for this Texture. Modifications made to the FloatBuffer passed as an argument to the mutate( ) function will be reflected in the Texture data.
        Parameters:
        mutator - a class defining the operation which should be applied to the texture data.