Hajime Hoshi
2a1eac3b73
examples/font: use text/v2
...
Updates #2454
2023-11-17 13:07:55 +09:00
Hajime Hoshi
147175d400
text/v2: rename LineHeight -> LineSpacingInPixels
...
Updates #2454
2023-11-17 01:19:05 +09:00
Hajime Hoshi
9fa60e1656
examples/flappy: adjust text layouts
2023-11-16 23:03:32 +09:00
Hajime Hoshi
3635b67f31
examples/flappy: use text/v2
...
Updates #2454
2023-11-16 22:49:51 +09:00
Hajime Hoshi
a749f6fbc3
examples/blend: use text/v2
...
Updates #2454
2023-11-16 22:18:56 +09:00
Hajime Hoshi
006777220c
examples/piano: use text/v2
...
Updates #2454
2023-11-16 02:20:18 +09:00
Hajime Hoshi
bf338eb76b
examples/ui: use a sub-image instead of a buffer image
2023-11-15 23:05:43 +09:00
Hajime Hoshi
2641f65863
examples/ui: use text/v2
...
Updates #2454
2023-11-15 23:03:06 +09:00
Hajime Hoshi
9c95b4accc
examples/block: use text/v2
2023-11-15 22:38:28 +09:00
Hajime Hoshi
acd5207142
examples/text: use GoTextFace
2023-11-15 22:01:29 +09:00
Hajime Hoshi
b2c45a369a
text/v2: remove the suffix 'InPixels'
...
Now all the units are pixels, the suffix is redundant.
Updates #2454
2023-11-15 21:53:58 +09:00
Hajime Hoshi
586a4b6d6e
all: rename sizeInPoints -> sizeInPixels
2023-11-15 14:03:22 +09:00
Hajime Hoshi
f2180a5dc5
text/v2: rename SizeInPoints -> SizeInPixels
2023-11-15 13:14:36 +09:00
Hajime Hoshi
5fa2c00014
examples/texti18n: adjust positions and texts
2023-11-15 12:46:06 +09:00
Hajime Hoshi
5354ccc44f
examples/2048: use text/v2
...
Also, this changes fixes a bug in (*text/v2.GoTextFace).Metrics.
Updates #2454
2023-11-15 12:28:39 +09:00
Hajime Hoshi
3080d361ec
examples/texti18n: remove unnecessary variables
2023-11-15 03:54:19 +09:00
Hajime Hoshi
c24ade7af9
examples/texti18n: bug fix: wrong language was specified
2023-11-15 03:43:27 +09:00
Hajime Hoshi
fe35180b78
text/v2: implement GoTextFace
...
Closes #675
Updates #2143
Updates #2454
2023-11-15 03:40:45 +09:00
Hajime Hoshi
46600b42f9
text/v2: swap the arguments of Advance for consistency
2023-11-15 03:18:23 +09:00
Hajime Hoshi
ea1d9dde4e
text/v2: add LayoutOptions
...
Now AppendGlyphs can treat multiple lines and alignments.
2023-11-13 23:47:37 +09:00
Hajime Hoshi
cca4e78651
examples/text: add an example to use alignments of text/v2
...
Closes #2143
2023-11-13 23:02:15 +09:00
Hajime Hoshi
56faf34932
examples/text: adjust the rendering position
...
text/v2's Draw uses the given position as the upper-left position
of the bounds by default, while text (v1) uses the given position
as the origin position. In order to approximate the same result of
the original text version, adjust the Y values.
Updates #2454
2023-11-13 01:37:36 +09:00
Hajime Hoshi
b8b8b16098
all: add text/v2
...
This change adds some basic APIs incuding StdFace.
GoTextFace will be added later.
Updates #2454
2023-11-12 17:04:25 +09:00
Hajime Hoshi
3ca6184294
ebiten: add a new FillRule: NonZero
...
Closes #2782
2023-11-06 12:11:38 +09:00
Hajime Hoshi
c01ceeaa6a
ebiten: replace (*Image).Dispose with Deallocate
...
Closes #2808
2023-11-03 17:45:39 +09:00
Hajime Hoshi
f6ffd86ca8
examples/drag: refactoring
2023-10-28 00:10:15 +09:00
Hajime Hoshi
a7b87fddb4
examples/drag: use image.Alpha to detect user interaction
2023-10-27 10:04:11 +09:00
Hajime Hoshi
630789757f
all: add files for PlayStation 5
...
The implementation is WIP.
Updates #2799
2023-10-16 00:54:08 +09:00
Hajime Hoshi
dce18d7c23
internal/ui: bug fix: SetWindowIcon(nil) didn't reset the window icon
...
Closes #2796
2023-09-30 02:46:40 +09:00
Hajime Hoshi
a269cf3785
ebiten: remove (*Monitor).Bounds()
...
Now the unit of Bounds is device-dependent pixels, and this is useless
and Ebitengine API always treat device-independent pixels. Rather,
this might confuse users.
Until we find a good solution, let's remove Bounds() for v2.6.
MonitorType itself is still useful to specify a monitor to show a
window.
2023-09-23 18:24:03 +09:00
Hajime Hoshi
67b3bc14da
examples/monitor: use DebugPrint to simplify the sample
2023-09-23 15:56:41 +09:00
Hajime Hoshi
20ef839e03
all: rename arguments in Fragment
...
Updates #2767
2023-09-21 01:35:57 +09:00
Hajime Hoshi
d7a8f73a37
examples/textinput: add a log message about environments
...
Updates #2735
Updates #2736
2023-09-20 22:25:13 +09:00
Hajime Hoshi
14f2ee198e
ebiten: add SetWindowMousePassthrough and IsWindowMousePassthrough
...
Closes #2511
2023-09-18 18:31:22 +09:00
Ketchetwahmeegwun T. Southall
60b7de6a3c
ebiten: add APIs to treat monitors ( #2597 )
...
This change adds these APIs:
* `type MonitorType`
* `func (*MonitorType) Bounds() image.Rectangle`
* `func (*MonitorType) Name() string`
* `func Monitor() *MonitorType`
* `func SetMonitor(*MonitorType)`
* `func AppendMonitors([]*MonitorType) []*MonitorType`
Closes #1835
2023-08-30 21:02:04 +09:00
Hajime Hoshi
db34930ae8
internal/graphics: add built-in Kage functions
...
This change adds these Kage functions:
* imageDstOrigin
* imageDstSrc
* imageSrcNOrigin
* imageSrcNSrc
and deprecates these functions:
* imageDstRegionOnTexture
* imageSrcRegionOnTexture
Closes #1870
2023-08-28 15:06:45 +09:00
Hajime Hoshi
101c9cbf5c
examples/flappy: use the pixels mode
2023-08-28 03:52:52 +09:00
David Poirier
7fe89b173b
examples/gamepad: bug fix: correct iteration start button in gamepad example ( #2730 )
...
Start iterating at zero instead of gamepad id (which is usually 0).
2023-08-24 16:27:35 +09:00
Hajime Hoshi
2b03637b52
examples/textinput: bug fix: reset the state after committing
2023-08-02 18:09:55 +09:00
Hajime Hoshi
af5edf136d
examples/textinput: add a comment
2023-08-02 18:02:42 +09:00
Hajime Hoshi
fbea792fe4
audio: rename Seek -> SetPosition and Current -> Position
...
Seek and Current are not removed but marked as deprecated.
Closes #2698
2023-08-02 01:24:52 +09:00
Hajime Hoshi
b3851839f9
examples/life: change the license to Apache License 2.0
...
Updates #2695
2023-08-01 23:36:02 +09:00
Hajime Hoshi
63df6168d9
internal/shader: use plural forms for Kage compiler directives
...
This change renames
```
//kage:unit texel
//kage:unit pixel
```
to
```
//kage:unit texels
//kage:unit pixels
```
.
Closes #2717
2023-08-01 11:41:38 +09:00
Mathieu Champlon
f3023ae88e
examples/lines: remove duplicated code ( #2713 )
2023-07-29 13:29:19 +09:00
Hajime Hoshi
91e1c0ea29
ebiten: add more cursor shapes
...
This change adds these new cursor shapes:
* CursorShapeNESWResize
* CursorShapeNWSEResize
* CursorShapeMove
* CursorShapeNotAllowed
Closes #2476
2023-07-23 00:49:45 +09:00
Hajime Hoshi
58f1415cac
examples/texti18n: use Jpan as a Japanese script
2023-07-09 15:17:25 +09:00
Hajime Hoshi
f8d8d7a231
examples/life, internal/graphicsdriver/opengl/gl: format copyright texts
2023-07-08 02:50:54 +09:00
Hajime Hoshi
929539b66e
add exp/textinput package
...
This works only for macOS and browsers so far.
Updates #1029
2023-07-05 02:09:04 +09:00
Hajime Hoshi
1d143ffccb
examples/texti18n: add comments
...
Updates #2454
2023-07-01 19:57:45 +09:00
Hajime Hoshi
198bd4788e
examples/texti18n: bug fix: space characters were ignored
2023-07-01 18:17:01 +09:00