start.bb 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. SetGfx()
  2. Function SetGfx()
  3. Print info1$:Print info2$:Print info3$:Print info4$:Print
  4. If Windowed3D()
  5. yn$=Input$( "Use windowed mode?" )
  6. If Left$( Lower$( yn$ ),1 )="y"
  7. HidePointer
  8. Graphics3D 640,480,0,2
  9. SetBuffer BackBuffer()
  10. Return
  11. EndIf
  12. EndIf
  13. Print ""
  14. Print "Display drivers:"
  15. Print "----------------"
  16. For k=1 To CountGfxDrivers()
  17. Print k+":"+GfxDriverName$(k)
  18. Next
  19. Print
  20. If CountGfxDrivers()>1
  21. Repeat
  22. driver=Input$( "Display driver (1-"+CountGfxDrivers()+"):" )
  23. Until driver>=1 And driver<=CountGfxDrivers()
  24. SetGfxDriver driver
  25. EndIf
  26. cnt=CountGfxModes3D()
  27. If cnt=0 Print "No 3D Graphics modes detected.":WaitKey:End
  28. Print ""
  29. Print "Display modes:"
  30. Print "--------------"
  31. For k=1 To CountGfxModes3D()
  32. Print k+":"+GfxModeWidth(k)+","+GfxModeHeight(k)+","+GfxModeDepth(k)
  33. Next
  34. Repeat
  35. mode=Input$( "Display Mode (1-"+cnt+"):" )
  36. Until mode>=1 And mode<=cnt
  37. Graphics3D GfxModeWidth(mode),GfxModeHeight(mode),GfxModeDepth(mode),1
  38. SetBuffer BackBuffer()
  39. End Function