本文整理汇总了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);
}
示例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));
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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));
}
示例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);
}
示例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));
}
示例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);
}
}
示例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);
}
}
示例11: renderSolid
void renderSolid (Renderer& renderer, const VolumeTest& volume, const Matrix4& localToWorld) const
{
renderer.SetState(m_entity.getEntityClass().m_state_wire, Renderer::eWireframeOnly);
}
示例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);
}