Add tests for examples from Nim in Action.
This commit is contained in:
parent
a585748f27
commit
7889c03cbc
34 changed files with 1213 additions and 0 deletions
9
tests/niminaction/Chapter8/sfml/sfml_test.nim
Normal file
9
tests/niminaction/Chapter8/sfml/sfml_test.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import sfml, os
|
||||
var window = newRenderWindow(videoMode(800, 600), "SFML works!")
|
||||
|
||||
var event: Event
|
||||
discard window.pollEvent(event)
|
||||
window.clear(newColor(29, 64, 153, 255))
|
||||
window.display()
|
||||
|
||||
sleep(1000)
|
||||
Loading…
Add table
Add a link
Reference in a new issue