Skip to content

Instantly share code, notes, and snippets.

@alexnask
Created December 26, 2010 15:27
Show Gist options
  • Save alexnask/755476 to your computer and use it in GitHub Desktop.
Save alexnask/755476 to your computer and use it in GitHub Desktop.
use csfml-system
use csfml-window
use csfml-graphics
import sfml/[Windows,Graphics]
//import menu
main : func -> Int
{
settings := ContextSettings new()
settings@ antialiasingLevel toString() println()
win := RenderWindow new(VideoMode new(800,600,32),"Test",Style default,settings)
while(win opened?())
{
event : Event
while(win getEvent(event&))
{
if(event type == EventType closed)
{
win close()
}
}
win clear()
win display()
}
0
//menu := Menu new(win)
//menu loop()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment