Commit Graph

  • c384780028 Comments dev bloeys 2024-04-24 21:58:12 +04:00
  • 9493b991d1 Comments and move stuff around bloeys 2024-04-24 21:54:35 +04:00
  • 2d3f89e290 Todos bloeys 2023-02-17 04:43:15 +04:00
  • 45c0858789 Small getDpiScaling update bloeys 2023-02-04 05:21:06 +04:00
  • a2ee354d77 Windows DPI awareness bloeys 2023-02-04 04:42:38 +04:00
  • c6ab25ba41 Upgrade to latest nmage bloeys 2023-02-04 03:17:35 +04:00
  • 6f3e38b41c Correct comment bloeys 2023-01-17 04:28:44 +04:00
  • 7c3b766064 Fix hidden text rendering issue by splitting bg/fg rendering into two buffers and draw calls bloeys 2023-01-17 04:25:25 +04:00
  • d15f80b8a2 Bug note bloeys 2022-09-26 00:27:51 +04:00
  • 86dc7c4b4e Basic drawing of cmd buffer through glyph grid bloeys 2022-09-25 05:18:06 +04:00
  • 32f086242c Continue SGR parse even if reset is found+Heap pprof profile bloeys 2022-09-25 05:03:57 +04:00
  • 81f203a59f Remove prints bloeys 2022-09-25 03:03:08 +04:00
  • cee34de278 Make bg colors work with spaces bloeys 2022-09-25 03:00:44 +04:00
  • a127b72960 Support multiple options in one SGR ansi cmd bloeys 2022-09-25 02:39:50 +04:00
  • 976682d2d2 Don't show text in the cmd entry area bloeys 2022-09-24 07:15:16 +04:00
  • b6c468a23b Rendering from an in-mem glyph grid bloeys 2022-09-24 07:05:21 +04:00
  • b5797c69f9 Rename p *nterm to nt *nterm bloeys 2022-09-24 05:09:39 +04:00
  • c0c5baa98c Start supporting setting bg color from ansi code bloeys 2022-08-02 06:08:07 +04:00
  • d296fb2dd6 Simplify glyph shader bloeys 2022-08-02 05:45:14 +04:00
  • 8863a289d7 Ability to set cell background colors bloeys 2022-08-02 05:32:56 +04:00
  • 054eaebe9a Comment out saving debug atlas bloeys 2022-08-02 03:32:02 +04:00
  • 9d7d283ca7 Optimize getCharGridPosX for very long lines bloeys 2022-08-02 03:27:54 +04:00
  • 0630092ceb Rename paras to lines bloeys 2022-08-02 02:46:57 +04:00
  • e388e16e71 Use binary search in GetParaFromTextBufIndex bloeys 2022-08-01 07:14:35 +04:00
  • 7bb7e25e0d Handle long lines and partially visibile paragraphs bloeys 2022-08-01 06:53:07 +04:00
  • dd61b2a871 Rendering based on lines bloeys 2022-08-01 05:22:11 +04:00
  • 031f80f438 Rename struct program->nterm+improve comments bloeys 2022-08-01 04:22:05 +04:00
  • f3a9a70c73 Fix scrolling back causing empty lines sometimes bloeys 2022-08-01 03:41:14 +04:00
  • 05fb837400 Make SepLinePos part of program struct bloeys 2022-08-01 03:30:46 +04:00
  • 06599748eb Alhamdullah working scrolling that respects wrapped text bloeys 2022-08-01 03:27:54 +04:00
  • 4df40db7f7 Somewhat doing proper scrollback with wrapping bloeys 2022-07-29 08:51:50 +04:00
  • 10372dd743 Fix paragraph viewing bugs+indexing helpers for ring buffer bloeys 2022-07-24 20:56:20 +04:00
  • 75c33325f7 Ability to get pointers from ring buffer bloeys 2022-07-24 18:21:58 +04:00
  • 854fb7ac64 Starting using lines to render+rect glyph draw funcs bloeys 2022-07-24 07:37:43 +04:00
  • 4c458c3c55 Make ParseLines much faster using bytes.IndexByte bloeys 2022-07-24 05:37:20 +04:00
  • bea69429f9 Detect lines as they come in+sprintf in assert so it gets optimized away on release mode :) bloeys 2022-07-24 05:06:07 +04:00
  • 46f958c935 Remove insert/delete from ring+track total written elements to ring bloeys 2022-07-24 03:21:09 +04:00
  • a531d5904b Fix bug in ViewsFromTo where from might clip first value bloeys 2022-07-24 02:38:12 +04:00
  • 641e3eda98 Correct and simplify textBuf drawing using the new ViewsFromTo+ new ring funcs bloeys 2022-07-23 03:08:44 +04:00
  • 76992472d4 Correct arg quote handling in windows+place return at end of cmdBuf bloeys 2022-07-22 20:07:30 +04:00
  • b6f39bd1ba Use Esc[ bytes for ansi detection+move ansi to its own package bloeys 2022-07-22 19:58:20 +04:00
  • 0d2e747739 Optimize idle cpu usage by implementing our own fps limiter bloeys 2022-07-22 18:52:35 +04:00
  • 90b0bc0ae9 Scroll by lines that respects ring buf+iterator prevN/nextN+it.Len bloeys 2022-07-20 02:18:36 +04:00
  • b4f06bda54 Ring buffer iterator bloeys 2022-07-19 21:21:54 +04:00
  • 0fdebbeafe Comment bloeys 2022-07-19 18:16:49 +04:00
  • 874c62d579 Scroll by lines+mutex when writing to text buffer bloeys 2022-07-19 18:10:23 +04:00
  • e2feafa89d New ansi system to support anything later+ 8/16 bit color bloeys 2022-07-17 01:29:48 +04:00
  • 70cf0e6008 Implement NextAnsiCode bloeys 2022-07-16 22:21:07 +04:00
  • 648a9c7500 Avoid unnecessary []byte->string conversions bloeys 2022-07-16 21:03:57 +04:00
  • 6f1fc396cb Use a byte buffer for textBuf bloeys 2022-07-16 21:01:29 +04:00
  • 3fb4ce4c06 Super basic ansi foreground color code processing bloeys 2022-07-16 00:20:41 +04:00
  • 1847289fe5 Wrapped text drawing bloeys 2022-07-15 21:09:32 +04:00
  • cdcfe4c13d Use ring.Buffer in textBuf+display only needed chars+show bottom of buffer bloeys 2022-07-15 20:54:23 +04:00
  • 4992210bdb Finish ring buffer bloeys 2022-07-15 18:48:45 +04:00
  • 65e393542f Starting ring buffer implementation bloeys 2022-07-15 17:36:46 +04:00
  • cd249fcd54 Fixes to write cmdBuf bloeys 2022-07-15 15:37:29 +04:00
  • 7f7f90d4c6 Syntax highlighting setup bloeys 2022-07-15 15:27:39 +04:00
  • ecd6bdae3e Tidy bloeys 2022-07-15 14:24:36 +04:00
  • 744e9abfb3 Home/End bloeys 2022-07-15 13:41:19 +04:00
  • 82acbe939e Proper cursor move and insert/delete operations at cursor bloeys 2022-07-15 13:38:33 +04:00
  • 1122d27f57 Remove some stuff bloeys 2022-07-12 19:09:11 +04:00
  • 1572ba4743 Std out/in/err of processes bloeys 2022-07-12 19:06:03 +04:00
  • dd09750b04 Simple scroll+better cmd running bloeys 2022-07-12 17:22:04 +04:00
  • 755770d3be Basic cmd running bloeys 2022-07-12 17:12:20 +04:00
  • 2821505d47 Cmd buffer and text buffer bloeys 2022-07-12 16:58:23 +04:00
  • 68962238e2 Ability to input text and show cursor+return last char pos from glyph renderer bloeys 2022-07-12 13:10:20 +04:00
  • 8dfedbe030 Debug around pprof bloeys 2022-07-12 11:21:47 +04:00
  • 75a4726384 Use nmage v0.12.15 bloeys 2022-07-11 11:59:29 +04:00
  • d70a31dd26 Use bufferSubData and dynamic buffer in when drawing glyphs bloeys 2022-07-11 11:57:41 +04:00
  • 869bbe3efd Update nmage which optimizes imgui render bloeys 2022-07-11 11:42:54 +04:00
  • 38dafbfd65 Fast path shaping non-joining chars bloeys 2022-07-11 11:29:12 +04:00
  • 851387d6d8 Fix calcNeededAtlasSize bloeys 2022-07-11 11:13:42 +04:00
  • 908ff7e562 Use accurate space advance+correct grid drawing bloeys 2022-07-11 09:41:58 +04:00
  • dec853adca New line height in atlas based on character lengths bloeys 2022-07-10 21:49:33 +04:00
  • f21e1ec201 Fix horizontal positioning by making sure space advance is int bloeys 2022-07-10 21:43:04 +04:00
  • 254113c12e Much tighter atlas packing bloeys 2022-07-10 21:27:23 +04:00
  • c84702270e Horizontal position issues was because of the font! Also: turn GlyphFromRunes into a function and use g.Advance to have basic support for variable width fonts bloeys 2022-07-10 17:24:06 +04:00
  • dbd77e9ce7 Ensure chars don't overlap in atlas bloeys 2022-07-10 14:01:44 +04:00
  • 7fa94806a4 Accurate vertical positioning of text+return fractional bearing/descent bloeys 2022-07-10 12:42:31 +04:00
  • cb2ead0907 Avoid heap allocating in GetTextRuns+Perf notes+pprof by default bloeys 2022-07-08 08:44:57 +04:00
  • d8289139d3 Make TextRun struct to clean GetTextRuns bloeys 2022-07-08 08:09:12 +04:00
  • 9388bc0c92 Advance by char width+better debug tools bloeys 2022-07-08 07:58:08 +04:00
  • 2da4b7a53d Disable DepthTest when drawing glyphs+move shared glyph draw logic bloeys 2022-07-08 06:33:20 +04:00
  • 2b71337c4a Remove one pixel offset bloeys 2022-07-07 15:38:06 +04:00
  • 16bfe7f05b Use per-char width instead of fixed advance in font atlas bloeys 2022-07-07 15:33:51 +04:00
  • d23e833b54 Use texelFetch+debug grid in atlas bloeys 2022-07-06 17:53:55 +04:00
  • afcd514f98 Proper runs and glyph shaping. Arabic rendering properly! bloeys 2022-07-05 10:42:51 +04:00
  • ec07b8a256 Parse arabic-shaping for join type information bloeys 2022-07-05 08:56:49 +04:00
  • 0368ee9caf Alhamdullah basic arabic rendering :D bloeys 2022-07-05 08:20:45 +04:00
  • ed1ec0d67e Basic run extraction bloeys 2022-07-05 07:29:33 +04:00
  • 603409e58e Detect script of runes bloeys 2022-07-05 07:12:11 +04:00
  • c40d1dfdf1 Fix decoding decomp info+include rune equivalence bloeys 2022-07-05 06:39:32 +04:00
  • a762283b1d Alhamdullah start proper unicode support+context aware rendering bloeys 2022-07-04 10:16:03 +04:00
  • 0ff7f051f6 Handle tabs bloeys 2022-07-04 02:45:59 +04:00
  • c82fd6aac7 Correct alpha handling in glyph shader bloeys 2022-07-04 01:56:47 +04:00
  • 3d7d09744d Don't allocate when drawing by reusing glyp rend buffer bloeys 2022-07-04 01:10:37 +04:00
  • edd8d5b71b Remove commented out code bloeys 2022-07-03 22:37:22 +04:00
  • 115310cff7 Use vec2 for glyph model scale bloeys 2022-07-03 22:18:37 +04:00
  • afb5453a3a Make SizeU/SizeV uniforms instead of per-vertex+reduce glyph info bloeys 2022-07-03 22:08:40 +04:00
  • 9c09814322 Nice fonts without bleeding at all sizes using tiled atlas bloeys 2022-07-03 12:27:16 +04:00