Commit Graph

1319 Commits

Author SHA1 Message Date
Kovid Goyal
8cd1f76d2b Framework for testing loading of images 2017-09-30 13:51:50 +05:30
Kovid Goyal
f0ee728b94 Fix failing flake 2017-09-30 13:51:50 +05:30
Kovid Goyal
b4a96428f3 DRYer 2017-09-30 13:51:50 +05:30
Kovid Goyal
7d6d8efc26 ... 2017-09-30 13:51:49 +05:30
Kovid Goyal
f3ee3784f7 Fix longjmp handling when calling libpng 2017-09-30 13:51:49 +05:30
Kovid Goyal
7da08d37d2 File to host graphics tests 2017-09-30 13:51:49 +05:30
Kovid Goyal
23c2bdb6f0 Dont silently wrap too large ids, instead ignore the graphics command 2017-09-30 13:51:49 +05:30
Kovid Goyal
7736629bc4 Fix graphics id not going upto UINT32_MAX 2017-09-30 13:51:49 +05:30
Kovid Goyal
204bd97198 Nicer error responses on bad graphics data 2017-09-30 13:51:49 +05:30
Kovid Goyal
2786976c63 ... 2017-09-30 13:51:49 +05:30
Kovid Goyal
7567f96a34 Python API to get image data from gr. manager for tests 2017-09-30 13:51:49 +05:30
Kovid Goyal
cf33ef8666 ... 2017-09-30 13:51:49 +05:30
Kovid Goyal
9860ed544f Respond to load commands when an id is present 2017-09-30 13:51:49 +05:30
Kovid Goyal
9601ed79f1 Travis build fixes 2017-09-30 13:51:48 +05:30
Kovid Goyal
e5b5fb2773 fmt defaults to RGBA and ignore add commands for images with no width/height 2017-09-30 13:51:48 +05:30
Kovid Goyal
01fb9436dd Code to read compressed and PNG encoded image data 2017-09-30 13:51:48 +05:30
Kovid Goyal
df1e06ec2c DRYer 2017-09-30 13:51:48 +05:30
Kovid Goyal
c973a7326e Dont link against rt on macOS 2017-09-30 13:51:48 +05:30
Kovid Goyal
9facc5f7d3 DRYer 2017-09-30 13:51:48 +05:30
Kovid Goyal
66bce4b8cd Code to read image data 2017-09-30 13:51:48 +05:30
Kovid Goyal
c567acb4e5 Work on loading images 2017-09-30 13:51:48 +05:30
Kovid Goyal
8418cc04c1 Start work on the graphics manager 2017-09-30 13:51:48 +05:30
Kovid Goyal
e52818d54c Move the screen datatype decls into screen.h 2017-09-30 13:51:47 +05:30
Kovid Goyal
15e03f74f4 Also report the payload for graphics commands 2017-09-30 13:51:47 +05:30
Kovid Goyal
56c2e0c26a Report incomplete graphics commands as parser errors 2017-09-30 13:51:47 +05:30
Kovid Goyal
83de392b39 ... 2017-09-30 13:51:47 +05:30
Kovid Goyal
3c89f80603 More tests for the graphics control code parser 2017-09-30 13:51:47 +05:30
Kovid Goyal
8e64895c23 Framework for testing graphics command parsing 2017-09-30 13:51:47 +05:30
Kovid Goyal
967e65e150 Use a static b64 decoding table 2017-09-30 13:51:47 +05:30
Kovid Goyal
9f5d731d8d ... 2017-09-30 13:51:47 +05:30
Kovid Goyal
ef312a3d1c ... 2017-09-30 13:51:47 +05:30
Kovid Goyal
705298737a Fix off by one 2017-09-30 13:51:47 +05:30
Kovid Goyal
a7b95f73be Cleanup handling of ,; in the GR control code parser 2017-09-30 13:51:46 +05:30
Kovid Goyal
a9ed44eecc Implement decoding of graphics command payload 2017-09-30 13:51:46 +05:30
Kovid Goyal
b8d9629ee4 Start work on parsing of graphics escape code 2017-09-30 13:51:46 +05:30
Kovid Goyal
5b24d51fcd Fix failing screen resize test
Take into account the index that now happens to ensure that
the cursor is on a new line.
2017-09-30 13:51:35 +05:30
Kovid Goyal
e832524bfc Ensure cursor is on a blank line after a resize 2017-09-30 13:25:31 +05:30
Kovid Goyal
a783325464 Nicer parsing of dependencies file 2017-09-30 12:25:03 +05:30
Kovid Goyal
af99c172fe Use dependency mapping when doing incremental builds 2017-09-30 12:18:08 +05:30
Kovid Goyal
b5b9a7ba6d Fix compilation with clang 2017-09-30 11:56:30 +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
7863857b2c Use a UBO for all cell program uniforms 2017-09-30 11:44:44 +05:30
Kovid Goyal
b28cec3236 Give Face objects a nice __repr__ 2017-09-30 08:01:04 +05:30
Kovid Goyal
55498b5a44 Avoid unnecessary calls to glBindTexture 2017-09-30 07:00:46 +05:30
Kovid Goyal
8d03d7216f Do not crash when failing to render a glyph, instead render the missing glyph and print an error msg to stderr 2017-09-29 11:57:17 +05:30
Kovid Goyal
7ddaa70498 Cleanup freetype library on exit 2017-09-28 11:22:18 +05:30
Kovid Goyal
150ffab72d finalize the fontconfig library on exit 2017-09-28 11:06:56 +05:30
Kovid Goyal
cda385b37c Fix #132 2017-09-28 10:01:08 +05:30
Kovid Goyal
28146a4e9c Proper fix for sending constant uniform to cell program 2017-09-28 09:55:17 +05:30
Kovid Goyal
0ad9149ca8 Avoid one more call to set uniforms 2017-09-26 11:27:04 +05:30