Documentation
¶
Index ¶
- Constants
- Variables
- func AppendInputChars(buf []rune) []rune
- func CursorPosition() (int, int)
- func ImageBounds(img Image) image.Rectangle
- func ImageClear(img Image)
- func ImageDeallocate(img Image)
- func ImageDraw(dst, src Image, opts *DrawImageOptions)
- func ImageFill(img Image, c color.Color)
- func ImageSetPixel(img Image, x, y int, c color.Color)
- func IsGamepadButtonJustPressed(id GamepadID, btn GamepadButton) bool
- func IsKeyJustPressed(k Key) bool
- func IsKeyJustReleased(k Key) bool
- func IsKeyPressed(k Key) bool
- func IsMouseButtonJustPressed(b MouseButton) bool
- func SetCursorShape(shape CursorShapeType)
- func StrokeLine(dst Image, x0, y0, x1, y1, strokeWidth float32, clr color.Color, ...)
- func TextAdvance(s string, face *GoTextFace) float64
- func TextDraw(dst Image, s string, face *GoTextFace, op *DrawOptions)
- func Wheel() (float64, float64)
- func WindowSize() (int, int)
- type Blend
- type CursorShapeType
- type DrawImageOptions
- type DrawOptions
- type GamepadButton
- type GamepadID
- type GoTextFace
- type GoTextFaceSource
- type Image
- type Key
- type MouseButton
- type Vertex
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 CursorPosition ¶
func ImageBounds ¶
func ImageClear ¶
func ImageClear(img Image)
func ImageDeallocate ¶
func ImageDeallocate(img Image)
func ImageDraw ¶
func ImageDraw(dst, src Image, opts *DrawImageOptions)
func IsGamepadButtonJustPressed ¶
func IsGamepadButtonJustPressed(id GamepadID, btn GamepadButton) bool
func IsKeyJustPressed ¶
func IsKeyJustReleased ¶
func IsKeyPressed ¶
func IsMouseButtonJustPressed ¶
func IsMouseButtonJustPressed(b MouseButton) bool
func SetCursorShape ¶
func SetCursorShape(shape CursorShapeType)
func StrokeLine ¶
func TextAdvance ¶
func TextAdvance(s string, face *GoTextFace) float64
func TextDraw ¶
func TextDraw(dst Image, s string, face *GoTextFace, op *DrawOptions)
func WindowSize ¶
Types ¶
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 ¶
func AppendGamepadIDs ¶
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 ¶
func NewImageFromImage ¶
type Key ¶
func AppendJustPressedKeys ¶
type MouseButton ¶
type MouseButton = ebiten.MouseButton
Click to show internal directories.
Click to hide internal directories.