i mean use same bmap as render target in all the panels.

Code:
BMAP *bmpRT = bmap_createblack ( screen_size.x, screen_size.y, 32 );
PANEL *pan1 = pan_create ( "", 1 );
pan1.target_map = bmpRT;
PANEL *pan2 = pan_create ( "", 2 );
pan2.target_map = bmpRT;
PANEL *pan3 = pan_create ( "", 3 );
pan3.target_map = bmpRT;

while (1)
{
   bmap_process ( panVisible, bmpRT, mtlEffect );
   wait(1);
}



whit content i mean, a background bmap, or a digit, or so. Something to render in the render target. grin


edit__
sorry, I miss with the hurry in the code above...
Code:
MATERIAL *mtlEffect = mtl_create ();
mtlEffect.effect = "pp_oldMovie.fx";

PANEL *panSource = pan_create ( "", 99 );
panSource.size_x = 128; // Define the size, otherwise...
panSource.size_y = 128; // 
panSource.bmap = bmap_createblack ( panSource.size_x, panSource.size_y, 32 ); // ir has 0 values!!

panSource.target_map = bmap_createblack ( panSource.size_x, panSource.size_y, 32 );
set ( panSource, SHOW );

PANEL *panDestiny = pan_create ( "", 1 );
panDestiny.bmap = bmap_createblack ( panSource.size_x, panSource.size_y, 32 ); // panDestiny bmap was pan Source, my fault...
set ( panDestiny, SHOW );

while(1){
	bmap_process(panDestiny.bmap, panSource.target_map, mtlEffect);
	wait(1);
}


Last edited by txesmi; 12/10/12 13:19.