EndGraphics.htm 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>EndGraphics</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. None.
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. Returns a program to a non-Graphics mode state. This is the same state that a program starts up in, before the Graphics command is used. <br />
  21. <br />
  22. One possible use for EndGraphics is to switch between full-screen and windowed states.
  23. <br>
  24. <br>
  25. See also: <a class=small href=Graphics.htm>Graphics</a>.
  26. </td>
  27. </tr>
  28. </table>
  29. <h1><a href=../2d_examples/EndGraphics.bb>Example</a></h1>
  30. <table>
  31. <tr>
  32. <td>
  33. Graphics 640,480,0,1 <br />
  34. SetBuffer BackBuffer() <br />
  35. <br />
  36. Text 0,0,"EndGraphics Example Stage 1/2" <br />
  37. Text 0,20,"Currently in Graphics mode" <br />
  38. Text 0,40,"Press a key to deactive Graphics mode with EndGraphics command" <br />
  39. <br />
  40. Flip <br />
  41. <br />
  42. WaitKey() <br />
  43. <br />
  44. EndGraphics <br />
  45. <br />
  46. Print "EndGraphics Example Stage 2/2" <br />
  47. Print "Currently in non-Graphics mode" <br />
  48. <br />
  49. WaitKey() <br />
  50. <br />
  51. End
  52. </td>
  53. </tr>
  54. </table>
  55. <br>
  56. <a target=_top href=../index.htm>Index</a><br>
  57. <br>
  58. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=EndGraphics&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  59. </html>