int LuaScriptUtilities::PushRealAttribute(
    lua_State* const luaVM,
    const Ogre::Real real,
    const Ogre::String attributeName,
    const int tableIndex)
{
    PushString(luaVM, attributeName);
    PushReal(luaVM, real);
    lua_settable(luaVM, tableIndex);
    return 1;
}
Example #2
0
CodeBlock YpImaginary(double d)
{ return PushReal(d, &PushImaginary); }
Example #3
0
CodeBlock YpDouble(double d)
{ return PushReal(d, &PushDouble); }
Example #4
0
CodeBlock YpFloat(double f)
{ return PushReal(f, &PushFloat); }