view_create(var layer)

Creates a view at runtime. Objects created this way are automatically deleted on closing the engine, or by calling the ptr_remove function.

Parameters:

layer - the layer of the view.

Returns:

Pointer to the view.

Speed:

slow

Example:

VIEW* dummy_view;
//...
dummy_view = view_create(1);
wait(1);
vec_set(dummy_view.x, camera.x);

See also:

VIEW, ptr_remove

► latest version online