Esempio n. 1
0
GlAlgo* GlEllipse::Generate(const gl_generate_args& args) const
{
	BPoint				x, y, w, h;
	GlAlgo				*xC = 0, *yC = 0, *zC = 0;
	GetChainParams(args, x, y, w, h, &xC, &yC, &zC);
	return new _GlEllipseAlgo(Id(), PixelTargets(), x, y, w, h, xC, yC, zC);
}
Esempio n. 2
0
GlAlgo* GlReplicate::Generate(const gl_generate_args& args) const
{
	uint32			targets = PixelTargets();
	GlRelAbs		depth = Params().RelAbs(_DEPTH_KEY, &gInit);
//	float			depth = Params().Float(_DEPTH_KEY);
	GlAlgo*			algo = GenerateChainAlgo(_MAP_KEY, args);

	if (args.flags&GL_NODE_ICON_F) {
		depth.rel = 0.75;
		depth.abs = 0;
		targets = GL_PIXEL_RGBA;
	}
	return new _GlReplicateAlgo(Id(), targets, depth, algo);
}
Esempio n. 3
0
GlAlgo* GlMirror::Generate(const gl_generate_args& args) const
{
    GlAlgo*			hrz = GenerateChainAlgo(_HRZ_KEY, args);
    GlAlgo*			vrt = GenerateChainAlgo(_VRT_KEY, args);
    return new GlMirror2d(Id(), PixelTargets(), hrz, vrt);
}
Esempio n. 4
0
GlAlgo* GlValue::Generate(const gl_generate_args& args) const
{
	return new _GlValue2d(Id(), PixelTargets(), Params().Menu('sr'));
}