Original Post
In code, I can explain my problem better:
int li_GetPixel( lua_State *l )
{
COLORREF c = GetPixel( GetDC( 0 ), lua_tonumber( l, 1 ), lua_tonumber( l, 2 ) );
LRGB rgb;
rgb.r = GetRValue( c );
rgb.g = GetRValue( c );
rgb.b = GetRValue( c );
//now I want to return rgb, how would I do this?
//I've already exposed this class via LuaBind
//I thought it would be something easy like lua_pushuserdata()
//but I'm guessing it ain't that easy(also there's no such thing) :)
}
Thanks in advance.