Daniel Imms
805b41b80f
Keep merging default texture size pages
2022-11-01 10:26:48 -07:00
Daniel Imms
c9bacc80d7
Merge when max atlas pages is reached
2022-11-01 10:08:00 -07:00
Daniel Imms
54ee698ba6
Basic merging working
...
Part of #4243
2022-11-01 09:07:38 -07:00
Daniel Imms
295e3c7f0c
Merge pull request #4249 from Tyriar/4241_fill
...
Remove fill polyfill
2022-10-31 12:34:17 -07:00
Daniel Imms
d219da480c
Remove fill polyfill
...
Fixes #4241
2022-10-31 12:24:59 -07:00
Daniel Imms
02fa38c334
Merge pull request #4244 from Tyriar/multi_page_atlas
...
Support multiple texture atlas pages
2022-10-30 18:30:11 -07:00
Daniel Imms
4d05905736
Polish
2022-10-30 18:11:24 -07:00
Jason Lin
81a3c80bc4
polish
2022-10-31 11:07:42 +11:00
Jason Lin
f6fabebf8d
polish
2022-10-31 11:07:42 +11:00
Jason Lin
b735e7f1c4
polish
2022-10-31 11:07:42 +11:00
Jason Lin
839271096e
Don't reset the url
2022-10-31 11:07:42 +11:00
Jason Lin
6a087e9896
'CSI 0 m' should clear the extended attribute
...
This change also removes `_currentLinkId` from `InputHandler` and uses
`_curAttrData.extended.urlId` directly so that we don't need to worry
about keep them in sync any more.
2022-10-31 11:07:42 +11:00
Daniel Imms
dda3f5f545
Properly dispose of atlas event
2022-10-30 15:00:27 -07:00
Daniel Imms
04041d030f
Generate bitmaps for all atlas pages
2022-10-30 14:56:27 -07:00
Daniel Imms
095ceda639
Show canvas atlas pages in demo
2022-10-30 14:53:01 -07:00
Daniel Imms
0aa9fc5bb8
Add border around atlas pages
2022-10-30 12:00:55 -07:00
Daniel Imms
e092ca70e1
Simplify page reuse/creation
2022-10-30 10:33:38 -07:00
Daniel Imms
0592837620
Fill pages to capacity
2022-10-30 10:21:17 -07:00
Daniel Imms
fc03a1698b
Share page creation code
2022-10-30 10:16:48 -07:00
Daniel Imms
c9ef4a8eb9
Increase texture size as it nears the maximum texture unit
...
#4243 would be a better, but more complicated, solution to this
2022-10-30 09:20:17 -07:00
Daniel Imms
846573bb01
Support up to maximum texture units (eg. 16 on my machine)
2022-10-30 03:16:29 -07:00
Daniel Imms
0f70055d76
Add CJK test button
2022-10-30 03:04:58 -07:00
Daniel Imms
3f2ed42e73
Fix glyphs getting clipped on bottom row
2022-10-29 20:57:42 -07:00
Daniel Imms
2a3c2d9520
Make better use of atlas space
2022-10-29 20:33:27 -07:00
Daniel Imms
5e95475d6b
Use current row when filling in old atlas pages
2022-10-29 19:50:44 -07:00
Daniel Imms
57a65e0858
Continute filling atlas page after new pages are added
2022-10-29 19:44:12 -07:00
Daniel Imms
bfa9dd5060
Clean up
2022-10-29 18:09:18 -07:00
Daniel Imms
04f79aa7b4
Share page texture binding code
2022-10-29 14:33:50 -07:00
Daniel Imms
86ccd709bf
Avoid setting uniforms every frame
2022-10-29 14:26:51 -07:00
Daniel Imms
c257a7247e
Only upload textures that change
2022-10-29 13:27:33 -07:00
Daniel Imms
0a49a5dde1
Make texture atlas presentation nicer for multiple pages
2022-10-29 13:01:41 -07:00
Daniel Imms
c6e3cc007c
Stop atlas flickering on demo
2022-10-29 12:49:11 -07:00
Daniel Imms
713baeb64d
Base atlas page size on device pixel ratio
2022-10-29 12:45:20 -07:00
Daniel Imms
efba2c9040
Get pages working, add to demo
2022-10-28 19:30:42 -07:00
Daniel Imms
67ef455515
Get a second page kind of working
2022-10-28 19:20:26 -07:00
Daniel Imms
975d52fab9
Remove deprecated prop
2022-10-28 19:12:01 -07:00
Daniel Imms
6b37187b4d
Create AtlasPage
2022-10-28 19:08:33 -07:00
Daniel Imms
84ab6a49c4
Bring texturePage partially to atlas
2022-10-28 18:56:49 -07:00
Daniel Imms
4ebc75aae0
Merge remote-tracking branch 'upstream/master' into multi_page_atlas
2022-10-28 18:42:46 -07:00
Daniel Imms
54335ef54a
Create texture page attribute
2022-10-28 18:16:55 -07:00
Daniel Imms
43d8db77f9
Merge pull request #4239 from Tyriar/4224_mcr_canvas_ydisp
...
Correctly offset mcr check on canvas renderer
2022-10-28 14:10:25 -07:00
Daniel Imms
5a4a46f130
Remove promise and fetch shims and use await for fetch
...
Fixes #4222
2022-10-28 14:09:39 -07:00
Daniel Imms
b0672aac09
Correctly offset mcr check on canvas renderer
...
Fixes #4224
2022-10-28 14:02:58 -07:00
Daniel Imms
fcf378b172
Merge pull request #4237 from Tyriar/italic_bounds
...
Fix clipping of italic emoji
2022-10-28 09:12:07 -07:00
Daniel Imms
25551a4b98
Merge pull request #4236 from Tyriar/console_image
...
Add console.image helper
2022-10-28 09:04:37 -07:00
Daniel Imms
67b3faef01
Use bbox padding and width consistently
2022-10-28 09:01:22 -07:00
Daniel Imms
8b545a3fe4
Fix bbox right scan start offset
...
This causes particularly wide glyphs like italic emoji to get clipped
even if they're within the allowed padding.
Fixes #4229
2022-10-28 08:57:41 -07:00
Daniel Imms
4f4ce0146d
Add console.image helper
...
This is useful for printing canvases that aren't attached to the DOM
2022-10-28 08:54:57 -07:00
Daniel Imms
e7b347a2ef
Merge pull request #4235 from Tyriar/opt_server_buffer
...
Avoid GC pressure from server data buffer
2022-10-27 22:41:07 -07:00
Daniel Imms
7908b7cf62
Avoid GC pressure from server data buffer
2022-10-27 22:30:46 -07:00