403 Commits

Author SHA1 Message Date
Mitchell Hashimoto
c8a51a2158 renderer/opengl: create the screen texture 2023-11-17 21:51:06 -08:00
Mitchell Hashimoto
47971e7663 renderer/opengl: setup uniform buffer objects for custom shaders 2023-11-17 21:51:06 -08:00
Mitchell Hashimoto
1fedc912f0 renderer/opengl: create ubos 2023-11-17 21:51:05 -08:00
Mitchell Hashimoto
fb0929a11b renderer/opengl: extract cell program state to dedicated struct 2023-11-17 21:51:05 -08:00
Mitchell Hashimoto
3aa217ad2e pkg/opengl: add Framebuffer APIs 2023-11-17 21:51:05 -08:00
Mitchell Hashimoto
8576acb89e renderer/opengl: move opengl API to pkg/opengl 2023-11-17 21:51:04 -08:00
Mitchell Hashimoto
01a73994cb renderer/metal: setup sampler state 2023-11-17 21:50:53 -08:00
Mitchell Hashimoto
dba78b20ca renderer: shadertoy convert to MSL 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
1bd92619b1 renderer: shadertoy functions 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
3a4aef2dcd pkg/spirv-cross: correct c header 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
7821e6aa3a pkg/spirv-cross 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
6634ccc09c pkg/spirv-cross 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
9715eef388 pkg/glslang: build SPIRV lib 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
54ee8c1e3d pkg/glslang: complete the API 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
4afaea19d6 pkg/glslang: shader api 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
6ebbea84d5 pkg/glslang: can build 2023-11-17 21:50:35 -08:00
Mitchell Hashimoto
0230222c0d pkg/macos: add CoreVide for DisplayLink 2023-11-17 21:50:34 -08:00
Krzysztof Wolicki
44a48f62f1 change unmodified vars to consts in anticipation of zig changes 2023-11-17 15:46:46 +01:00
Mitchell Hashimoto
4781a83e4a replace utf8proc with ziglyph 2023-11-07 13:17:56 -08:00
Mitchell Hashimoto
cb684e35cc font/coretext: discovery scoring should take into account symb. traits
Fixes #707

Our scoring algorithm previously did not take into account symbolic
traits, so when `bold = false and italic = false`, regular, bold, italic
would all be equally likely to appear first.

This modifies our scoring algorithm to prioritize matching symbolic
traits. Further, we have a special case for no symbolic traits to
prioritize "Regular" named styles. We can expand this to other styles
too but we do not do this here.

We also modified the algorithm to always prefer fonts with more glyphs
over fonts with less, hopeful that we can load fewer fonts for other
glyphs later.
2023-11-03 22:21:34 -07:00
Mitchell Hashimoto
55f681a0fd inspector is scaled to native dpi 2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
e62a8bbaae pkg/cimgui: use freetype for font rendering 2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
a6dfad9689 pkg/cimgui: requires libcpp 2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
9fb4497675 pkg/cimgui: add osx backend 2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
3ac6e8392d pkg/cimgui: add metal backend 2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
869e4133f1 apprt/gtk: can render imgui 2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
efddef9d1c build: add cimgui to build 2023-10-24 15:27:13 -07:00
Mitchell Hashimoto
aaa74c40c3 pkg/cimgui 2023-10-24 15:27:13 -07:00
Mitchell Hashimoto
cbdf52864a Merge pull request #704 from der-teufel-programming/windows-test
Get `zig build test` working on Windows
2023-10-23 08:52:43 -07:00
Mitchell Hashimoto
b9b33ab25d pkg/fontconfig: make iconv build param non-windows specific 2023-10-23 08:40:25 -07:00
Mitchell Hashimoto
4cb185c593 pkg/harfbuzz: update to 8.2.2 2023-10-20 09:10:34 -07:00
Krzysztof Wolicki
b830deb8a9 pkg/fontconfig: windows check more readable 2023-10-19 17:21:23 +02:00
Krzysztof Wolicki
3936b471a8 Disable iconv on Windows by default (enabled via cli flag).
Skip various tests not implemented on windows.
2023-10-19 09:39:20 +02:00
James Tucker
5007e90ae5 pkg/fontconfig: move defines to fix x86_64-windows targets
Some targets were duplicated in the all-targets definition list that
will not build for a Windows target. They're all moved to the
non-Windows configuration. The target now builds against a mingw64
prefix with the appropriate dependencies installed.

Updates #437
2023-10-17 23:24:20 -07:00
Mitchell Hashimoto
eda0e8ad04 pkg/apple-sdk: update to not have any broken symlinks 2023-10-17 13:11:27 -07:00
Mitchell Hashimoto
1411015038 font: fallback search should search full discovery chain
Fixes #668

We were previously only checking the first font result in the search.
This also fixes our CoreText scoring algorithm to prioritize faces that
have the codepoint we're searching for.
2023-10-13 12:25:27 -07:00
Mitchell Hashimoto
01a8013533 pkg/harfbuzz: remove accidentally committed archive file 2023-10-09 16:05:55 -07:00
Mitchell Hashimoto
17032632cf pkg/apple-sdk: do not git clone anymore 2023-10-07 15:31:17 -07:00
Mitchell Hashimoto
8ec6828713 pkg/harfbuzz: download source using zig package manager 2023-10-07 14:51:25 -07:00
Mitchell Hashimoto
6e550bbd6b pkg/libxml2: download using zig package manager 2023-10-07 14:48:41 -07:00
Mitchell Hashimoto
1127330b3a font/coretext: score discovered fonts 2023-10-03 09:17:41 -07:00
Mitchell Hashimoto
fda56fd11f pkg/macos: MutableArray, sorting 2023-10-02 22:26:47 -07:00
Mitchell Hashimoto
0021b290cf pkg: add test targets 2023-10-01 18:43:25 -07:00
Mitchell Hashimoto
f0d4e9c7c3 pkg: remove all old build.zig files 2023-10-01 18:35:31 -07:00
Mitchell Hashimoto
4e1b3b3224 fix failing test, freetype needs libpng 2023-10-01 18:33:37 -07:00
Mitchell Hashimoto
d71197dc59 no more system_sdk 2023-10-01 17:38:30 -07:00
Mitchell Hashimoto
3a4842a0a5 fix build on linux 2023-10-01 17:32:59 -07:00
Mitchell Hashimoto
d1c993b093 pkg/tracy 2023-10-01 17:11:40 -07:00
Mitchell Hashimoto
8395bb7470 pkg/tracy 2023-10-01 17:11:04 -07:00
Mitchell Hashimoto
ec26fb7cee pkg/macos 2023-10-01 17:02:12 -07:00