static void EraseTextDrawable(SceneNode & node, keyed_container<Drawable>::handle & drawhandle) { if (drawhandle.valid()) { node.GetDrawlist().twodim.erase(drawhandle); drawhandle.invalidate(); } }
static void EraseTextDrawable(SCENENODE & node, keyed_container<DRAWABLE>::handle & drawhandle) { if (drawhandle.valid()) { node.GetDrawlist().twodim.erase(drawhandle); drawhandle.invalidate(); } }
void ConfigureDrawable(keyed_container <DRAWABLE>::handle & ref, SCENENODE & topnode, float r, float g, float b) { if (!ref.valid()) { ref = topnode.GetDrawlist().normal_noblend.insert(DRAWABLE()); DRAWABLE & d = topnode.GetDrawlist().normal_noblend.get(ref); d.SetColor(r,g,b,1); d.SetDecal(true); } }
inline void Erase(SCENENODE & node, keyed_container <DRAWABLE>::handle & drawhandle) { if (drawhandle.valid()) node.GetDrawlist().twodim.erase(drawhandle); }