本文整理汇总了C++中Light_Entity::ID方法的典型用法代码示例。如果您正苦于以下问题:C++ Light_Entity::ID方法的具体用法?C++ Light_Entity::ID怎么用?C++ Light_Entity::ID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Light_Entity
的用法示例。
在下文中一共展示了Light_Entity::ID方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetIntensity
float Light_Manager::GetIntensity(Light_Entity e)
{
if(e.Dynamic())
if(e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
return m_DynamicLight[e.ID()]->GetIntensity();
return 0;
}
示例2: GetRadius
float Light_Manager::GetRadius(Light_Entity e)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
return m_DynamicLight[e.ID()].GetRadius();
return 0;
}
示例3: Draw
void Light_Manager::Draw(sf::RenderTarget *App,sf::View *camera,Light_Entity e)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
if (m_DynamicLight[e.ID()].m_actif)
m_DynamicLight[e.ID()].Draw(App);
}
示例4:
sf::Vector2f Light_Manager::GetPosition(Light_Entity e)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
return m_DynamicLight[e.ID()].GetPosition();
return sf::Vector2f (0,0);
}
示例5: GetColor
sf::Color Light_Manager::GetColor(Light_Entity e)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
return m_DynamicLight[e.ID()].GetColor();
return sf::Color (0,0,0);
}
示例6: Generate
void Light_Manager::Generate(Light_Entity &e)
{
if (configuration->Lumiere>0)
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
if (m_DynamicLight[e.ID()].m_actif)
m_DynamicLight[e.ID()].Generate(m_wall, m_sectors, m_origin_sector);
}
示例7: Delete_Light
// On désactive une lumière
void Light_Manager::Delete_Light(Light_Entity e)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
m_DynamicLight[e.ID()].m_actif=false;
else
if (e.ID()>=0&&e.ID()<(int)m_StaticLight.size())
m_StaticLight[e.ID()].m_actif=false;
}
示例8: SetIntensity
void Light_Manager::SetIntensity(Light_Entity &e, int i)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
m_DynamicLight[e.ID()].SetIntensity(i);
}
示例9: SetColor
void Light_Manager::SetColor(Light_Entity &e, sf::Color c)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
m_DynamicLight[e.ID()].SetColor(c);
}
示例10: SetRadius
void Light_Manager::SetRadius(Light_Entity &e, int r)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
m_DynamicLight[e.ID()].SetRadius(r);
}
示例11: SetQuality
void Light_Manager::SetQuality(Light_Entity &e, int q)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
m_DynamicLight[e.ID()].SetQuality(q);
}
示例12: SetPosition
void Light_Manager::SetPosition(Light_Entity &e, sf::Vector2f p)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
m_DynamicLight[e.ID()].SetPosition(p);
}
示例13: SetMovingLight
void Light_Manager::SetMovingLight(Light_Entity &e, bool m)
{
if (e.Dynamic())
if (e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
m_DynamicLight[e.ID()].SetMovingLight(m);
}
示例14: SetOtherParameter
void Light_Manager::SetOtherParameter(Light_Entity e, unsigned no, float v)
{
if(e.Dynamic())
if(e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
m_DynamicLight[e.ID()]->SetOtherParameter(no, v);
}
示例15: Generate
void Light_Manager::Generate(Light_Entity e)
{
if(e.Dynamic())
if(e.ID()>=0&&e.ID()<(int)m_DynamicLight.size())
m_DynamicLight[e.ID()]->Generate(m_wall);
}