Class Image3DTexture

java.lang.Object
mgui.interfaces.shapes.util.Image3DTexture

public class Image3DTexture
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    int depth  
    int height  
    org.jogamp.java3d.Texture3D texture  
    int width  
  • Constructor Summary

    Constructors
    Constructor Description
    Image3DTexture()  
    Image3DTexture​(java.awt.image.BufferedImage image, int d)  
    Image3DTexture​(java.awt.image.BufferedImage image, int d, boolean hasAlpha)  
  • Method Summary

    Modifier and Type Method Description
    org.jogamp.vecmath.TexCoord3f[] getTexCoords​(int i)  
    org.jogamp.java3d.Texture3D getTexture()  
    void setTexture​(java.awt.image.BufferedImage image, boolean hasAlpha)
    Sets the texture for this object from an image.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • texture

      public org.jogamp.java3d.Texture3D texture
    • width

      public int width
    • height

      public int height
    • depth

      public int depth
  • Constructor Details

    • Image3DTexture

      public Image3DTexture()
    • Image3DTexture

      public Image3DTexture​(java.awt.image.BufferedImage image, int d)
    • Image3DTexture

      public Image3DTexture​(java.awt.image.BufferedImage image, int d, boolean hasAlpha)
  • Method Details

    • setTexture

      public void setTexture​(java.awt.image.BufferedImage image, boolean hasAlpha)
      Sets the texture for this object from an image.
      Parameters:
      image - BufferedImage with which to set this texture
    • getTexture

      public org.jogamp.java3d.Texture3D getTexture()
    • getTexCoords

      public org.jogamp.vecmath.TexCoord3f[] getTexCoords​(int i)