示例#1
0
void CDisplayText::DisplayText(const char *text, CObject* pObj,
                               float time, TextType type)
{
    if (pObj == nullptr)  return;

    Math::Vector pos = pObj->GetPosition();
    float h = GetIdealHeight(pObj);
    float d = GetIdealDist(pObj);
    DisplayText(text, pos, h, d, time, type);
}
示例#2
0
void CDisplayText::DisplayError(Error err, CObject* pObj, float time)
{
    if (pObj == nullptr)
        return;

    Math::Vector pos = pObj->GetPosition();
    float h = GetIdealHeight(pObj);
    float d = GetIdealDist(pObj);
    DisplayError(err, pos, h, d, time);
}
示例#3
0
void CDisplayText::DisplayError(Error err, CObject* pObj, float time)
{
    Math::Vector    pos;
    float       h, d;

    if ( pObj == 0 )  return;

    pos = pObj->GetPosition(0);
    h = GetIdealHeight(pObj);
    d = GetIdealDist(pObj);
    DisplayError(err, pos, h, d, time);
}
示例#4
0
void CDisplayText::DisplayText(const char *text, CObject* pObj,
                               float time, TextType type)
{
    Math::Vector    pos;
    float       h, d;

    if ( pObj == 0 )  return;

    pos = pObj->GetPosition(0);
    h = GetIdealHeight(pObj);
    d = GetIdealDist(pObj);
    DisplayText(text, pos, h, d, time, type);
}