CreateSphere.bb 277 B

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