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_VOXEL(3) FreeBSD Library Functions Manual SG_VOXEL(3)

SG_VoxelAgar-SG voxel object

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

The SG_Voxel node renders a three-dimensional array of real-valued "cells".

AG_Object(3) -> SG_Node(3) -> SG_Voxel.

SG_Voxel *
(SG_Node *parent, const char *name);


void
(SG_Voxel *vol, Uint width, Uint height, Uint depth);


int
(SG_Voxel *vol, int x, int y, int z, M_Real value);


void
(SG_Voxel *vol, M_Real value);

The () function creates a new voxel object at the origin of the parent node.

() allocates a voxel of specified dimensions.

() sets the value of the cell at coordinates x, y, z to the specified value. Returns 0 on success, -1 if the coordinates are invalid.

The () function resets the value of all cells to the specified value.

For the SG_Voxel object:

M_Real ***map
Three-dimensional array of cell values.
int w
Total width.
int h
Total height.
int d
Total depth.

M_Real(3), SG(3), SG_Intro(3), SG_Node(3)

The SG_Voxel 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.