NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
int glBox ( int  glMode,
int  glSizeX,
int  glSizeY,
int  glSizeZ 
)
inline

Create a 3D box.

Define a 3D box using the specified begin mode for all faces. The center of the box is at the origin of the XYZ axis with width, height, and depth specified via the glSizeX, glSizeY, and glSizeZ parameters.

Parameters
glModeThe begin mode for each surface. See Graphics library begin modes.
glSizeXThe X axis size (width).
glSizeYThe Y axis size (height).
glSizeZThe Z axis size (depth).
Examples:
glBoxDemo.nxc, glCircleDemo.nxc, glRotateDemo.nxc, glScaleDemo.nxc, and glTranslateDemo.nxc.