VIEW* name = { ... }

Defines a view with the given name. A view is a 3D window into the current level. At game start there's only one predefined view named camera. Additional views can be defined to create rear-view mirrors, rocket cameras or split screen features.

The VIEW struct is defined in include\atypes.h. Use view_create() for creating a view object at runtime.

Example:

VIEW* camera2_view =
{ 		
  layer = 0;
  pos_x = 10;
  pos_y = 10;
  size_x = 64;
  size_y = 48;
  arc = 45;
  aspect = 1;
  ambient = 10;
  fog = 10;
  genius = NULL;
  flags = SHOW;
}

See also:

view_create, layer, pos_x, size_x, arc, aspect, ambient, flags, camera

► latest version online