I wanted to view particular entities on the additional view, as it was suggested by Superk:
VIEW* my_view with NOENT and NOWORLD set, then after level_load
my_view.genius = ent_create(NULL,nullvector,NULL); //or any other entity
and finally set every entity's parent pointer to my_view.genius which should be rendered by that view.
But I somehow face the problem, that parent entity isn't rendered on the view...
VIEW* my_view;
action testView(){
while(!my_view.genius){ wait(1); }
set(my, TRANSLUCENT);
my_view.genius.parent = my;
}
void main(){
my_view = view_create(5);
my_view.pos_x = my_view.pos_y = 10;
my_view.size_x = my_view.size_y = 256;
set(my_view, SHOW | NOENT);
level_load("map01.wmb");
wait(-1);
my_view.genius = ent_create(NULL, nullvector, NULL);
while(1){
vec_set(my_view.x, camera.x);
vec_set(my_view.pan, camera.pan);
wait(1);
}
}
When I run this code, it only renders the level blocks, but still, the parent entity isn't visible..
Here is the screen:
