Describes the layout of a vertex.
Inheritance: ModelAsset
Ejemplo n.º 1
0
        internal ModelVertexAttribute(ModelVertexDeclaration declaration, AssetLoader loader, int index)
            : base(declaration, index, loader)
        {
            var reader = loader.Reader;

            Declaration = declaration;
            reader.RequireZeroes(4);
            Offset     = reader.ReadInt32();
            Format     = (ModelVertexFormat)reader.ReadInt32();
            Usage      = (ModelVertexUsage)reader.ReadInt32();
            UsageIndex = reader.ReadInt32();
        }
        internal ModelVertexAttribute(ModelVertexDeclaration declaration, AssetLoader loader, int index)
            : base(declaration, index, loader)
        {
            var reader = loader.Reader;

            Declaration = declaration;
            reader.RequireZeroes(4);
            Offset = reader.ReadInt32();
            Format = (ModelVertexFormat)reader.ReadInt32();
            Usage = (ModelVertexUsage)reader.ReadInt32();
            UsageIndex = reader.ReadInt32();
        }