engine

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CursorShapeDefault    = ebiten.CursorShapeDefault
	CursorShapePointer    = ebiten.CursorShapePointer
	CursorShapeText       = ebiten.CursorShapeText
	CursorShapeNSResize   = ebiten.CursorShapeNSResize
	CursorShapeEWResize   = ebiten.CursorShapeEWResize
	CursorShapeNWSEResize = ebiten.CursorShapeNWSEResize
)
View Source
const (
	KeyA            = ebiten.KeyA
	KeyB            = ebiten.KeyB
	KeyC            = ebiten.KeyC
	KeyD            = ebiten.KeyD
	KeyE            = ebiten.KeyE
	KeyF            = ebiten.KeyF
	KeyG            = ebiten.KeyG
	KeyH            = ebiten.KeyH
	KeyI            = ebiten.KeyI
	KeyJ            = ebiten.KeyJ
	KeyK            = ebiten.KeyK
	KeyL            = ebiten.KeyL
	KeyM            = ebiten.KeyM
	KeyN            = ebiten.KeyN
	KeyO            = ebiten.KeyO
	KeyP            = ebiten.KeyP
	KeyQ            = ebiten.KeyQ
	KeyR            = ebiten.KeyR
	KeyS            = ebiten.KeyS
	KeyT            = ebiten.KeyT
	KeyU            = ebiten.KeyU
	KeyV            = ebiten.KeyV
	KeyW            = ebiten.KeyW
	KeyX            = ebiten.KeyX
	KeyY            = ebiten.KeyY
	KeyZ            = ebiten.KeyZ
	KeyArrowUp      = ebiten.KeyArrowUp
	KeyArrowDown    = ebiten.KeyArrowDown
	KeyArrowLeft    = ebiten.KeyArrowLeft
	KeyArrowRight   = ebiten.KeyArrowRight
	KeyUp           = ebiten.KeyUp
	KeyDown         = ebiten.KeyDown
	KeyLeft         = ebiten.KeyLeft
	KeyRight        = ebiten.KeyRight
	KeyBackspace    = ebiten.KeyBackspace
	KeyDelete       = ebiten.KeyDelete
	KeyEnter        = ebiten.KeyEnter
	KeyEscape       = ebiten.KeyEscape
	KeyTab          = ebiten.KeyTab
	KeySpace        = ebiten.KeySpace
	KeyHome         = ebiten.KeyHome
	KeyEnd          = ebiten.KeyEnd
	KeyPageUp       = ebiten.KeyPageUp
	KeyPageDown     = ebiten.KeyPageDown
	KeyControl      = ebiten.KeyControl
	KeyControlLeft  = ebiten.KeyControlLeft
	KeyControlRight = ebiten.KeyControlRight
	KeyMeta         = ebiten.KeyMeta
	KeyMetaLeft     = ebiten.KeyMetaLeft
	KeyMetaRight    = ebiten.KeyMetaRight
	KeyShift        = ebiten.KeyShift
	KeyShiftLeft    = ebiten.KeyShiftLeft
	KeyShiftRight   = ebiten.KeyShiftRight
	KeyAlt          = ebiten.KeyAlt
	KeyAltLeft      = ebiten.KeyAltLeft
	KeyAltRight     = ebiten.KeyAltRight
	KeyF2           = ebiten.KeyF2
)
View Source
const GamepadButtonMax = ebiten.GamepadButtonMax
View Source
const MouseButtonLeft = ebiten.MouseButtonLeft

Variables

View Source
var BlendDestinationOut = ebiten.BlendDestinationOut

Functions

func AppendInputChars

func AppendInputChars(buf []rune) []rune

func CursorPosition

func CursorPosition() (int, int)

func ImageBounds

func ImageBounds(img Image) image.Rectangle

func ImageClear

func ImageClear(img Image)

func ImageDeallocate

func ImageDeallocate(img Image)

func ImageDraw

func ImageDraw(dst, src Image, opts *DrawImageOptions)

func ImageFill

func ImageFill(img Image, c color.Color)

func ImageSetPixel

func ImageSetPixel(img Image, x, y int, c color.Color)

func IsGamepadButtonJustPressed

func IsGamepadButtonJustPressed(id GamepadID, btn GamepadButton) bool

func IsKeyJustPressed

func IsKeyJustPressed(k Key) bool

func IsKeyJustReleased

func IsKeyJustReleased(k Key) bool

func IsKeyPressed

func IsKeyPressed(k Key) bool

func IsMouseButtonJustPressed

func IsMouseButtonJustPressed(b MouseButton) bool

func SetCursorShape

func SetCursorShape(shape CursorShapeType)

func StrokeLine

func StrokeLine(dst Image, x0, y0, x1, y1, strokeWidth float32, clr color.Color, antialias bool)

func TextAdvance

func TextAdvance(s string, face *GoTextFace) float64

func TextDraw

func TextDraw(dst Image, s string, face *GoTextFace, op *DrawOptions)

func Wheel

func Wheel() (float64, float64)

func WindowSize

func WindowSize() (int, int)

Types

type Blend

type Blend = ebiten.Blend

type CursorShapeType

type CursorShapeType = ebiten.CursorShapeType

type DrawImageOptions

type DrawImageOptions = ebiten.DrawImageOptions

type DrawOptions

type DrawOptions = text.DrawOptions

type GamepadButton

type GamepadButton = ebiten.GamepadButton

type GamepadID

type GamepadID = ebiten.GamepadID

func AppendGamepadIDs

func AppendGamepadIDs(buf []GamepadID) []GamepadID

type GoTextFace

type GoTextFace = text.GoTextFace

type GoTextFaceSource

type GoTextFaceSource = text.GoTextFaceSource

func NewGoTextFaceSource

func NewGoTextFaceSource(r interface{ Read([]byte) (int, error) }) (*GoTextFaceSource, error)

type Image

type Image = *ebiten.Image

func NewImage

func NewImage(w, h int) Image

func NewImageFromImage

func NewImageFromImage(img image.Image) Image

func SubImage

func SubImage(src Image, r image.Rectangle) Image

type Key

type Key = ebiten.Key

func AppendJustPressedKeys

func AppendJustPressedKeys(buf []Key) []Key

type MouseButton

type MouseButton = ebiten.MouseButton

type Vertex

type Vertex = ebiten.Vertex

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL