i managed to get the screen capture but the black bitmap is overlaying the bitmap. see image below:



Code:
#include <acknex.h>
#include <default.c>

BMAP* panel_created;

PANEL* cool_pan = 
{
	scale_x = 0.5; scale_y = 0.5;
	//bmap = temp_bmap; 
	flags = SHOW;
	alpha = 100;

}
function create_screen_bmap (VECTOR* pos,VECTOR* aang)
{
	panel_created = bmap_createblack(screen_size.x,screen_size.y,24);
	
	
	//vec_set(camera.x,pos);
	//vec_set(camera.pan,aang);
	wait(1);// render screen in new position and angle
	
	bmap_for_screen(panel_created,0,1);
	wait(1);
	//this = fb;
	//panel_created = fb;
}

void main ()
{
	level_load("arena.wmb");
	wait(2);
	

	create_screen_bmap(vector(0,0,0),nullvector);
	cool_pan->bmap = panel_created;
	cool_pan->flags = SHOW;
	
	
	
	wait(1);
	beep();
	// I want render screen into panel.bmap, but this dont work
}




A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook