sfml_test.nim 255 B

123456789101112131415
  1. discard """
  2. action: compile
  3. disabled: "windows"
  4. """
  5. import sfml, os
  6. var window = newRenderWindow(videoMode(800, 600), "SFML works!")
  7. var event: Event
  8. discard window.pollEvent(event)
  9. window.clear(newColor(29, 64, 153, 255))
  10. window.display()
  11. sleep(1000)