Example #1
0
        /// Allocates the vertex arrays for the animated geometry.
        void AllocateAnimatedGeometryArrays(const VertexArray &source)
        {
            Renderer::DeleteVertexArray(this->skinnedGeometry);

            this->skinnedGeometry = Renderer::CreateVertexArray(VertexArrayUsage_Stream, source.GetFormat());
            this->skinnedGeometry->SetData(nullptr, source.GetVertexCount(), source.GetIndexDataPtr(), source.GetIndexCount());
        }