9dda4bebc5
Make measure string go brrrrrrr
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 4m9s
Prerelease-27
2024-07-31 12:01:57 -04:00
a5bfb4972a
Fill quad
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m32s
Prerelease-26
2024-07-30 23:37:47 -04:00
4348f2708a
Gradient triangle
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m32s
2024-07-30 15:49:13 -04:00
32dd2b54ca
incorporate builddeps.reci
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m40s
2024-07-29 19:30:23 -04:00
e8b601aa25
install build deps reci script
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 45s
2024-07-29 19:29:11 -04:00
d5fd3e1a49
reci lua edition
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 48s
2024-07-29 19:24:55 -04:00
f593a0beac
Cleanup & Update ReTexture.
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m29s
2024-07-19 17:16:38 -04:00
0b7af6fd31
Cleanup
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m46s
2024-07-19 01:34:43 -04:00
eca4309e85
DrawSprite
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m21s
2024-07-18 22:24:19 -04:00
4be97f52d9
Minor documentation additions.
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m19s
2024-07-18 14:51:19 -04:00
613a13618c
Merge branch 'master' of https://git.redacted.cc/Josh/JGL
Run ReCI Build Test / Explore-Gitea-Actions (push) Has been cancelled
2024-07-18 14:49:19 -04:00
4150c93c85
Make it like, go faster.
2024-07-18 14:49:15 -04:00
9dee59fd45
Merge remote-tracking branch 'origin/master'
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m32s
2024-07-18 14:04:16 -04:00
b6b2ca1bfe
Remove old LoadFont function.
2024-07-18 14:04:11 -04:00
4eca3311c8
Fix text being shifted up by it's own height.
Run ReCI Build Test / Explore-Gitea-Actions (push) Has been cancelled
2024-07-18 14:01:58 -04:00
54711355c4
Merge branch 'master' of https://git.redacted.cc/Josh/JGL
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m29s
Prerelease-25
2024-07-18 14:01:14 -04:00
8bddf3e0a7
Update JGL.cpp
...
Fix glBlend always being enabled because I'm an idiot
2024-07-18 14:00:57 -04:00
26d17dae38
Move glPixelStore call inside of InitTextEngine so users don't need to call it. Also adjusted Color3 and Color4, more work coming soon.
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 2m18s
2024-07-18 13:45:11 -04:00
4ff8d8ff07
Update Font.cpp
...
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m33s
fix memleak
Prerelease-24
2024-07-17 16:52:31 -04:00
162732e4b7
Fix Dereference
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m24s
2024-07-17 16:11:36 -04:00
289157ab8a
Fiddle with README some
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 2m37s
2024-07-17 15:54:39 -04:00
3a658b1096
Testing MeasureString with underlaid box. But it appears to be offset by half-height?
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 4m39s
2024-07-17 15:19:38 -04:00
480502f89e
Implement Font::MeasureString (TODO: double check!!)
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m53s
2024-07-17 14:59:34 -04:00
d28f680cd0
Half-baked Font class implementation
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m29s
Fonts-Pre
2024-07-16 14:54:47 -04:00
2d1e42c23b
Half-ass Font class implementation
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m30s
2024-07-16 14:39:44 -04:00
abd691b648
uhhhhhhhhhh yeeeeeeea
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m28s
2024-07-16 14:19:39 -04:00
e261b610c2
Update TextRendering.cpp
...
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 5m24s
Reset the Texture after drawing text.
Prerelease-23
2024-07-15 11:50:27 -04:00
8625c52ee9
Implement optimizations for 2D text rendering ( #23 )
...
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m51s
The following patches are included:
## J2D: Rewrite text rendering
This patch rewrites text rendering for `J2D::DrawString` to now construct
a texture atlas for all ASCII-range glyphs in the FT font face, instead
of constructing a texture for every glyph.
This improves text rendering performance for several reasons:
1. Binding textures is relatively expensive as the GPU is required to do
a context switch for internal data like texture parameters, and also
cannot optimize for accesses to the same texture across draw calls.
This patch removes the need to call `glBindTexture` more than once per
call to `J2D::DrawString`.
2. As a consequence of the above, all glyphs for a given string can now
be rendered in a single call to `glDrawArrays`. This is done by storing
the cached texture coordinates on `CachedGlyph` and constructing a full
array of vertices and texture coordinates for the entire string at
once, resulting in only /one/ set of client-to-device attribute
uploads and only one draw call, instead of being required to upload
attribute data for each glyph separately.
## FontCache: Use map for efficient glyph lookup
This patch updates `CachedFont` to now use an `std::map` for cached glyphs,
instead of an `std::vector`. `std::map` allows O(log n) lookup, whereas
`std::vector` only allows O(n) lookup.
Note: `std::unordered_map` technically has better lookup complexity here,
with amortized O(1) lookup. However, hashmaps have a higher inherent
overhead than red-black trees so this would only be viable when going
above around 1000 entries, which should never happen here for ASCII
glyphs.
Co-authored-by: Ori Sky Farrell <ori.sky.farrell+git@gmail.com >
Reviewed-on: #23
Co-authored-by: ori_sky <redacted@ori.mx >
Co-committed-by: ori_sky <redacted@ori.mx >
2024-07-15 11:38:20 -04:00
74a4705e44
Fix windows being picky.
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m28s
Prerelease-22
2024-07-12 13:14:24 -04:00
ae327b96a5
Cleanup
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 2m23s
2024-07-12 01:47:49 -04:00
eb3e037c96
Gradient FillRect + GradientLine
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m31s
Prerelease-21
2024-07-10 20:00:49 -04:00
672a363c53
Fluff the README a little.
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m30s
2024-07-10 15:17:37 -04:00
6a16c3f87e
Update main.cpp
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m31s
2024-07-10 15:05:21 -04:00
23d3d1f378
Implement stub documentation & small refactors on J2D namespace
Run ReCI Build Test / Explore-Gitea-Actions (push) Has been cancelled
2024-07-10 15:05:46 -04:00
523806f9ef
Rounded Fill Rect
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m49s
2024-07-10 14:49:37 -04:00
d118ae2f8e
Accept Color3 & Color4
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 6m0s
2024-07-09 15:10:26 -04:00
5979ae41fc
Performance optimization
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 2m41s
2024-07-08 23:13:45 -04:00
652626b2e4
text
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m20s
Prerelease-19
2024-07-08 19:12:16 -04:00
a8145cb926
Update JGL.cpp
...
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m22s
Setting glLineWidth inside of glBegin causes error 1282.
Prerelease-18
2024-07-07 19:59:10 -04:00
0914b496e7
Refactor & Fix inverted text & More
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m37s
2024-07-07 17:10:51 -04:00
c62b58aa16
Font cache
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m34s
Prerelease-17
2024-07-06 22:51:25 -04:00
11ce9ac5fe
ReCI test
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m18s
2024-07-05 11:44:34 -04:00
7310825ddd
ReCI test
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m28s
2024-07-05 11:38:48 -04:00
513dc1e332
fixed syntax error in reci script
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m2s
2024-07-05 10:56:43 -04:00
63bbb8794e
Wrote local ReCI script for JGL
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 39s
2024-07-05 10:54:59 -04:00
178f328728
ReCI test
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 58s
2024-07-05 09:35:51 -04:00
1c74ee9c71
Add ReCI build test
2024-07-05 09:30:20 -04:00
608e9e29f5
Support for multiple fonts
Prerelease-16
2024-07-05 05:31:25 -04:00
c53fa52f6f
FreeType2
Prerelease-15
2024-06-29 15:07:02 -04:00
7fa75cac54
initial
2024-06-29 12:37:16 -04:00