mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
21 lines
546 B
Go
21 lines
546 B
Go
package cocoa
|
|
|
|
// #cgo CFLAGS: -x objective-c -fobjc-arc
|
|
// #cgo LDFLAGS: -framework Cocoa -framework OpenGL -framework QuartzCore
|
|
//
|
|
// #include <stdlib.h>
|
|
//
|
|
// void Run(size_t width, size_t height, size_t scale);
|
|
//
|
|
import "C"
|
|
import (
|
|
"github.com/hajimehoshi/go.ebiten"
|
|
_ "github.com/hajimehoshi/go.ebiten/graphics"
|
|
_ "github.com/hajimehoshi/go.ebiten/graphics/opengl"
|
|
)
|
|
|
|
func Run(game ebiten.Game, screenWidth, screenHeight, screenScale int,
|
|
title string) {
|
|
C.Run(C.size_t(screenWidth), C.size_t(screenHeight), C.size_t(screenScale))
|
|
}
|