ebiten/examples
Hajime Hoshi 8ff42f55a1 internal/graphicsdriver/opengl: Give up restorign on browsers
Using restorable images is expensive as this sometimes requires to
load pixels from GPU. On browsers, just reloading the application
should be fine when the context lost happens.

Closes #1603
2021-06-26 16:54:21 +09:00
..
2048 examples: Add //go:build 2021-06-24 21:49:37 +09:00
additive examples: Add //go:build 2021-06-24 21:49:37 +09:00
address examples: Add //go:build 2021-06-24 21:49:37 +09:00
airship examples: Add //go:build 2021-06-24 21:49:37 +09:00
alphablending examples: Add //go:build 2021-06-24 21:49:37 +09:00
animation examples: Add //go:build 2021-06-24 21:49:37 +09:00
audio examples: Add //go:build 2021-06-24 21:49:37 +09:00
audioinfiniteloop examples: Add //go:build 2021-06-24 21:49:37 +09:00
audiopanning examples: Add //go:build 2021-06-24 21:49:37 +09:00
blocks examples: Add //go:build 2021-06-24 21:49:37 +09:00
blur examples: Add //go:build 2021-06-24 21:49:37 +09:00
camera examples: Add //go:build 2021-06-24 21:49:37 +09:00
chipmunk examples: Add //go:build 2021-06-24 21:49:37 +09:00
clip examples: Add //go:build 2021-06-24 21:49:37 +09:00
contextlost internal/graphicsdriver/opengl: Give up restorign on browsers 2021-06-26 16:54:21 +09:00
cursor examples: Add //go:build 2021-06-24 21:49:37 +09:00
doomfire examples: Add //go:build 2021-06-24 21:49:37 +09:00
drag examples: Add //go:build 2021-06-24 21:49:37 +09:00
filter examples: Add //go:build 2021-06-24 21:49:37 +09:00
flappy examples: Add //go:build 2021-06-24 21:49:37 +09:00
flood examples: Add //go:build 2021-06-24 21:49:37 +09:00
font examples: Add //go:build 2021-06-24 21:49:37 +09:00
fullscreen examples: Add //go:build 2021-06-24 21:49:37 +09:00
gamepad examples: Add //go:build 2021-06-24 21:49:37 +09:00
highdpi examples: Add //go:build 2021-06-24 21:49:37 +09:00
hsv examples: Add //go:build 2021-06-24 21:49:37 +09:00
hue examples: Add //go:build 2021-06-24 21:49:37 +09:00
infinitescroll examples: Add //go:build 2021-06-24 21:49:37 +09:00
keyboard examples: Add //go:build 2021-06-24 21:49:37 +09:00
life examples: Add //go:build 2021-06-24 21:49:37 +09:00
mandelbrot examples: Add //go:build 2021-06-24 21:49:37 +09:00
mascot examples: Add //go:build 2021-06-24 21:49:37 +09:00
masking examples: Add //go:build 2021-06-24 21:49:37 +09:00
minify examples: Add //go:build 2021-06-24 21:49:37 +09:00
moire examples: Add //go:build 2021-06-24 21:49:37 +09:00
mosaic examples: Add //go:build 2021-06-24 21:49:37 +09:00
noise examples: Add //go:build 2021-06-24 21:49:37 +09:00
paint examples: Add //go:build 2021-06-24 21:49:37 +09:00
particles examples: Add //go:build 2021-06-24 21:49:37 +09:00
pcm examples: Add //go:build 2021-06-24 21:49:37 +09:00
perspective examples: Add //go:build 2021-06-24 21:49:37 +09:00
piano examples: Add //go:build 2021-06-24 21:49:37 +09:00
platformer examples: Add //go:build 2021-06-24 21:49:37 +09:00
polygons examples: Add //go:build 2021-06-24 21:49:37 +09:00
raycasting examples: Add //go:build 2021-06-24 21:49:37 +09:00
resources examples/resources: Unify jab.wav to 48000 Hz 2021-05-25 22:32:50 +09:00
rotate examples: Add //go:build 2021-06-24 21:49:37 +09:00
set examples: Add //go:build 2021-06-24 21:49:37 +09:00
shader examples: Add //go:build 2021-06-24 21:49:37 +09:00
shapes examples: Add //go:build 2021-06-24 21:49:37 +09:00
sinewave examples: Add //go:build 2021-06-24 21:49:37 +09:00
snake examples: Add //go:build 2021-06-24 21:49:37 +09:00
sprites examples: Add //go:build 2021-06-24 21:49:37 +09:00
spriteshd examples: Add //go:build 2021-06-24 21:49:37 +09:00
squiral examples: Add //go:build 2021-06-24 21:49:37 +09:00
stars examples: Add an example "stars" (#1679) 2021-06-24 22:50:47 +09:00
text examples: Add //go:build 2021-06-24 21:49:37 +09:00
tiles examples: Add //go:build 2021-06-24 21:49:37 +09:00
touch examples: Add //go:build 2021-06-24 21:49:37 +09:00
typewriter examples: Add //go:build 2021-06-24 21:49:37 +09:00
ui examples: Add //go:build 2021-06-24 21:49:37 +09:00
vector examples: Add //go:build 2021-06-24 21:49:37 +09:00
wav examples: Add //go:build 2021-06-24 21:49:37 +09:00
wheel examples: Add //go:build 2021-06-24 21:49:37 +09:00
windowclosing examples: Add //go:build 2021-06-24 21:49:37 +09:00
windowsize examples: Add //go:build 2021-06-24 21:49:37 +09:00
README.md Update import paths in the documents 2020-10-04 05:07:08 +09:00

How to execute the examples

Desktops

go run -tags=example github.com/hajimehoshi/ebiten/examples/rotate

Android

Install gomobile first.

gomobile install -tags=example github.com/hajimehoshi/ebiten/examples/rotate

iOS

gomobile build -target=ios -tags=example -work github.com/hajimehoshi/ebiten/examples/rotate

Then, open the WORK directory, open main.xcodeproj, add signing, and run the project.