src/lua-bindings/wrap_imgui_codegen.cpp
/*  Cubic Bezier (4 control points) */
Cubic Bezier (4 control points)
Cubic Bezier ( 4 control points )
int w_ImDrawList_PathBezierCubicCurveTo(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 p2;
	p2.x = luax_checkfloat(L, 2);
	p2.y = luax_checkfloat(L, 3);
	ImVec2 p3;
	p3.x = luax_checkfloat(L, 4);
	p3.y = luax_checkfloat(L, 5);
	ImVec2 p4;
	p4.x = luax_checkfloat(L, 6);
	p4.y = luax_checkfloat(L, 7);
	auto num_segments = luaL_optint(L, 8, 0);
	self->PathBezierCubicCurveTo(p2, p3, p4, num_segments);
	return 0;
}
int w_ImDrawList_PathBezierCubicCurveTo ( 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 p2 ; p2 . x = luax_checkfloat ( L , 2 ) ; p2 . y = luax_checkfloat ( L , 3 ) ; ImVec2 p3 ; p3 . x = luax_checkfloat ( L , 4 ) ; p3 . y = luax_checkfloat ( L , 5 ) ; ImVec2 p4 ; p4 . x = luax_checkfloat ( L , 6 ) ; p4 . y = luax_checkfloat ( L , 7 ) ; auto num_segments = luaL_optint ( L , 8 , 0 ) ; self -> PathBezierCubicCurveTo ( p2 , p3 , p4 , num_segments ) ; return 0 ; }
Cubic Bezier (4 control points)
Cubic Bezier ( 4 control points )