glscene

 

TGLCube

Page history last edited by skinhat 4 yrs ago

The cube uses the same material for each of its faces, ie. all faces look the same. If you want a multi-material cube, use a mesh in conjunction with a TGLFreeForm and a material library.

Important TGLCube properties:

cubeheight: Height of the cube

cubewidth: Width of the cube

cubedepth: Depth of the cube

normaldirection TNormalDirection: If you select ndInside instead of ndOutside it doesn't turn the cube inside out rather the faces remain pointing in the same direction. Instead it is the shading that appears will be inside out.

cubepart TCubePart: The faces of the cube you wish to display. For example it is possible to display just the top of a cube.

Demo: CVS/Demos/movements/events

Unit: GLObjects

Descends from TGLSceneObject

Comments (0)

You don't have permission to comment on this page.