PiergiorgioZagaria
6eaacde444
gamemode: Add linux_gamemode_is_active field to Platform
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
2612684ef3
gamemode: Fix root build.zig test with symlinks
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
d84a32363c
gamemode: add check for GAMEMODE env var equal false
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
76bf493a86
gamemode: Small fix for initLinuxGamemode()
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
80270a5cfc
gamemode: Move gamemode init and deinit into their own functions
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
bd68745106
gamemode: Add licenses
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
4ee9ba1000
gamemode: Fix overcomplications and @import with symlinks
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
38a44ea3b3
gamemode: Remove gamemode *.c files for building from source
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
d256d071e0
gamemode: WIP building gamemode from source
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
613f03ef13
gamemode: Add common helpers to build gamemode
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
509ebd13ab
mach: Initial commit for gamemode
2022-07-28 04:12:25 -07:00
Ali Chraghi
25b6288efe
sysjs: pass target to testStep
2022-07-28 01:53:56 -07:00
Ali Chraghi
eecbad403c
dev: add other workflows to ci-lint.sh
...
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-27 10:25:59 -07:00
Ali Chraghi
b500b04c41
all: build: install tests exe
2022-07-25 11:21:37 -07:00
Ali Chraghi
a6a678b912
freetype: install test exe and move all tests to src/main.zig
2022-07-25 11:21:37 -07:00
Ali Chraghi
956e07b2ba
glfw: build: produce static library
2022-07-24 09:28:56 -07:00
Ali Chraghi
3206fb69ab
freetype: build: produce static library and don't install examples in
...
install step
2022-07-24 09:28:56 -07:00
Ali Chraghi
a8427dcb4b
CI: fix and fmt
...
install alsa lib on linux platform
2022-07-24 09:28:56 -07:00
Ali Chraghi
1b9607be3f
dev: add ci-lint.sh script
2022-07-24 09:28:56 -07:00
Stephen Gutekanst
1356cdd838
all: zig fmt
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-22 19:43:41 -07:00
Stephen Gutekanst
5466375f40
glfw: fix caching bug in system_sdk that prevents cross-compilation in some situations
...
Prior to this change, cross-compiling Mach to other OSes was not working due to a regression.
e.g. to windows:
```
zig build -Dtarget=x86_64-windows run-example-boids
LLD Link... error(link): DLL import library for -ldxguid not found
error: DllImportLibraryNotFound
error: example-boids...
```
The problem was that one build step may invoke `getSdkRoot` and the target might be for say macOS,
since it's building e.g. GLFW for macOS as the target of tests, and `getSdkRoot` would cache the
SDK root _forever_ as being the macOS SDK (in an attempt to avoid running the various git commands
needed to resolve the SDK root multiple times, which slows builds down.)
We instead need to cache the SDK root per step, because the target may not be the same.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-22 19:30:59 -07:00
Ali Chraghi
001e191e5c
freetype: Implement needed Computation API
2022-07-22 17:49:25 -07:00
Ali Chraghi
30612500e0
freetype: update examples
...
compile error due the last functions rename
2022-07-22 17:49:25 -07:00
alichraghi
0aa9cc4a04
freetype: Bitmap Handling 100% Coverage
2022-07-22 17:49:25 -07:00
Stephen Gutekanst
fbc9cee4cc
libmach: respect build target / mode flags
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-21 19:41:33 -07:00
alichraghi
741b4d9eb7
ci: improve jobs
2022-07-21 19:41:06 -07:00
alichraghi
fc90fa6689
build: renable tests target option
2022-07-21 19:41:06 -07:00
dweiller
4f7d3ddedf
examples/gkurve: fix memory leak
2022-07-20 21:16:48 -07:00
dweiller
35930b1600
examples/gkurve: ResizableLabel: fix deinit leaks
...
This issue with the previous (commented out) implementation was that by
remaking the iterator each loop, the same element was attempted to be
freed each iteration, as the element was not actually removed from the
map.
2022-07-20 21:16:48 -07:00
Zachary Huang
8f6273c0d0
libmach: fix small issues and naming conventions
2022-07-20 18:59:29 -07:00
Zachary Huang
5d86314fbb
libmach: update API again, factors out init/update/deinit from native.zig main function
2022-07-20 18:59:29 -07:00
alichraghi
ce21694d75
sysjs: use refAllDeclsRecursive to find and fix mistakes
2022-07-20 18:55:59 -07:00
alichraghi
48a4b9a7a6
glfw: use refAllDeclsRecursive to find mistakes
2022-07-20 18:55:59 -07:00
alichraghi
348733867c
gpu: use refAllDeclsRecursive to find and fix mistakes
2022-07-20 18:55:59 -07:00
alichraghi
6cd965e953
ecs: use refAllDeclsRecursive to find and fix mistakes
2022-07-20 18:55:59 -07:00
alichraghi
e6adc3e350
build: add mode paramater to testStep functions
2022-07-20 18:55:59 -07:00
Zachary Huang
77aecbe806
libmach: update API, exposes init, update, and deinit functions
2022-07-19 09:32:52 -07:00
alichraghi
d194dafb79
build: add test-mach step to test src/ and test for testing all sub-projects
2022-07-19 09:25:55 -07:00
alichraghi
08cfc2368f
sysaudio: skip "requestDevice behavior: invalid id" test
2022-07-19 09:25:55 -07:00
alichraghi
a6cadba1ba
freetype: update test fonts path to be used in parent directories
2022-07-19 09:25:55 -07:00
alichraghi
83f051fb58
freetype/harfbuzz: fix invalid getGlyphInfos return
...
Co-authored-by: ab55al <abdullah5590x@gmail.com>
2022-07-19 09:20:24 -07:00
alichraghi
2388eb1c3a
freetype: Glyph Stroker 100% API Coverage
2022-07-19 09:19:55 -07:00
Stephen Gutekanst
8184ce82f7
freetype: rename newX functions to createX
2022-07-19 09:19:55 -07:00
alichraghi
dc832997e4
freetype: fix import structure
2022-07-19 09:19:55 -07:00
alichraghi
4e624c5381
freetype: update LineJoin members name
...
Consonance with Zig Style Guide
2022-07-19 09:19:55 -07:00
PiergiorgioZagaria
2f1a9f4364
freetype: fix tests for stage2 and Face.getGlyphName()
2022-07-19 09:11:54 -07:00
Uneven Prankster
6a5bb2566e
README: add Discord Server ( #419 )
...
Stephen has recently created a Discord server to go alongside the Matrix chat one for people more used to Discord. I wish to add it to the README so people checking out the project can access it.
2022-07-18 15:25:01 -07:00
iddev5
d12ba02c38
sysaudio: webaudio: Implement audio playback using data_callback
...
Supports passing user context as well as provides the current device.
2022-07-17 09:48:26 -07:00
iddev5
c22e54bcd7
sysaudio: webaudio: Set internal buffer size to 512
...
It was 4096 before. Lower values means lower latency but higher values
are needed for clear audio. It should be properly tested across multiple
browsers to find out the correct default value, or create a formula to
auto calculate it. It should always be a multiple of 2 in the range 256,
512, ..., 8192, 16384.
2022-07-17 09:48:26 -07:00
iddev5
4c264c80cd
sysjs: Allow passing arbitary values (called 'captures') alongside native functions
2022-07-17 09:48:26 -07:00