Agar Logo

Agar 1.7 Manual

(Printable Version)
SG_Point(3)

SYNOPSIS

#include <agar/core.h>
#include <agar/sg.h>

DESCRIPTION

The SG_Point node represents a reference point in space. This is useful in feature-based modeling, or as construction geometry.

INHERITANCE HIERARCHY


INITIALIZATION


SG_Point * SG_PointNew (SG_Node *parent, const char *name, const M_Vector3 *p)

void SG_PointSize (SG_Node *parent, M_Real size)

void SG_PointColor (SG_Node *parent, M_Color color)


The SG_PointNew() function creates a new point at the origin of the parent node. If the p argument is non-NULL, the point is translated to the specified coordinates.

The functions SG_PointSize() and SG_PointColor() specify a point size in pixels, and a color, respectively, which will be used in graphically rendering the point node.

STRUCTURE DATA

For the SG_Point object:
float size Size factor used in graphically rendering the point.
M_Color color Color used in graphically rendering the point.

SEE ALSO


HISTORY

The SG_Point node class first appeared in Agar 1.6.0.

Csoft.net ElectronTubeStore