src/lua-bindings/wrap_imgui_codegen.cpp
/*  Axis aligned rectangle (composed of two triangles) */
Axis aligned rectangle (composed of two triangles)
Axis aligned rectangle ( composed of two triangles )
int w_ImDrawList_PrimRect(lua_State *L)
{
	auto* self_udata = static_cast<WrapImDrawList*>(luaL_checkudata(L, 1, "ImDrawList"));
	if (!self_udata->isValid()) { luaL_error(L, "Expired userdata"); }
	auto* self = self_udata->value;
	ImVec2 a;
	a.x = luax_checkfloat(L, 2);
	a.y = luax_checkfloat(L, 3);
	ImVec2 b;
	b.x = luax_checkfloat(L, 4);
	b.y = luax_checkfloat(L, 5);
	auto col = static_cast<ImU32>(luaL_checklong(L, 6));
	self->PrimRect(a, b, col);
	return 0;
}
int w_ImDrawList_PrimRect ( lua_State * L ) { auto * self_udata = static_cast < WrapImDrawList * > ( luaL_checkudata ( L , 1 , " " ) ) ; if ( ! self_udata -> isValid ( ) ) { luaL_error ( L , " " ) ; } auto * self = self_udata -> value ; ImVec2 a ; a . x = luax_checkfloat ( L , 2 ) ; a . y = luax_checkfloat ( L , 3 ) ; ImVec2 b ; b . x = luax_checkfloat ( L , 4 ) ; b . y = luax_checkfloat ( L , 5 ) ; auto col = static_cast < ImU32 > ( luaL_checklong ( L , 6 ) ) ; self -> PrimRect ( a , b , col ) ; return 0 ; }
Axis aligned rectangle (composed of two triangles)
Axis aligned rectangle ( composed of two triangles )