Refactoring

This commit is contained in:
Hajime Hoshi 2013-06-18 02:01:59 +09:00
parent d4ef198c6d
commit 5b77d00e84

View File

@ -8,11 +8,8 @@ package main
// void display(void); // void display(void);
// void idle(void); // void idle(void);
// //
// static void setDisplayFunc(void) { // static void setGlutFuncs(void) {
// glutDisplayFunc(display); // glutDisplayFunc(display);
// }
//
// static void setIdleFunc(void) {
// glutIdleFunc(idle); // glutIdleFunc(idle);
// } // }
// //
@ -73,8 +70,7 @@ func main() {
defer C.free(unsafe.Pointer(title)) defer C.free(unsafe.Pointer(title))
C.glutCreateWindow(title) C.glutCreateWindow(title)
C.setDisplayFunc() C.setGlutFuncs()
C.setIdleFunc()
ch := make(chan bool, 1) ch := make(chan bool, 1)
game := &DemoGame{} game := &DemoGame{}