当前位置: 首页>>代码示例>>C++>>正文


C++ EntityKeyValues::getEntityClass方法代码示例

本文整理汇总了C++中EntityKeyValues::getEntityClass方法的典型用法代码示例。如果您正苦于以下问题:C++ EntityKeyValues::getEntityClass方法的具体用法?C++ EntityKeyValues::getEntityClass怎么用?C++ EntityKeyValues::getEntityClass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EntityKeyValues的用法示例。


在下文中一共展示了EntityKeyValues::getEntityClass方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: renderSolid

		void renderSolid (Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld, bool selected) const
		{
			if (selected) {
				m_renderOrigin.render(renderer, volume, localToWorld);
			}

			ASSERT_NOTNULL(m_entity.getEntityClass().m_state_wire);
			renderer.SetState(m_entity.getEntityClass().m_state_wire, Renderer::eWireframeOnly);
		}
开发者ID:MyWifeRules,项目名称:ufoai-1,代码行数:9,代码来源:miscmodel.cpp

示例2: construct

		void construct ()
		{
			read_aabb(m_aabb_local, m_entity.getEntityClass());

			m_keyObservers.insert("targetname", NamedEntity::IdentifierChangedCaller(m_named));
			m_keyObservers.insert("origin", OriginKey::OriginChangedCaller(m_originKey));
			m_keyObservers.insert("particle", ParticleChangedCaller(*this));
		}
开发者ID:chrisglass,项目名称:ufoai,代码行数:8,代码来源:miscparticle.cpp

示例3: renderSolid

		void renderSolid (Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld) const
		{
			renderer.SetState(m_entity.getEntityClass().m_state_fill, Renderer::eFullMaterials);
			if (m_particle == NULL || !m_particle->getImage().empty())
				renderer.addRenderable(m_renderParticle, localToWorld);
			else
				renderer.addRenderable(m_renderAABBSolid, localToWorld);
		}
开发者ID:chrisglass,项目名称:ufoai,代码行数:8,代码来源:miscparticle.cpp

示例4: renderWireframe

		void renderWireframe (Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld) const
		{
			renderer.SetState(m_entity.getEntityClass().m_state_wire, Renderer::eWireframeOnly);
			renderer.addRenderable(m_renderAABBWire, localToWorld);
			renderArrow(renderer, volume, localToWorld);
			if (GlobalRegistry().get("user/ui/xyview/showEntityNames") == "1") {
				renderer.addRenderable(m_renderName, localToWorld);
			}
		}
开发者ID:MyWifeRules,项目名称:ufoai-1,代码行数:9,代码来源:miscsound.cpp

示例5: renderWireframe

 void renderWireframe(Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld) const
 {
   renderer.SetState(m_entity.getEntityClass().m_state_wire, Renderer::eWireframeOnly);
   renderer.addRenderable(m_aabb_wire, localToWorld);
   renderArrow(renderer, volume, localToWorld);
   if(g_showNames)
   {
     renderer.addRenderable(m_renderName, localToWorld);
   }
 }
开发者ID:clbr,项目名称:netradiant,代码行数:10,代码来源:generic.cpp

示例6: construct

  void construct()
  {
    read_aabb(m_aabb_local, m_entity.getEntityClass());

    m_keyObservers.insert("classname", ClassnameFilter::ClassnameChangedCaller(m_filter));
    m_keyObservers.insert(Static<KeyIsName>::instance().m_nameKey, NamedEntity::IdentifierChangedCaller(m_named));
    m_keyObservers.insert("angle", AnglesKey::AngleChangedCaller(m_anglesKey));
    m_keyObservers.insert("angles", AnglesKey::AnglesChangedCaller(m_anglesKey));
    m_keyObservers.insert("origin", OriginKey::OriginChangedCaller(m_originKey));
  }
开发者ID:clbr,项目名称:netradiant,代码行数:10,代码来源:generic.cpp

示例7: renderSolid

		void renderSolid (Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld, bool selected) const
		{
			renderer.SetState(m_entity.getEntityClass().m_state_wire, Renderer::eWireframeOnly);
			renderer.SetState(m_colour.state(), Renderer::eFullMaterials);
			renderer.addRenderable(*this, localToWorld);

			if ((entity::EntitySettings::Instance().showAllLightRadii() || (selected
					&& entity::EntitySettings::Instance().showSelectedLightRadii()))
					&& m_entity.getKeyValue("target").empty()) {
				if (renderer.getStyle() == Renderer::eFullMaterials) {
					renderer.SetState(RenderLightRadiiFill::m_state, Renderer::eFullMaterials);
					renderer.Highlight(Renderer::ePrimitive, false);
					renderer.addRenderable(m_radii_fill, localToWorld);
				} else {
					renderer.addRenderable(m_radii_wire, localToWorld);
				}
			}

			renderer.SetState(m_entity.getEntityClass().m_state_wire, Renderer::eFullMaterials);
		}
开发者ID:MyWifeRules,项目名称:ufoai-1,代码行数:20,代码来源:light.cpp

示例8: construct

		void construct ()
		{
			read_aabb(m_aabb_local, m_entity.getEntityClass());
			m_ray.origin = m_aabb_local.origin;
			m_ray.direction[0] = 1;
			m_ray.direction[1] = 0;
			m_ray.direction[2] = 0;

			m_keyObservers.insert("targetname", NamedEntity::IdentifierChangedCaller(m_named));
			m_keyObservers.insert("angle", AngleKey::AngleChangedCaller(m_angleKey));
			m_keyObservers.insert("origin", OriginKey::OriginChangedCaller(m_originKey));
		}
开发者ID:MyWifeRules,项目名称:ufoai-1,代码行数:12,代码来源:miscsound.cpp

示例9: renderWireframe

		void renderWireframe (Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld,
				const AABB& childBounds) const
		{
			renderSolid(renderer, volume, localToWorld);

			if (GlobalRegistry().get("user/ui/xyview/showEntityNames") == "1") {
				// don't draw the name for worldspawn
				if (m_entity.getEntityClass().name() == "worldspawn")
					return;

				// place name in the middle of the "children cloud"
				m_name_origin = childBounds.origin;

				renderer.addRenderable(m_renderName, localToWorld);
			}
		}
开发者ID:chrisglass,项目名称:ufoai,代码行数:16,代码来源:group.cpp

示例10: renderSolid

  void renderSolid(Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld, bool selected) const
  {
    if(isModel() && selected)
    {
      m_renderOrigin.render(renderer, volume, localToWorld);
    }

    renderer.SetState(m_entity.getEntityClass().m_state_wire, Renderer::eWireframeOnly);
    renderer.SetState(m_entity.getEntityClass().m_state_wire, Renderer::eFullMaterials);

    if(!m_curveNURBS.m_renderCurve.m_vertices.empty())
    {
      renderer.addRenderable(m_curveNURBS.m_renderCurve, localToWorld);
    }
    if(!m_curveCatmullRom.m_renderCurve.m_vertices.empty())
    {
      renderer.addRenderable(m_curveCatmullRom.m_renderCurve, localToWorld);
    }
  }
开发者ID:ChunHungLiu,项目名称:GtkRadiant,代码行数:19,代码来源:doom3group.cpp

示例11: renderSolid

		void renderSolid (Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld) const
		{
			renderer.SetState(m_entity.getEntityClass().m_state_wire, Renderer::eWireframeOnly);
		}
开发者ID:chrisglass,项目名称:ufoai,代码行数:4,代码来源:group.cpp

示例12: renderSolid

 void renderSolid(Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld) const
 {
   renderer.SetState(m_entity.getEntityClass().m_state_fill, Renderer::eFullMaterials);
   renderer.addRenderable(m_aabb_solid, localToWorld);
   renderArrow(renderer, volume, localToWorld);
 }
开发者ID:clbr,项目名称:netradiant,代码行数:6,代码来源:generic.cpp


注:本文中的EntityKeyValues::getEntityClass方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。