예제 #1
0
static void EraseTextDrawable(SceneNode & node, keyed_container<Drawable>::handle & drawhandle)
{
	if (drawhandle.valid())
	{
		node.GetDrawlist().twodim.erase(drawhandle);
		drawhandle.invalidate();
	}
}
예제 #2
0
static void EraseTextDrawable(SCENENODE & node, keyed_container<DRAWABLE>::handle & drawhandle)
{
	if (drawhandle.valid())
	{
		node.GetDrawlist().twodim.erase(drawhandle);
		drawhandle.invalidate();
	}
}
예제 #3
0
파일: ai.cpp 프로젝트: mutnig/vdrift
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);
	}
}
예제 #4
0
파일: hudgauge.cpp 프로젝트: Bengt/vdrift
inline void Erase(SCENENODE & node, keyed_container <DRAWABLE>::handle & drawhandle)
{
	if (drawhandle.valid()) node.GetDrawlist().twodim.erase(drawhandle);
}