Commit Graph

31 Commits

Author SHA1 Message Date
Kovid Goyal
df4df76d24 Switch to using an opaque block cursor
The text is rendered in the background color on top of the opaque
block cursor. We use the background color since applications can change
both cursor and background colors, so it is up to the application to
ensure the colors have good contrast. Fix #126
2017-09-17 13:03:02 +05:30
Kovid Goyal
a92b3c605f Move the text attributes out of the char type
This means that more text attributes can be added in the future (there
are 8 bits available) and there is no need to keep bit twiddling when
accessing the chars themselves. Also means less data needs to be sent to
the GPU. Cell size does not change since there were currently 2 unused
bytes because of alignment.
2017-09-16 11:02:42 +05:30
Kovid Goyal
9989363ecd Make the URL highlight color configurable 2017-09-15 10:45:27 +05:30
Kovid Goyal
53ea5c678d Highlight links with a underline on mouseover 2017-09-15 10:45:27 +05:30
Kovid Goyal
745b6222c2 Start work on migrating the mouse handlers to C 2017-09-15 10:45:25 +05:30
Kovid Goyal
13ac050bf8 Move cursor render call to C 2017-09-15 10:45:24 +05:30
Kovid Goyal
e6df82b255 Move the char grid render call into C 2017-09-15 10:45:24 +05:30
Kovid Goyal
943a1575ad Move render call for tab bar to C code 2017-09-15 10:45:24 +05:30
Kovid Goyal
2e0cbb88bb Call draw_borders() directly from C 2017-09-15 10:45:23 +05:30
Kovid Goyal
ccf5391b45 Move visual bell tracking into the Screen object 2017-09-15 10:45:23 +05:30
Kovid Goyal
367ffb602c Color table buffer has to be bound before each render
Other wise the last created child's buffer is always used
2017-09-15 10:45:23 +05:30
Kovid Goyal
4e8ade53d8 Fix compilation on apple 2017-09-15 10:45:23 +05:30
Kovid Goyal
7f6befe4f9 Remove the python OpenGL wrapper as it is no longer needed 2017-09-15 10:45:23 +05:30
Kovid Goyal
86893db46b Fix re-alloc of sprite texture 2017-09-15 10:45:22 +05:30
Kovid Goyal
3a883ad436 Move the sprites GPU code to shaders.c 2017-09-15 10:45:22 +05:30
Kovid Goyal
cc8271b766 Fix compilation on macOS 2017-09-15 10:45:22 +05:30
Kovid Goyal
1246032b67 Remove unused code 2017-09-15 10:45:22 +05:30
Kovid Goyal
9eea178890 Make --debug-gl have zero runtime cost when absent 2017-09-15 10:45:22 +05:30
Kovid Goyal
44f456089b Migrate the cell program 2017-09-15 10:45:22 +05:30
Kovid Goyal
ff6c366b8a Remove unused code 2017-09-15 10:45:22 +05:30
Kovid Goyal
6701d52e26 Simplify error handling of open gl code 2017-09-15 10:45:22 +05:30
Kovid Goyal
11e147c718 ... 2017-09-15 10:45:21 +05:30
Kovid Goyal
2a24199c90 Migrate the borders program 2017-09-15 10:45:21 +05:30
Kovid Goyal
3ddf963c5c API to map VAO buffers 2017-09-15 10:45:21 +05:30
Kovid Goyal
778c3c075a Migrate the cursor program 2017-09-15 10:45:21 +05:30
Kovid Goyal
d2b3052918 Code to get uniform locations 2017-09-15 10:45:21 +05:30
Kovid Goyal
8ce2794a8a More work on migrating shader code 2017-09-15 10:45:20 +05:30
Kovid Goyal
c1dc4d0575 ... 2017-09-15 10:45:20 +05:30
Kovid Goyal
9c184c794a Migrate function to compile programs 2017-09-15 10:45:20 +05:30
Kovid Goyal
d3f2620caf Migrate GL setup and error handling code 2017-09-15 10:45:20 +05:30
Kovid Goyal
a1c9c90fc8 Start work on moving shaders.py to C 2017-09-15 10:45:20 +05:30