コード例 #1
0
ファイル: SceneNode.cs プロジェクト: absturztaube/EngineTK
        public SceneNode()
        {
            this.generateId();
            this._children = new List<SceneNode>();
            this._worldMatrix = Matrix4.Identity;
            this._realMatrix = Matrix4.Identity;

            this._scripts = new ScriptEngine();
            this._scripts.BindType("node", this);
            this._scripts.IncludeAssembly(typeof(OpenTK.GameWindow).Assembly);

            this.initialize();
            this._isInitialized = true;
        }
コード例 #2
0
ファイル: SceneEditor.cs プロジェクト: absturztaube/EngineTK
 private void setupScriptEngine()
 {
     this._editorScripts = new ScriptEngine();
     this._editorScripts.BindType("editor", this);
 }