Daniel Imms
e07b9684bb
Expose API to clear texture atlas
...
Using canvases on Electron (and plain Chromium I believe), when resuming
from sleep the graphics card may release the texture which results in
the terminal display and char atlas being corrupt. This API allows the
consumer to clear the texture atlas right after resuming, atlas warm up
is not done to simplify this process because the fact that atlases are
shared between multiple terminals complicates this.
Related microsoft/vscode#69665
2020-09-06 14:50:09 -07:00
Puneethnaik
61432ab65d
Made changes according as per Review Comments.
2020-06-09 23:34:53 +05:30
Daniel Imms
9ece6b1fbc
Center webgl text vertically
...
Fixes #2613
2020-04-21 18:20:10 -07:00
Daniel Imms
ca68a38f2c
Merge branch 'master' into 2604_color_naming
2019-12-27 02:58:22 +11:00
Daniel Imms
ee74130806
Standardize how colors helper lib is structured
...
Fixes #2604
2019-12-26 12:12:08 +11:00
Daniel Imms
929914da5d
Merge pull request #2626 from Tyriar/2634_texture_atlas
...
Expose texture atlas as API and use in demo
2019-12-12 09:45:19 +11:00
Daniel Imms
31669cbad6
Expose texture atlas as API and use in demo
...
Part of #2623
2019-12-11 14:26:12 -08:00
Daniel Imms
93cdee3bab
Support hidden in WebGL renderer
...
Fixes #2596
2019-12-09 19:39:59 -08:00
Daniel Imms
1ff1809ab7
Support opaque inverse background in webgl, add test
2019-11-25 15:06:28 -08:00
Daniel Imms
afe6cb6b86
Remove unused imports/functions
2019-11-25 09:12:39 -08:00
Daniel Imms
5aa3157672
Return inverse colors correctly
...
This probably wasn't causing a bug since the opposite values were
being returned, it was wrong and made the code confusing though.
2019-11-14 22:12:36 -08:00
Daniel Imms
c95337a742
Remove unneeded params from webgl funcs
2019-11-14 21:57:15 -08:00
Daniel Imms
2c959dfb2e
Keep a working AttributeData in WebglCharAtlas
2019-11-13 06:52:17 -08:00
Daniel Imms
032185f8b0
Link webgl directly to browser/Color
2019-11-12 10:00:40 -08:00
Daniel Imms
8a0122f482
Add contrast caching to webgl
2019-11-12 09:42:55 -08:00
Daniel Imms
faaa07be68
Add contrast caching for DOM renderer
2019-11-12 09:33:50 -08:00
Daniel Imms
6626f9628d
Use ceil in both
2019-11-11 23:14:27 -08:00
Daniel Imms
2fc1791dde
Fix floor/ceil in luminance methods
2019-11-11 23:11:36 -08:00
Daniel Imms
531409c2c7
Support minimum contrast ratio in webgl
2019-11-11 22:47:26 -08:00
Daniel Imms
db775afd70
Support drawBoldTextInBrightColors in webgl again
...
This broke as part of this PR
2019-11-11 21:35:51 -08:00
Daniel Imms
b1bcb899e0
Fix inverse in webgl, add tests
2019-11-11 21:29:02 -08:00
Daniel Imms
6b7e29ea32
Whitespace to force a webgl release
2019-11-10 12:06:20 -08:00
Daniel Imms
53b0149764
Add selectionOpaque and factor out color into new file
2019-11-10 11:11:26 -08:00
Daniel
b56e29a35b
Import clean up
2019-11-10 00:39:46 -08:00
Daniel
149cc76803
Avoid extra object creation for foreground fill
2019-11-10 00:30:58 -08:00
Daniel
b13e9066bd
Use a switch for color mode conditions
2019-11-10 00:29:50 -08:00
Daniel
a2da8f9fbb
Fix true color glyphs not having background cleared
2019-11-10 00:23:08 -08:00
Daniel
3773b22439
Support true color... mostly
2019-11-09 23:41:00 -08:00
Daniel
2b5d229aab
Reduce size of model to 3 by removing attr
2019-11-09 22:56:42 -08:00
Daniel
e15476704c
Adopt new [bg][fg] map in char cache
2019-11-09 22:43:25 -08:00
Daniel
8f0f8bf827
Remove cache reliance on flags
2019-11-09 22:31:10 -08:00
Daniel
e72ee3c58d
Move webgl drawing over from compat
...
Still need to tackle glyph key
2019-11-09 22:28:59 -08:00
Daniel Imms
40bc62c383
Enable strict null checks in webgl addon
...
Part of #2286
2019-07-04 08:58:42 -07:00
Daniel Imms
38f2e7a81d
Simplify webgl atlas by removing BaseCharAtlas
2019-07-04 08:28:21 -07:00
Daniel Imms
533f3bd0dc
Remove unneeded TODOs
2019-06-23 13:12:49 -07:00
Daniel Imms
5100c7a30d
Use Constants from core
2019-06-16 00:17:14 -07:00
Daniel Imms
7148358acf
Prevent crash on true color, add TODOs for it
2019-06-15 16:40:45 -07:00
Daniel Imms
1ebae41a8b
Pull attribute compat stuff into addon
2019-06-15 16:35:38 -07:00
Daniel Imms
d7daa53b50
Move webgl renderer into addon dir
2019-06-14 23:55:17 -07:00