TotallyGamerJet
05470f7706
internal/graphicsdriver/metal: remove C for macOS ( #2243 )
...
Updates #1162
2022-08-18 01:39:34 +09:00
Hajime Hoshi
fb775d806c
internal/shader: disallow 'discard' in other functions than the fragment entry point
...
Closes #2248
2022-08-17 23:39:52 +09:00
Hajime Hoshi
9d303e8dc5
internal/graphicsdriver/directx: bug fix: do not reset command allocators at Begin
...
Closes #2249
2022-08-17 22:37:26 +09:00
Hajime Hoshi
e9e48919df
internal/processtest: rename test
2022-08-17 22:04:51 +09:00
Hajime Hoshi
b211b79a5c
internal/shader: use a return statement in a fragment shader entrypoint
...
Updates #2247
2022-08-17 22:02:13 +09:00
Hajime Hoshi
bf4648eb35
internal/shaderir: fix a wrong comment
2022-08-17 17:43:59 +09:00
Hajime Hoshi
cf92158e33
ebiten: bug fix: add an indirect function call for a fragment shader
...
Closes #2245
Closes #2247
2022-08-17 16:37:37 +09:00
Hajime Hoshi
652cd169b2
ebiten: revert the changes for DrawRectShader
...
This reverts these commits:
- 9bd46cb2b5
.
- f8c4634017
.
This causes test failures on the Steam bot. See #2246 .
Updates #2166
Closes #2246
2022-08-17 00:56:33 +09:00
Hajime Hoshi
bb2df24f83
internal/graphicsdriver/directx: use DXGI_PRESENT_TEST when the screen is invisible
...
This change also reduces FPS to about 10 when the screen is invisible
in order to save CPU power.
Closes #2181
2022-08-17 00:10:44 +09:00
Hajime Hoshi
9bd46cb2b5
ebiten: bug fix: assigning to arguments doesn't work with OpenGL
...
Updates #2166
2022-08-16 23:07:15 +09:00
Hajime Hoshi
f8c4634017
ebiten: always specify the source region at DrawRectShader
...
imageSrcRegionOnTexture should work even without any images.
Updates #2166
2022-08-16 22:43:33 +09:00
Hajime Hoshi
bcba362e7e
inpututil: add AppendJustReleasedTouchIDs and TouchPreviousPosition
...
Closes #2057
2022-08-16 02:21:55 +09:00
Hajime Hoshi
e21c881644
examples/paint: refactoring: avoid calling input functions in Draw
2022-08-16 01:06:22 +09:00
Hajime Hoshi
5b182efe7e
internal/ui: forbide SetWindowSize
when the window is maximized
...
On Windows, changing the size of a maximized window results in
unexpected states. Let's forbid this.
On macOS, a maximized window is just a regular window so it is
OK to allow resizing by `SetWindowSize`.
On Linux or other Unix, the behavior depends on window systems
and it is hard to expect what would happen, so forbid this just in
case.
Closes #1986
2022-08-15 16:29:20 +09:00
Hajime Hoshi
1c548c0641
examples/keyboard: refactoring
2022-08-13 13:37:01 +09:00
Hajime Hoshi
33da481d60
text: refactoring
...
Updates #1992
2022-08-13 00:28:41 +09:00
Hajime Hoshi
bc8e2fe6ac
internal/glfw: bug fix: the window should be focused when closing is handled
...
Closes #2165
2022-08-12 22:34:19 +09:00
Hajime Hoshi
dd292552d5
audio: move the implementation for NintendoSDK to Oto
...
Updates #2242
2022-08-12 20:53:55 +09:00
Hajime Hoshi
8081d0636a
internal/cbackend: rename to nintendosdk
...
Updates #2242
2022-08-12 17:19:37 +09:00
Hajime Hoshi
e7c0a121c4
all: remove the build tag 'ebitencbackend'
...
This also automatically enables 'egl' when 'nintendosdk' is specified.
Updates #2242
2022-08-12 13:15:39 +09:00
Hajime Hoshi
c85d319471
ebiten: bug fix: wrong build tags
...
gofmt is used after the generation, so there was not an actual issue.
2022-08-12 12:38:27 +09:00
Hajime Hoshi
dac6548c0c
all: rename ebitenginecbackend to nintendosdk
...
Updates #2242
2022-08-12 02:05:29 +09:00
Hajime Hoshi
1abb461329
ebiten: add a comment about microsoftgdk
2022-08-12 00:48:43 +09:00
Hajime Hoshi
05baee51d2
examples/highdpi: remove an old comment
2022-08-12 00:16:08 +09:00
Hajime Hoshi
0578a831cc
internal/microsoftgdk: initialize GDK on the Ebitengine side
...
Updats #2084
2022-08-11 21:45:13 +09:00
Hajime Hoshi
91797a6589
internal/microsoftgdk: remove dummy.c
...
Simply this was not needed.
Updates #2084
2022-08-11 21:23:13 +09:00
Hajime Hoshi
094726915b
ebiten: add IsStandardGamepadAxisAvailable and IsStandardGamepadButtonAvailable ( #2241 )
...
Closes #2040
2022-08-11 12:35:20 +09:00
Hajime Hoshi
8f792fef45
ebiten: update comments
...
Updates #1590
Updates #1990
2022-08-10 22:42:15 +09:00
Hajime Hoshi
85aabf734b
internal/ui: remove panic at (*glfwWindow).Maximize
...
Just doing nothing is more consistent with other functions.
Updates #1990
2022-08-10 22:18:55 +09:00
Hajime Hoshi
4104abdf77
internal/ui: refactoring
2022-08-10 21:34:39 +09:00
Hajime Hoshi
b5196a5a7c
internal/ui: bug fix: glfwWindow.IsMaximized should not return true on fullscreen
...
Closes #2239
2022-08-10 21:17:13 +09:00
Hajime Hoshi
7a936f7052
internal/ui: enable SetWindowSize even with fullscreen on macOS
...
Closes #1590
2022-08-10 15:57:59 +09:00
Hajime Hoshi
085b64006d
internal/ui: refactoring: indentation
2022-08-10 15:47:50 +09:00
Hajime Hoshi
2ab255dd1c
internal/ui: refactoring: delay the call of outsideSize()
2022-08-10 14:53:28 +09:00
Hajime Hoshi
7eff5cbd4a
internal/ui: refactoring: separate updateSize into updateSize and outsideSize
2022-08-10 14:50:20 +09:00
Hajime Hoshi
2480871155
internal/ui: bug fix: compile error
2022-08-10 12:11:32 +09:00
Hajime Hoshi
57fc4d438b
internal/ui: refactoring: separate the Windows API part to another file
2022-08-10 11:51:35 +09:00
Hajime Hoshi
a57560105f
internal/ui: refactoring: add userInterfaceImplNative for each OS
2022-08-10 11:44:03 +09:00
Hajime Hoshi
d0fa68691c
internal/ui: enable some functions even on fullsceen
...
This is thanks to a GLFW v3.3.8 change:
9950cc52df
Updates #1590
2022-08-10 09:00:33 +09:00
Hajime Hoshi
a84a738360
internal/ui: bug fix: collectionBehavior mattered for fullscreen
...
Closes #2238
2022-08-10 01:06:26 +09:00
Hajime Hoshi
205245b094
internal/shader: implement a new built-in function discard
...
Closes #1969
2022-08-09 11:31:59 +09:00
Hajime Hoshi
2b248ef783
audio: refactoring: remove audio/internal/cbackend
2022-08-08 23:58:46 +09:00
Hajime Hoshi
2826555044
internal/cbackend: remove CloseAudio
2022-08-08 12:38:27 +09:00
Hajime Hoshi
aca290caa9
audio: refactoring
2022-08-08 12:06:08 +09:00
Hajime Hoshi
445378ab31
update dependencies
2022-08-08 11:38:10 +09:00
Hajime Hoshi
089843338e
ebiten: update comments
...
Updates #2177
2022-08-08 04:37:04 +09:00
Hajime Hoshi
0217ed0544
ebiten: add WritePixels replacing ReplacePixels
...
Closes #2236
2022-08-08 03:50:27 +09:00
Hajime Hoshi
24424d036c
ebiten: update comments
2022-08-08 03:42:14 +09:00
Hajime Hoshi
34aa52459e
internal/ui: rename ReplacePixels -> WritePixels
...
Updates #2236
2022-08-08 03:32:26 +09:00
Hajime Hoshi
bd1b9cdb9b
internal/mipmap: rename ReplacePixels -> WritePixels
...
Updates #2236
2022-08-08 03:32:21 +09:00