Class TextureHelper

java.lang.Object
team.lodestar.lodestone.helpers.TextureHelper

public class TextureHelper extends Object
  • Constructor Details

    • TextureHelper

      public TextureHelper()
  • Method Details

    • convertTextureAtlasToVolume

      public static ByteBuffer convertTextureAtlasToVolume(ByteBuffer textureAtlas, int width, int height, int xSlices, int ySlices, int channels, int[] resultSize)
      Converts a texture atlas to a 3D texture volume
      Parameters:
      textureAtlas - the texture atlas
      width - the width of the texture atlas
      height - the height of the texture atlas
      xSlices - the number of slices in the x direction
      ySlices - the number of slices in the y direction
      Returns:
      the 3D texture volume
    • validateTextureAtlasSize

      public static void validateTextureAtlasSize(int width, int height, int xSlices, int ySlices)