Class MaterialDef


  • public final class MaterialDef
    extends Table
    • Constructor Detail

      • MaterialDef

        public MaterialDef()
    • Method Detail

      • getRootAsMaterialDef

        public static MaterialDef getRootAsMaterialDef​(java.nio.ByteBuffer _bb)
      • getRootAsMaterialDef

        public static MaterialDef getRootAsMaterialDef​(java.nio.ByteBuffer _bb,
                                                       MaterialDef obj)
      • __init

        public void __init​(int _i,
                           java.nio.ByteBuffer _bb)
      • __assign

        public MaterialDef __assign​(int _i,
                                    java.nio.ByteBuffer _bb)
      • name

        public java.lang.String name()
        The name of the material.
      • nameAsByteBuffer

        public java.nio.ByteBuffer nameAsByteBuffer()
      • nameInByteBuffer

        public java.nio.ByteBuffer nameInByteBuffer​(java.nio.ByteBuffer _bb)
      • properties

        public VariantMapDef properties()
        A dictionary of all material properties extracted from the source file. These properties are interpretted by the RenderSystem to create the appropriate Material.
      • textures

        public MaterialTextureDef textures​(int j)
        The list of textures associated with the Material.
      • texturesLength

        public int texturesLength()
      • createMaterialDef

        public static int createMaterialDef​(FlatBufferBuilder builder,
                                            int nameOffset,
                                            int propertiesOffset,
                                            int texturesOffset)
      • startMaterialDef

        public static void startMaterialDef​(FlatBufferBuilder builder)
      • addName

        public static void addName​(FlatBufferBuilder builder,
                                   int nameOffset)
      • addProperties

        public static void addProperties​(FlatBufferBuilder builder,
                                         int propertiesOffset)
      • addTextures

        public static void addTextures​(FlatBufferBuilder builder,
                                       int texturesOffset)
      • createTexturesVector

        public static int createTexturesVector​(FlatBufferBuilder builder,
                                               int[] data)
      • startTexturesVector

        public static void startTexturesVector​(FlatBufferBuilder builder,
                                               int numElems)