home *** CD-ROM | disk | FTP | other *** search
- ; demo05-01.bb - Creating a Basic Cone
- ; ------------------
-
- Graphics3D 640,480
- SetBuffer BackBuffer()
-
- Const ESC_KEY = 1
- ; Create camera
- camera = CreateCamera()
- ; Create a light
- light = CreateLight()
-
- ; This is the code for creating the cone
- cone = CreateCone()
- PositionEntity cone,0,0,5
-
- ; This following code makes our program run
- While Not KeyDown(ESC_KEY)
- RenderWorld
- Flip
- Wend
- End