OpenGL Library for Delphi,
maintained by Eric Grange,
based on Mike Lischke's GLScene.

 

Reference Manual - TGLCube

image

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
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0461 seconds