Macaw OS C reference

Function billboard3d

#include <macaw3d.h>
void billboard3d(
    int picture,
    double x,
    double y,
    double z,
    double height,
    int fullbright
);

Draws a picture standing upright at a place, turned to face camera3d's camera, for trees and people. Its width follows the picture's shape, and colour 0 is see-through.

Parameters

pictureint
The picture to draw.
xdouble
Where its bottom middle goes across, in world units.
ydouble
The height its bottom stands at.
zdouble
Where its bottom middle goes along z.
heightdouble
How tall it is, in world units. 0 or less: 1.
fullbrightint
1 to ignore the light, 0 to light it as usual.

In Drawing meshes, with drawmesh, drawmeshm, meshtexture, meshsize, freemesh.