/****************************************************************************** * Automatically generated file. Please don't change anything. * *****************************************************************************/ #include #include #include #include "iup.h" #include "iuplua.h" #include "il.h" static int ImageRGB(lua_State *L) { int w = (int)luaL_checkinteger(L, 1); int h = (int)luaL_checkinteger(L, 2); unsigned char *pixels = iuplua_checkuchar_array(L, 3, w*h*3); Ihandle *ih = IupImageRGB(w, h, pixels); iuplua_plugstate(L, ih); iuplua_pushihandle_raw(L, ih); free(pixels); return 1; } int iupimagergblua_open(lua_State * L) { iuplua_register(L, ImageRGB, "ImageRGB"); #ifdef IUPLUA_USELOH #include "imagergb.loh" #else #ifdef IUPLUA_USELH #include "imagergb.lh" #else iuplua_dofile(L, "imagergb.lua"); #endif #endif return 0; }