Kovid Goyal
05363ba501
...
2017-10-25 14:48:28 +05:30
Kovid Goyal
e43a26d64c
Better error message when GLEW initialization fails
2017-10-25 14:32:44 +05:30
Kovid Goyal
e908484491
Also output error number when glewInit() fails
...
glewGetErrorString() is incomplete/not maintained
2017-10-17 16:47:38 +05:30
Kovid Goyal
02dc637ed0
Use the correct blend function for text
2017-10-17 09:51:21 +05:30
Kovid Goyal
c726a15ed4
...
2017-10-04 21:08:28 +05:30
Kovid Goyal
138a37ccac
Start work on the graphics program
2017-10-04 17:22:00 +05:30
Kovid Goyal
ead73c8209
Prepare for two stage rendering of cells
2017-10-04 14:15:51 +05:30
Kovid Goyal
6d960e4130
...
2017-10-01 09:12:14 +05:30
Kovid Goyal
3cbc20005b
Implement sending of image data to GPU
2017-10-01 09:04:46 +05:30
Kovid Goyal
710d00674a
Export the free texture function
2017-09-30 13:51:52 +05:30
Kovid Goyal
2909fddaa2
Split out GL API wrapping code into its own header
2017-09-30 11:48:52 +05:30
Kovid Goyal
457bf8c289
Move gl binding code into its own module
2017-09-15 10:45:17 +05:30
Kovid Goyal
dd8be35922
...
2017-09-15 10:45:17 +05:30
Kovid Goyal
b8acb9b133
Pass cell data to GPU directly
...
Converts update_cell_range() to a simple memcpy(). The GPU has to do
roughly the same amount of work (there is one extra attribute, and one
extra calculation for reverse video).
2017-09-15 10:45:16 +05:30
Kovid Goyal
f324d8ec4f
Fix a couple of bugs in the buffer map API
2017-09-15 10:45:15 +05:30
Kovid Goyal
281cb50780
API to map OpenGL buffers
2017-09-15 10:45:15 +05:30
Kovid Goyal
e8b5a72c96
Remove GIL management code since it is no longer needed
2017-09-15 10:45:11 +05:30
Kovid Goyal
8624dbac2c
Sigh, stupid OpenGL
...
Apparently glGetUniformIndices has different declarations on different
systems.
2017-09-15 10:45:10 +05:30
Kovid Goyal
d7b433f6b7
API for Uniform Block Objects
2017-09-15 10:45:09 +05:30
Kovid Goyal
34f946fd98
Move rendering of selection to GPU
2017-09-15 10:45:09 +05:30
Kovid Goyal
db40445572
Do color mapping on the GPU
2017-09-15 10:45:08 +05:30
Kovid Goyal
00e3ea8c08
Remove unused code
2017-08-22 17:32:40 +05:30
Kovid Goyal
03e0b9de04
Use vertex buffers instead of texture buffers
...
Apparently, integer samplers for textFetch() are broken on some macOS
Intel drivers. Fixes #101
2017-08-22 12:08:35 +05:30
Kovid Goyal
ee3c3e4cb4
Binding for DeleteVertexArray
2017-08-22 00:18:03 +05:30
Kovid Goyal
277c46908d
Remove unused code
2017-08-21 23:55:39 +05:30
Kovid Goyal
afa767c3a8
Support vertex attrib divisors
2017-08-21 23:24:05 +05:30
Kovid Goyal
f35bf7f1ba
Move buffer management into its own class
2017-08-21 22:53:13 +05:30
Kovid Goyal
be06669e8f
Ensure we dont exceed GL_MAX_TEXTURE_BUFFER_SIZE
2017-08-21 20:53:02 +05:30
Kovid Goyal
313253cd95
Add glFlush() and glFinish() bindings
2017-08-21 19:55:28 +05:30
Kovid Goyal
0424d665d5
Function to read data from OpenGL buffers
2017-08-21 15:29:05 +05:30
Kovid Goyal
0bbea6812e
Avoid unnecessary reallocs for cell data
...
Only re-allocate when the buffer size changes
2017-08-21 14:56:29 +05:30
Kovid Goyal
101a50b0ff
Do not use GL_ARB_texture_buffer_object_rgb32
...
This is not available on macOS using Intel graphics cards
2017-08-21 12:46:09 +05:30
Kovid Goyal
a9f3a698d2
Also check for required OpenGL extensions on OS X
2017-08-21 11:21:57 +05:30
Kovid Goyal
892d3df6eb
DRYer
2017-02-24 15:56:04 +05:30
Kovid Goyal
54e79a6901
Add a test for ARB_texture_buffer_object_rgb32
...
There are apparently some drivers on linux that are missing it,
see #54
2017-02-24 15:27:41 +05:30
Seb Ospina
4a5c149205
cursor empty fill and no blink when not focused
...
When several kitty terminals are used, the blink happens in all of them
and the cursor appears filled as if active, it is not intuitive which
terminal is actually expecting user input and which one is not.
Terminals such as xfce4-terminal provide a non-blinking non-filled
cursor to show the user the cursor location while at the same time
showing it is not expecting user input (keyboard is active somewhere
else).
2017-01-14 12:01:05 +00:00
Kovid Goyal
fea0862a35
Do not use GLEW on OS X
2017-01-12 00:50:44 +05:30
Kovid Goyal
063ec7dc02
Fallback implementation for glCopyImageSubData
...
OS X is missing this function so we fallback to a very slow,
GPU->CPU->GPU roundtrip. Fortunately this is needed only rarely so it
should not have a noticeable performance imapct. Le bubbling sigh!
2017-01-11 23:36:43 +05:30
Kovid Goyal
6e003b0901
A few more GIL releases
2016-11-29 22:36:04 +05:30
Kovid Goyal
77aef3b2af
Release GIL during OpenGL draw calls
2016-11-29 21:51:11 +05:30
Kovid Goyal
d192561e18
...
2016-11-29 13:04:08 +05:30
Kovid Goyal
531bb37261
...
2016-11-29 13:00:45 +05:30
Kovid Goyal
3c61147dbb
Get it to build on Travis
2016-11-28 20:52:04 +05:30
Kovid Goyal
c288214a4a
Use a proper check for glNamedBufferData
2016-11-28 20:49:06 +05:30
Kovid Goyal
4b7f097c71
Fallback when glNamedBufferData is not available
2016-11-28 13:47:37 +05:30
Kovid Goyal
b1e39dac02
Start work on rendering window borders
2016-11-28 13:38:13 +05:30
Kovid Goyal
405d6fdf5e
...
2016-11-12 08:59:29 +05:30
Kovid Goyal
aa1302b699
Set texture interpolation to nearest to prevent fringing
2016-11-03 21:26:15 +05:30
Kovid Goyal
1e04b8fdca
Explicitly free sprites on normal program termination
2016-11-03 19:43:11 +05:30
Kovid Goyal
24f9941261
More OpenGL bindings
2016-11-03 16:44:07 +05:30