michael.zhang Posted October 20, 2010 Share Posted October 20, 2010 Hello, string className = "Unigine::CombinerAdd"; Unigine::CombinerAdd combiner = new (className); // combiner.combiner_init(mesh); The CombinerAdd constructor can also take a mesh object. How can I specify arguments when constructing using this syntax? In the meantime, I am manually calling the combiner_init(mesh) to initialize the object. Link to comment
Guest extaliones Posted October 28, 2010 Share Posted October 28, 2010 class NodeWrapper { Node node; NodeWrapper(Node n) { node = n; } ~NodeWrapper() { } }; string type = "NodeWrapper"; Node n = engine.editor.getNode(engine.editor.findNode("box")); NodeWrapper wrapper = new(type,n); Link to comment
michael.zhang Posted October 28, 2010 Author Share Posted October 28, 2010 Oh, I see. Thank you, didn't think to try that syntax. Link to comment
Recommended Posts