Versions in this module Expand all Collapse all v2 v2.0.7 Mar 14, 2021 Changes in this version + const ColorMDim + const DefaultTPS + const GeoMDim + const MaxIndicesNum + const UncappedTPS + func CurrentFPS() float64 + func CurrentTPS() float64 + func CursorPosition() (x, y int) + func DeviceScaleFactor() float64 + func GamepadAxis(id GamepadID, axis int) float64 + func GamepadAxisNum(id GamepadID) int + func GamepadButtonNum(id GamepadID) int + func GamepadName(id GamepadID) string + func GamepadSDLID(id GamepadID) string + func InputChars() []rune + func IsFocused() bool + func IsFullscreen() bool + func IsGamepadButtonPressed(id GamepadID, button GamepadButton) bool + func IsKeyPressed(key Key) bool + func IsMouseButtonPressed(mouseButton MouseButton) bool + func IsMousePassThru() bool + func IsRunnableOnUnfocused() bool + func IsScreenClearedEveryFrame() bool + func IsScreenTransparent() bool + func IsVsyncEnabled() bool + func IsWindowDecorated() bool + func IsWindowFloating() bool + func IsWindowMaximized() bool + func IsWindowMinimized() bool + func IsWindowResizable() bool + func MaxTPS() int + func MaximizeWindow() + func MinimizeWindow() + func RestoreWindow() + func RunGame(game Game) error + func RunGameWithoutMainLoop(game Game) + func ScreenSizeInFullscreen() (int, int) + func SetCursorMode(mode CursorModeType) + func SetFullscreen(fullscreen bool) + func SetInitFocused(focused bool) + func SetMaxTPS(tps int) + func SetMousePassThru(passthru bool) + func SetRunnableOnUnfocused(runnableOnUnfocused bool) + func SetScreenClearedEveryFrame(cleared bool) + func SetScreenTransparent(transparent bool) + func SetVsyncEnabled(enabled bool) + func SetWindowDecorated(decorated bool) + func SetWindowFloating(float bool) + func SetWindowIcon(iconImages []image.Image) + func SetWindowPosition(x, y int) + func SetWindowResizable(resizable bool) + func SetWindowSize(width, height int) + func SetWindowTitle(title string) + func TouchPosition(id TouchID) (int, int) + func Wheel() (xoff, yoff float64) + func WindowPosition() (x, y int) + func WindowSize() (int, int) + type Address int + const AddressClampToZero + const AddressRepeat + const AddressUnsafe + type ColorM struct + func (c *ColorM) Apply(clr color.Color) color.Color + func (c *ColorM) ChangeHSV(hueTheta float64, saturationScale float64, valueScale float64) + func (c *ColorM) Concat(other ColorM) + func (c *ColorM) Element(i, j int) float64 + func (c *ColorM) Invert() + func (c *ColorM) IsInvertible() bool + func (c *ColorM) Reset() + func (c *ColorM) RotateHue(theta float64) + func (c *ColorM) Scale(r, g, b, a float64) + func (c *ColorM) SetElement(i, j int, element float64) + func (c *ColorM) String() string + func (c *ColorM) Translate(r, g, b, a float64) + type CompositeMode int + const CompositeModeClear + const CompositeModeCopy + const CompositeModeDestination + const CompositeModeDestinationAtop + const CompositeModeDestinationIn + const CompositeModeDestinationOut + const CompositeModeDestinationOver + const CompositeModeLighter + const CompositeModeMultiply + const CompositeModeSourceAtop + const CompositeModeSourceIn + const CompositeModeSourceOut + const CompositeModeSourceOver + const CompositeModeXor + type CursorModeType int + const CursorModeCaptured + const CursorModeHidden + const CursorModeVisible + func CursorMode() CursorModeType + type DrawImageOptions struct + ColorM ColorM + CompositeMode CompositeMode + Filter Filter + GeoM GeoM + type DrawRectShaderOptions struct + CompositeMode CompositeMode + GeoM GeoM + Images [4]*Image + Uniforms map[string]interface{} + type DrawTrianglesOptions struct + Address Address + ColorM ColorM + CompositeMode CompositeMode + Filter Filter + type DrawTrianglesShaderOptions struct + CompositeMode CompositeMode + Images [4]*Image + Uniforms map[string]interface{} + type Filter int + const FilterLinear + const FilterNearest + type Game interface + Draw func(screen *Image) + Layout func(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) + Update func() error + type GamepadButton int + const GamepadButton0 + const GamepadButton1 + const GamepadButton10 + const GamepadButton11 + const GamepadButton12 + const GamepadButton13 + const GamepadButton14 + const GamepadButton15 + const GamepadButton16 + const GamepadButton17 + const GamepadButton18 + const GamepadButton19 + const GamepadButton2 + const GamepadButton20 + const GamepadButton21 + const GamepadButton22 + const GamepadButton23 + const GamepadButton24 + const GamepadButton25 + const GamepadButton26 + const GamepadButton27 + const GamepadButton28 + const GamepadButton29 + const GamepadButton3 + const GamepadButton30 + const GamepadButton31 + const GamepadButton4 + const GamepadButton5 + const GamepadButton6 + const GamepadButton7 + const GamepadButton8 + const GamepadButton9 + const GamepadButtonMax + type GamepadID = driver.GamepadID + func GamepadIDs() []GamepadID + type GeoM struct + func (g *GeoM) Apply(x, y float64) (float64, float64) + func (g *GeoM) Concat(other GeoM) + func (g *GeoM) Element(i, j int) float64 + func (g *GeoM) Invert() + func (g *GeoM) IsInvertible() bool + func (g *GeoM) Reset() + func (g *GeoM) Rotate(theta float64) + func (g *GeoM) Scale(x, y float64) + func (g *GeoM) SetElement(i, j int, element float64) + func (g *GeoM) Skew(skewX, skewY float64) + func (g *GeoM) String() string + func (g *GeoM) Translate(tx, ty float64) + type Image struct + func NewImage(width, height int) *Image + func NewImageFromImage(source image.Image) *Image + func (i *Image) At(x, y int) color.Color + func (i *Image) Bounds() image.Rectangle + func (i *Image) Clear() + func (i *Image) ColorModel() color.Model + func (i *Image) Dispose() + func (i *Image) DrawImage(img *Image, options *DrawImageOptions) + func (i *Image) DrawRectShader(width, height int, shader *Shader, options *DrawRectShaderOptions) + func (i *Image) DrawTriangles(vertices []Vertex, indices []uint16, img *Image, options *DrawTrianglesOptions) + func (i *Image) DrawTrianglesShader(vertices []Vertex, indices []uint16, shader *Shader, ...) + func (i *Image) Fill(clr color.Color) + func (i *Image) ReplacePixels(pixels []byte) + func (i *Image) Set(x, y int, clr color.Color) + func (i *Image) Size() (width, height int) + func (i *Image) SubImage(r image.Rectangle) image.Image + type Key int + const Key0 + const Key1 + const Key2 + const Key3 + const Key4 + const Key5 + const Key6 + const Key7 + const Key8 + const Key9 + const KeyA + const KeyAlt + const KeyApostrophe + const KeyB + const KeyBackslash + const KeyBackspace + const KeyC + const KeyCapsLock + const KeyComma + const KeyControl + const KeyD + const KeyDelete + const KeyDown + const KeyE + const KeyEnd + const KeyEnter + const KeyEqual + const KeyEscape + const KeyF + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF2 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyG + const KeyGraveAccent + const KeyH + const KeyHome + const KeyI + const KeyInsert + const KeyJ + const KeyK + const KeyKP0 + const KeyKP1 + const KeyKP2 + const KeyKP3 + const KeyKP4 + const KeyKP5 + const KeyKP6 + const KeyKP7 + const KeyKP8 + const KeyKP9 + const KeyKPAdd + const KeyKPDecimal + const KeyKPDivide + const KeyKPEnter + const KeyKPEqual + const KeyKPMultiply + const KeyKPSubtract + const KeyL + const KeyLeft + const KeyLeftBracket + const KeyM + const KeyMax + const KeyMenu + const KeyMinus + const KeyN + const KeyNumLock + const KeyO + const KeyP + const KeyPageDown + const KeyPageUp + const KeyPause + const KeyPeriod + const KeyPrintScreen + const KeyQ + const KeyR + const KeyRight + const KeyRightBracket + const KeyS + const KeyScrollLock + const KeySemicolon + const KeyShift + const KeySlash + const KeySpace + const KeySuper + const KeyT + const KeyTab + const KeyU + const KeyUp + const KeyV + const KeyW + const KeyX + const KeyY + const KeyZ + func (k Key) String() string + type MouseButton int + const MouseButtonLeft + const MouseButtonMiddle + const MouseButtonRight + type Shader struct + func NewShader(src []byte) (*Shader, error) + func (s *Shader) Dispose() + type TouchID = driver.TouchID + func TouchIDs() []TouchID + type Vertex struct + ColorA float32 + ColorB float32 + ColorG float32 + ColorR float32 + DstX float32 + DstY float32 + SrcX float32 + SrcY float32 Other modules containing this package github.com/MattSwanson/ebiten