move color() into RageTypes

This commit is contained in:
Glenn Maynard
2006-09-29 10:04:36 +00:00
parent e91a806b37
commit e501a5a9cd
2 changed files with 10 additions and 11 deletions
-11
View File
@@ -703,17 +703,6 @@ LuaFunction( scale, scale(FArg(1), FArg(2), FArg(3), FArg(4), FArg(5)) );
LuaFunction( clamp, clamp(FArg(1), FArg(2), FArg(3)) );
#include "RageTypes.h"
int LuaFunc_color( lua_State *L )
{
RString sColor = SArg(1);
RageColor c;
c.FromString( sColor );
c.PushTable( L );
return 1;
}
static LuaFunctionList g_color( "color", LuaFunc_color ); /* register it */
/*
* (c) 2004-2006 Glenn Maynard, Steve Checkoway
* All rights reserved.
+10
View File
@@ -72,6 +72,16 @@ static const char *ZTestModeNames[] =
XToString2( ZTestMode );
LuaXType( ZTestMode );
int LuaFunc_color( lua_State *L )
{
RString sColor = SArg(1);
RageColor c;
c.FromString( sColor );
c.PushTable( L );
return 1;
}
static LuaFunctionList g_color( "color", LuaFunc_color ); /* register it */
/*
* Copyright (c) 2006 Glenn Maynard
* All rights reserved.