home *** CD-ROM | disk | FTP | other *** search
- ; demo05-03.bb - Creating a bunch of shapes
- ; ------------------
- Graphics3D 640,480
- SetBuffer BackBuffer()
-
- Const ESC_KEY = 1
- ; Create camera
- camera = CreateCamera()
- ; Create a light
- light = CreateLight()
-
- ;Create and position four different shapes
- cone=CreateCone()
- PositionEntity cone,-3.5,0,5
- cube=CreateCube()
- PositionEntity cube,3,0,5
- sphere=CreateSphere()
- PositionEntity sphere,-1.6,0,5
- cylinder=CreateCylinder()
- PositionEntity cylinder,0.5,0,5
-
-
- ; This following code makes our program run
- While Not KeyDown(ESC_KEY)
- RenderWorld
- Flip
- Wend
- End