Class AWTTextureData

    • Constructor Detail

      • AWTTextureData

        public AWTTextureData​(GLProfile glp,
                              int internalFormat,
                              int pixelFormat,
                              boolean mipmap,
                              BufferedImage image)
        Constructs a new TextureData object with the specified parameters and data contained in the given BufferedImage. The resulting TextureData "wraps" the contents of the BufferedImage, so if a modification is made to the BufferedImage between the time the TextureData is constructed and when a Texture is made from the TextureData, that modification will be visible in the resulting Texture.
        Parameters:
        glp - the OpenGL Profile this texture data should be created for.
        internalFormat - the OpenGL internal format for the resulting texture; may be 0, in which case it is inferred from the image's type
        pixelFormat - the OpenGL internal format for the resulting texture; may be 0, in which case it is inferred from the image's type (note: this argument is currently always ignored)
        mipmap - indicates whether mipmaps should be autogenerated (using GLU) for the resulting texture
        image - the image containing the texture data