コード例 #1
0
        /// <summary>
        /// Creates a new <see cref="SceneInstance"/> of this <see cref="SceneTemplate"/>
        /// that can be used to render the scene.
        /// </summary>
        /// <returns>A new <see cref="SceneInstance"/> object.</returns>
        public SceneInstance CreateInstance()
        {
            var inst = new SceneInstance(_Armature, _DrawableReferences);

            inst.Armature.SetPoseTransforms();

            return(inst);
        }
コード例 #2
0
ファイル: SceneTemplate.cs プロジェクト: niuge8905/SharpGLTF
        /// <summary>
        /// Creates a new <see cref="SceneInstance"/> of this <see cref="SceneTemplate"/>
        /// that can be used to render the scene.
        /// </summary>
        /// <returns>A new <see cref="SceneInstance"/> object.</returns>
        public SceneInstance CreateInstance()
        {
            var inst = new SceneInstance(_NodeTemplates, _DrawableReferences, _AnimationTracks);

            inst.SetPoseTransforms();

            return(inst);
        }
コード例 #3
0
 internal MonoGameModelInstance(MonoGameModelTemplate template, SceneInstance instance)
 {
     _Template   = template;
     _Controller = instance;
 }