Created
July 30, 2014 17:28
-
-
Save dradtke/729b0304f01771dfd38b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "github.com/dradtke/allegory" | |
| ) | |
| type MyState struct { | |
| allegory.BaseState | |
| } | |
| func (s *MyState) InitState() { | |
| allegory.AddView(new(MyView)) | |
| } | |
| type MyView struct { | |
| allegory.BaseView | |
| } | |
| func main() { | |
| allegory.Init(new(MyState)) | |
| defer allegory.Cleanup() | |
| allegory.Loop() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment