CreateCone.bb 265 B

12345678910111213141516171819202122
  1. ; CreateCone Example
  2. ; ------------------
  3. Graphics3D 640,480
  4. SetBuffer BackBuffer()
  5. camera=CreateCamera()
  6. light=CreateLight()
  7. RotateEntity light,90,0,0
  8. ; Create cone
  9. cone=CreateCone()
  10. PositionEntity cone,0,0,5
  11. While Not KeyDown( 1 )
  12. RenderWorld
  13. Flip
  14. Wend
  15. End