C3DMesh::CreateBox |
Top Previous Next |
Syntax:
CreateBox(C3DScreen pScreen, float width, float height, float depth, int bInside), int
Purpose: Creates a box mesh or cube with the dimensions specified. Parameters: pScreen - A C3DScreen object. width - Width of box. height - Height of box. depth - Depth of box. bInside - Culling flag.
Returned value(s): TRUE if the mesh was successfully created, FALSE otherwise.
Application: 'create a box to copy. Make it an 'inside' cube
Class Hierarchy -------C3DMesh
Additional Info: If bInside is TRUE then the box will be visible when the camera is inside of it, such as a room. You can make a box visible from both inside and out by using the SetCulling method. Note however that light reflection will be determined by the bInside parameter |