Package heronarts.glx

Class Texture

java.lang.Object
heronarts.glx.Texture
All Implemented Interfaces:
BGFXEngine.Resource

public class Texture extends Object implements BGFXEngine.Resource
  • Constructor Details

    • Texture

      public Texture(GLX glx, String path)
    • Texture

      public Texture(GLX glx, int width, int height, int textureFormat, byte[] textureData)
      Create a texture from a byte array of image data
      Parameters:
      glx - GLX instance
      width - Texture width
      height - Texture height
      textureFormat - BGFX texture format
      textureData - Texture data
  • Method Details