LuaHelpers::FromStack
This commit is contained in:
@@ -33,6 +33,12 @@ void RageColor::FromStack( lua_State *L, int iPos )
|
|||||||
lua_pop( L, 5 );
|
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
|
* Copyright (c) 2006 Glenn Maynard
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
@@ -162,6 +162,11 @@ public:
|
|||||||
float r, g, b, a;
|
float r, g, b, a;
|
||||||
} SM_ALIGN(16);
|
} 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. *
|
/* Convert floating-point 0..1 value to integer 0..255 value. *
|
||||||
*
|
*
|
||||||
* As a test case,
|
* As a test case,
|
||||||
|
|||||||
Reference in New Issue
Block a user