home *** CD-ROM | disk | FTP | other *** search
- ; demo05-06.bb - Creating two sphere without setting order
- ; ------------------
- Graphics3D 640,480
- SetBuffer BackBuffer()
-
- Const ESC_KEY = 1
- ; Create camera
- camera = CreateCamera()
- ; Create a light
- light = CreateLight()
-
- ; Create our spheres
- sphere1 = CreateSphere(32)
- sphere2 = CreateSphere(32)
- PositionEntity sphere1,-1,0,5
- EntityColor sphere1, 102,23,231
-
- sphere2=CreateSphere()
- PositionEntity sphere2,0,0,5
- EntityColor sphere2, 21,78,199
-
-
- ; This following code makes our program run
- While Not KeyDown(ESC_KEY)
- RenderWorld
- Flip
- Wend
- End