summary refs log tree commit diff stats
path: root/tests/niminaction/Chapter8/sfml/sfml_test.nim
blob: e71060cb43c8ee72fcbad4b30353bc52e78fb204 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
discard """
action: compile
disabled: "windows"
"""

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)