1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-07-07 12:32:54 +00:00
Jonathan Coates 48c4f397f9
Backport some text rendering code from 1.18
- Move all RenderType instances into a common class.

Cherry-picked from 41fa95bce4408239bc59e032bfa9fdc7418bcb19:
 - Render GL_QUADS instead of GL_TRIANGLES.

 - Remove any "immediate mode" methods from FWFR. Most use-cases can be
   replaced with the global MultiBufferSource and a proper RenderType
   (which we weren't using correctly before!).

   Only the GUI code (WidgetTerminal) needs to use the immediate mode.

 - Pre-convert palette colours to bytes, storing both the coloured and
   greyscale versions as a byte array.

Cherry-picked from 3eb601e55402536d752720e9474ab4ecb27d2f5f:
 - Pass lightmap variables around the various renderers. Fixes #919 for
   1.16!
2022-04-26 17:56:43 +01:00
..
2022-01-01 00:09:34 +00:00
2022-02-28 10:34:41 +00:00
2022-01-01 00:09:34 +00:00
2022-01-01 00:09:34 +00:00
2022-01-01 00:09:34 +00:00
2022-01-01 00:09:34 +00:00