LuaHelpers::FromStack

This commit is contained in:
Glenn Maynard
2006-09-22 19:07:56 +00:00
parent f8b3a17c6f
commit 32ccbbbb99
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -33,6 +33,12 @@ void RageColor::FromStack( lua_State *L, int iPos )
lua_pop( L, 5 );
}
bool LuaHelpers::FromStack( lua_State *L, RageColor &Object, int iOffset )
{
Object.FromStack( L, iOffset );
return true;
}
/*
* Copyright (c) 2006 Glenn Maynard
* All rights reserved.
+5
View File
@@ -162,6 +162,11 @@ public:
float r, g, b, a;
} SM_ALIGN(16);
namespace LuaHelpers
{
bool FromStack( lua_State *L, RageColor &Object, int iOffset );
}
/* Convert floating-point 0..1 value to integer 0..255 value. *
*
* As a test case,