1create_scene(3)                 Allegro manual                 create_scene(3)
2
3
4

NAME

6       create_scene  -  Allocates memory for a 3d scene. Allegro game programā€
7       ming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int create_scene(int nedge, int npoly);
14

DESCRIPTION

16       Allocates memory for a scene, `nedge' and `npoly' are your estimates of
17       how  many  edges  and how many polygons you will render (you cannot get
18       over the limit specified here). If you use same  values  in  successive
19       calls, the space will be reused (no new malloc()).
20
21       The memory allocated is a little less than 150 * (nedge + npoly) bytes.
22

RETURN VALUE

24       Returns zero on success, or a negative number if allocations fail.
25
26

SEE ALSO

28       scene_polygon3d(3),  render_scene(3), clear_scene(3), destroy_scene(3),
29       scene_gap(3), create_zbuffer(3), exscn3d(3)
30
31
32
33Allegro                          version 4.4.3                 create_scene(3)
Impressum