コード例 #1
0
        public NameWidget(SceneNode node, string name) : base(name)
        {
            this.node     = node;
            textBillboard = new TextBillboardSet("NameBar/" + name);
            node.AttachObject(textBillboard);
            Renderer tmp = GuiSystem.Instance.Renderer;

            Debug.Assert(tmp is MultiverseRenderer, "Not using multiverse renderer");
            renderer = (MultiverseRenderer)tmp;
        }
コード例 #2
0
 public NameWidget(SceneNode node, string name)
     : base(name)
 {
     this.node = node;
     textBillboard = new TextBillboardSet("NameBar/" + name);
     node.AttachObject(textBillboard);
     Renderer tmp = GuiSystem.Instance.Renderer;
     Debug.Assert(tmp is MultiverseRenderer, "Not using multiverse renderer");
     renderer = (MultiverseRenderer)tmp;
 }