Esempio n. 1
0
 public VertexDeclarationBuilder()
 {
     declarationMapping = new Dictionary <Type, VertexElement[]>();
     typeHash           = new Dictionary <Type, short>();
     hashingDecl        = new DeclarationHash(typeof(Vector3), typeHash, ref typeIndex);   //static to keep from GC messing
     Instance           = this;
 }
Esempio n. 2
0
        public VertexDeclarationBuilder(DeviceContext context)
        {
            _context            = context;
            _declarationMapping = new Dictionary <Type, VertexElement[]>();
            _typeHash           = new Dictionary <Type, short>();
            _hashingDecl        = new DeclarationHash(typeof(Vector3), _typeHash, ref _typeIndex);     //static to keep from GC messing
            Instance            = this;

            BuildFormatList();
        }