Documentation ¶
Index ¶
- type Canvas
- type Engine
- func (e *Engine) Draw(screen *ebiten.Image)
- func (e *Engine) DrawCircle(cx, cy, r, width int, clr string, fill bool) error
- func (e *Engine) DrawLine(x0, y0, x1, y1, width int, clr string) error
- func (e *Engine) DrawRect(x, y, w, h, width int, clr string, fill bool) error
- func (e *Engine) GetAudioContext() (context *audio.Context, sampleRate int)
- func (e *Engine) GetCanvas() Canvas
- func (e *Engine) GetFPS() float64
- func (e *Engine) GetMouse() (x, y int)
- func (e *Engine) GetSize() (width, height int)
- func (e *Engine) GetTitle() string
- func (e *Engine) IsKeyPressed(key key.Key) bool
- func (e *Engine) IsMouseButtonPressed(key key.MouseButton) bool
- func (e *Engine) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
- func (e *Engine) LoadGPK(filename, passwd string) error
- func (e *Engine) Log(msg string, err ...error)
- func (e *Engine) ReadGPK(name string) (data []byte, err error)
- func (e *Engine) Run()
- func (e *Engine) SetDrawCallback(cfun EngineDrawCallback)
- func (e *Engine) SetIcon(img []byte) bool
- func (e *Engine) SetInitCallback(cfun EngineInitCallback)
- func (e *Engine) SetSize(width, height int)
- func (e *Engine) SetTitle(title string)
- func (e *Engine) SetUpdateCallback(cfun EngineUpdateCallback)
- func (e *Engine) ShowCursor(visible bool)
- func (e *Engine) Update() error
- func (e *Engine) Wheel() (x, y int)
- type EngineDrawCallback
- type EngineInitCallback
- type EngineUpdateCallback
- type Point
- type PointF
- type RECT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) DrawCircle ¶
画圆
func (*Engine) GetAudioContext ¶
func (*Engine) IsMouseButtonPressed ¶
func (e *Engine) IsMouseButtonPressed(key key.MouseButton) bool
func (*Engine) SetUpdateCallback ¶
func (e *Engine) SetUpdateCallback(cfun EngineUpdateCallback)
更新回调
Click to show internal directories.
Click to hide internal directories.