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