CreateCylinder.bb 289 B

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