From 5b77d00e84896ca28b5aa195f70ec4e4a83c5869 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 18 Jun 2013 02:01:59 +0900 Subject: [PATCH] Refactoring --- examples/glut/main.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/glut/main.go b/examples/glut/main.go index e1a8c359c..fb4b795cd 100644 --- a/examples/glut/main.go +++ b/examples/glut/main.go @@ -8,11 +8,8 @@ package main // void display(void); // void idle(void); // -// static void setDisplayFunc(void) { +// static void setGlutFuncs(void) { // glutDisplayFunc(display); -// } -// -// static void setIdleFunc(void) { // glutIdleFunc(idle); // } // @@ -73,8 +70,7 @@ func main() { defer C.free(unsafe.Pointer(title)) C.glutCreateWindow(title) - C.setDisplayFunc() - C.setIdleFunc() + C.setGlutFuncs() ch := make(chan bool, 1) game := &DemoGame{}