Ebitengine - A dead simple 2D game engine for Go
Go to file
Hajime Hoshi 59aa41a3c2 internal/affine: Improve ColorM Scale's performance
The benchmark result comparing the previous commit and this commit is this:

```
name           old time/op    new time/op    delta
ColorMScale-8    9.75µs ± 6%    1.30µs ±22%  -86.67%  (p=0.000 n=10+9)

name           old alloc/op   new alloc/op   delta
ColorMScale-8   1.34kB ±100%    1.19kB ±19%     ~     (p=0.421 n=10+8)

name           old allocs/op  new allocs/op  delta
ColorMScale-8      3.00 ± 0%      2.00 ± 0%  -33.33%  (p=0.000 n=10+10)
```

Updates #1658
2021-07-27 13:45:09 +09:00
.builds audio/internal/readerdriver: Use PulseAudio for Linux/UNIX 2021-06-05 19:46:36 +09:00
.github Update Go to 1.17.0-rc1 for testing 2021-07-14 12:55:19 +09:00
audio audio: Add (*Context).NewPlayer and (*Context).NewPlayerFromBytes 2021-07-22 16:41:04 +09:00
cmd/ebitenmobile ebiten: Add FPSModeType, FPSMode, SetFPSMode, and ScheduleFrame 2021-07-24 16:09:13 +09:00
docs docs: Remove unused contents 2019-03-22 03:23:48 +09:00
ebitenutil Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
examples ebiten: Add FPSModeType, FPSMode, SetFPSMode, and ScheduleFrame 2021-07-24 16:09:13 +09:00
inpututil inpututil: Add APIs for the standard gamepad layout 2021-07-20 02:37:12 +09:00
internal internal/affine: Improve ColorM Scale's performance 2021-07-27 13:45:09 +09:00
mobile ebiten: Add FPSModeType, FPSMode, SetFPSMode, and ScheduleFrame 2021-07-24 16:09:13 +09:00
text Revert "Revert 2 commits using ColorM cache" 2021-05-30 15:17:11 +09:00
vector vector: Add Dir 2021-07-17 16:42:14 +09:00
.gitattributes audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
.gitignore audio/internal/readdriver: Implement a driver for Android with Oboe 2021-05-04 23:51:36 +09:00
AUTHORS Add Enrico to AUTHORS 2021-06-29 23:53:08 +09:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md 2020-01-08 11:30:57 +09:00
colorm_test.go Update version to v2.0.0-alpha 2020-10-04 04:30:40 +09:00
colorm.go internal/affine: Refactoring: Make ColorM interface 2021-07-27 12:10:22 +09:00
CONTRIBUTING.md Update CONTRIBUTING.md 2021-06-26 00:47:46 +09:00
cursor.go ebiten: Remove unnecessary casts 2021-07-23 00:57:17 +09:00
debug_ebitendebug.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
debug_notebitendebug.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
doc.go Fix typos, and use panic instead of log.Fatal in doc.go (#1446) 2020-12-21 21:14:17 +09:00
export_test.go ebiten: Bug fix: Wrong uniform type was used 2020-09-17 20:52:32 +09:00
gamepad.go inpututil: Add APIs for the standard gamepad layout 2021-07-20 02:37:12 +09:00
generate.go Bug fix: some generators did not work due to a lacked package 2020-03-23 01:36:21 +09:00
genevents.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
genkeys.go Unify 'deprecated' comment formats 2021-07-10 03:19:23 +09:00
geom_test.go Update version to v2.0.0-alpha 2020-10-04 04:30:40 +09:00
geom.go ebiten: Remove the deprecated functions and constants 2020-10-04 04:47:24 +09:00
go.mod Update go-gl/glfw for GLFW 3.3.4 2021-07-27 12:54:11 +09:00
go.sum Update go-gl/glfw for GLFW 3.3.4 2021-07-27 12:54:11 +09:00
goversion.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
graphics.go ebiten: Remove FilterDefault 2020-10-05 01:48:47 +09:00
image_test.go ebiten: Add BenchmarkColorMScale 2021-07-27 13:31:37 +09:00
image.go internal/affine: Refactoring: Make ColorM interface 2021-07-27 12:10:22 +09:00
imagedumper_desktop.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
imagedumper_notdesktop.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
imagetobytes_test.go Update version to v2.0.0-alpha 2020-10-04 04:30:40 +09:00
imagetobytes.go ebiten: Remove copying pixels from ReplacePixels and copyImage (renamed to imageToBytes) 2020-07-03 03:01:48 +09:00
init.go glfw: Use os.UserConfigDir for GLFW DLL instead of temporary directories 2020-11-01 17:51:44 +09:00
input.go ebiten: Update comments 2021-07-20 02:53:13 +09:00
keys.go Unify 'deprecated' comment formats 2021-07-10 03:19:23 +09:00
LICENSE Adjust LICENSE file 2017-01-30 18:57:49 +09:00
mousebuttons.go ebiten: Refactoring: Use aliases for GamepadButton and MouseButton 2021-07-19 00:57:35 +09:00
README.md Remove nintendoswitch package 2021-07-21 01:47:49 +09:00
run_mobile.go ebiten: Refactoring: Move RunWithoutMainLoop to another file 2021-07-04 04:23:41 +09:00
run.go ebiten: Add FPSModeType, FPSMode, SetFPSMode, and ScheduleFrame 2021-07-24 16:09:13 +09:00
shader_test.go internal/shaderir/glsl: Bug fix: Remove uncalled functions 2021-07-09 20:22:40 +09:00
shader.go ebiten: Add a new shader function imageDstRegionOnTexture 2020-12-09 11:36:29 +09:00
uicontext.go internal/graphicsdriver/metal: Skip clearing the screen on Metal 2021-07-07 01:45:51 +09:00
uidriver_glfw.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
uidriver_js.go Clean up the 'js' build tags 2020-10-07 01:33:10 +09:00
uidriver_mobile.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
window.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00

Ebiten (v2)

Go Reference Build Status Go Report Card

A dead simple 2D game library for Go

Ebiten is an open source game library for the Go programming language. Ebiten's simple API allows you to quickly and easily develop 2D games that can be deployed across multiple platforms.

Overview

Platforms

Note: Gamepads and keyboards are not available on iOS.

For installation on desktops, see the installation instruction.

Features

  • 2D Graphics (Geometry and color transformation by matrices, Various composition modes, Offscreen rendering, Text rendering, Automatic batches, Automatic texture atlas, Custom shaders)
  • Input (Mouse, Keyboard, Gamepads, Touches)
  • Audio (Ogg/Vorbis, MP3, WAV, PCM)

Packages

Community

License

Ebiten is licensed under Apache license version 2.0. See LICENSE file.