Alexandria.Engines.DarkSouls.ModelVertexAttribute.MatchAttribute C# (CSharp) Метод

MatchAttribute() публичный Метод

Get the ProgramAttribute this should bind to, or null if there is none.
public MatchAttribute ( ModelProgram program ) : ProgramAttribute
program ModelProgram
Результат ProgramAttribute
        public ProgramAttribute MatchAttribute(ModelProgram program)
        {
            switch (Usage) {
                case ModelVertexUsage.BlendIndices: return program.BoneIndices;
                case ModelVertexUsage.BlendWeight: return program.BoneWeights;
                case ModelVertexUsage.Normal: return program.Normal;
                case ModelVertexUsage.Position: return program.Position;
                case ModelVertexUsage.TextureCoordinate: return program.Texel;
                default: return null;
            }
        }