SG_POINT(3)

NAME
SG_Point - Agar-SG point node

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
AG_Object(3) -> SG_Node(3) -> SG_Geom(3) -> SG_Point.

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
M_Color(3), M_Real(3), M_Vector(3), SG(3), SG_Geom(3), SG_Intro(3), SG_Node(3), SG_Plane(3)

HISTORY
The SG_Point node class first appeared in Agar 1.6.0.