コード例 #1
0
        public glTFBufferView Append <T>(ArraySegment <T> segment, glBufferTarget target) where T : struct
        {
            var view = Storage.Extend(segment, target);

            byteLength = Storage.GetBytes().Count;
            return(view);
        }
コード例 #2
0
        public glTFBufferView ExtendBufferAndGetView <T>(ArraySegment <T> segment, glBufferTarget target) where T : struct
        {
            var view = _buffer.Extend(segment, target);

            GLTF.buffers[0].byteLength = _buffer.Bytes.Count;
            return(view);
        }
コード例 #3
0
        public glTFBufferView Append <T>(ArraySegment <T> segment, glBufferTarget target) where T : struct
        {
            var view = m_buffer.Extend(segment, target);

            byteLength = m_buffer.Bytes.Count;
            return(view);
        }
コード例 #4
0
ファイル: BytesBuffer.cs プロジェクト: gpsnmeajp/Oredayo4V
 public static glTFBufferView Extend <T>(this IBytesBuffer buffer, T[] array, glBufferTarget target) where T : struct
 {
     return(buffer.Extend(new ArraySegment <T>(array), target));
 }