Class MagoTexture2D

java.lang.Object
com.gaia3d.basic.magogl.texture.MagoTexture2D

public final class MagoTexture2D extends Object
  • Constructor Details

    • MagoTexture2D

      public MagoTexture2D(int width, int height, int[] pixels)
  • Method Details

    • fromBufferedImage

      public static MagoTexture2D fromBufferedImage(BufferedImage image)
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getPixelsCopy

      public int[] getPixelsCopy()
    • sampleNearest

      public void sampleNearest(float u, float v, MagoTextureWrap wrapS, MagoTextureWrap wrapT, boolean invertV, org.joml.Vector4f result)
    • sampleBilinear

      public void sampleBilinear(float u, float v, MagoTextureWrap wrapS, MagoTextureWrap wrapT, boolean invertV, org.joml.Vector4f result)
    • delete

      public void delete()