GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SG_POINT(3) FreeBSD Library Functions Manual SG_POINT(3)

SG_PointAgar-SG point node

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

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

AG_Object(3) -> SG_Node(3) -> SG_Geom(3) -> SG_Point.

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


void
(SG_Node *parent, M_Real size);


void
(SG_Node *parent, M_Color color);

The () 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 () and SG_PointColor() specify a point size in pixels, and a color, respectively, which will be used in graphically rendering the point node.

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.

M_Color(3), M_Real(3), M_Vector(3), SG(3), SG_Geom(3), SG_Intro(3), SG_Node(3), SG_Plane(3)

The SG_Point node class first appeared in Agar 1.6.0.

December 21, 2022 Agar 1.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.