Пример #1
0
LightInstance::LightInstance (const scene::Path& path, scene::Instance* parent, Light& contained) :
		TargetableInstance(path, parent, contained.getEntity(), *this), TransformModifier(
				Light::TransformChangedCaller(contained), ApplyTransformCaller(*this)), m_contained(contained)
{
	m_contained.instanceAttach(Instance::path());

	StaticRenderableConnectionLines::instance().attach(*this);
}
Пример #2
0
BrushInstance::BrushInstance (const scene::Path& path, scene::Instance* parent, Brush& brush) :
	Instance(path, parent), TransformModifier(Brush::TransformChangedCaller(
			brush), ApplyTransformCaller(*this)), m_brush(brush), m_selectable(SelectedChangedCaller(*this)),
			m_render_selected(GL_POINTS), m_render_faces_wireframe(m_faceCentroidPointsCulled, GL_POINTS),
			m_viewChanged(false)
{
	m_brush.instanceAttach(Instance::path());
	m_brush.attach(*this);
	GlobalRadiant().getCounter(counterBrushes).increment();
}