NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
int glCube ( int  glMode,
int  glSize 
)
inline

Create a 3D cube.

Define a 3D cube using the specified begin mode for all faces. The center of the box is at the origin of the XYZ axis with equal width, height, and depth specified via the glSize parameter.

Parameters
glModeThe begin mode for each surface. See Graphics library begin modes.
glSizeThe cube's width, height, and depth.
Examples:
glBoxDemo.nxc.