MCPcopy
hub / github.com/hajimehoshi/ebiten

github.com/hajimehoshi/ebiten @v2.9.9 sqlite

repository ↗ · DeepWiki ↗ · release v2.9.9 ↗
6,559 symbols 18,731 edges 605 files 1,327 documented · 20%
README

Ebitengine (v2)

Go Reference Build Status

A dead simple 2D game engine for Go

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

Overview

Platforms

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

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

The Ebitengine logo by Hajime Hoshi is licensed under the Creative Commons Attribution 4.0.

GLFW

https://github.com/glfw/glfw

Copyright (c) 2002-2006 Marcus Geelnard

Copyright (c) 2006-2019 Camilla Löwy

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would
   be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not
   be misrepresented as being the original software.

3. This notice may not be removed or altered from any source
   distribution.

Go

https://cs.opensource.google/go/go

Copyright (c) 2009 The Go Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

   * Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
   * Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
   * Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

go-gl/gl

https://github.com/go-gl/gl

The MIT License (MIT)

Copyright (c) 2014 Eric Woroshow

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

go-gl/glfw

https://github.com/go-gl/glfw

Copyright (c) 2012 The glfw3-go Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

   * Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
   * Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
   * Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Extension points exported contracts — how you extend this code

Resetter (Interface)
(no doc) [10 implementers]
internal/graphicsdriver/graphics.go
Scene (Interface)
(no doc) [103 implementers]
examples/blocks/blocks/scenemanager.go
Face (Interface)
Face is an interface representing a font face. The implementations are only faces defined in this package, like GoTextFa [4 …
text/v2/text.go
ColorM (Interface)
ColorM represents a matrix to transform coloring when rendering an image. ColorM is applied to the source alpha color w [3 …
internal/affine/colorm.go
FinalScreenDrawer (Interface)
FinalScreenDrawer is an interface for a custom function to render the final screen. For an actual usage, see examples/fl [2 …
run.go
FrameLogger (Interface)
FrameLogger defines the interface for logging debug information for each frame. [2 implementers]
internal/debug/debug.go
StrokeSource (Interface)
StrokeSource represents a input device to provide strokes. [2 implementers]
examples/drag/main.go
EncoderBufferPool (Interface)
EncoderBufferPool is an interface for getting and returning temporary instances of the [EncoderBuffer] struct. This can
internal/png/stdlibwriter.go

Core symbols most depended-on inside this repo

Call
called by 364
internal/thread/thread.go
NewImage
called by 342
internal/graphicsdriver/graphics.go
Get
called by 227
internal/png/stdlibwriter.go
addError
called by 212
internal/shader/shader.go
Pos
called by 211
examples/2048/2048/tile.go
Bounds
called by 208
run.go
String
called by 201
internal/affine/colorm.go
Translate
called by 187
internal/affine/colorm.go

Shape

Method 3,352
Function 2,044
Struct 805
TypeAlias 275
FuncType 40
Interface 38
Class 5

Languages

Go99%
Java1%

Modules by API surface

internal/graphicsdriver/directx/d3d12_windows.go203 symbols
internal/glfw/api_windows.go179 symbols
internal/graphicsdriver/directx/d3d11_windows.go121 symbols
image_test.go120 symbols
internal/graphicsdriver/metal/mtl/mtl_darwin.go108 symbols
internal/ui/ui_glfw.go88 symbols
internal/graphicsdriver/opengl/gl/default_js.go84 symbols
internal/graphicsdriver/opengl/gl/default_purego.go79 symbols
internal/graphicsdriver/opengl/gl/default_cgo.go78 symbols
internal/graphicsdriver/opengl/gl/interface.go76 symbols
internal/graphicsdriver/opengl/gl/debug.go76 symbols
internal/glfw/win32_window_windows.go75 symbols

Dependencies from manifests, versioned

github.com/ebitengine/debuguiv0.2.0 · 1×
github.com/ebitengine/gomobilev0.0.0-2025092309405 · 1×
github.com/ebitengine/hideconsolev1.0.0 · 1×
github.com/ebitengine/puregov0.9.0 · 1×
github.com/gen2brain/mpegv0.5.0 · 1×
github.com/go-text/typesettingv0.3.0 · 1×
github.com/hajimehoshi/bitmapfont/v4v4.1.0 · 1×
github.com/hajimehoshi/go-mp3v0.3.4 · 1×
github.com/jakecoffman/cp/v2v2.3.0 · 1×
github.com/jezek/xgbv1.1.1 · 1×
github.com/jfreymuth/oggvorbisv1.0.5 · 1×

For agents

$ claude mcp add ebiten \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact