Esempio n. 1
0
static void EraseTextDrawable(SceneNode & node, SceneNode::DrawableHandle & drawhandle)
{
	if (drawhandle.valid())
	{
		node.GetDrawList().twodim.erase(drawhandle);
		drawhandle.invalidate();
	}
}
Esempio n. 2
0
void AiCarStandard::ConfigureDrawable(SceneNode::DrawableHandle & 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);
	}
}