Package com.gaia3d.basic.magogl.texture
Class MagoTexture2D
java.lang.Object
com.gaia3d.basic.magogl.texture.MagoTexture2D
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()static MagoTexture2DfromBufferedImage(BufferedImage image) intint[]intgetWidth()voidsampleBilinear(float u, float v, MagoTextureWrap wrapS, MagoTextureWrap wrapT, boolean invertV, org.joml.Vector4f result) voidsampleNearest(float u, float v, MagoTextureWrap wrapS, MagoTextureWrap wrapT, boolean invertV, org.joml.Vector4f result)
-
Constructor Details
-
MagoTexture2D
public MagoTexture2D(int width, int height, int[] pixels)
-
-
Method Details
-
fromBufferedImage
-
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()
-