Beispiel #1
0
        public int AddFloatData(ObservableCollection <PrimitiveBinding <float> > float_data)
        {
            int new_offset = FloatBank.Count;

            for (int i = 0; i < float_data.Count; i++)
            {
                FloatBank.Add(float_data[i].Value);
            }

            return(new_offset);
        }
Beispiel #2
0
        public int AddVec3Data(ObservableCollection <BindingVector3> vec3_data)
        {
            int new_offset = FloatBank.Count;

            foreach (BindingVector3 v in vec3_data)
            {
                FloatBank.Add(v.X);
                FloatBank.Add(v.Y);
                FloatBank.Add(v.Z);
            }

            return(new_offset);
        }