mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Refactoring
This commit is contained in:
parent
d4ef198c6d
commit
5b77d00e84
@ -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{}
|
||||||
|
Loading…
Reference in New Issue
Block a user