1
0
Fork 0
Commit Graph

19 Commits

Author SHA1 Message Date
Hans-Joerg Schurr e39473e4fb Return error if the pointer for a return value is NULL 2021-06-05 23:14:27 +02:00
Hans-Joerg Schurr f4b8574728 Add API to inspect paths 2021-04-26 22:57:18 +02:00
Hans-Joerg Schurr 50305e7f5e Use color expressed as a struct
This is nicer for the external API.
2021-04-25 20:53:40 +02:00
Hans-Joerg Schurr a22aea9293 Implement API to inspect styles
- Expose necessary stucts and enums.
- Add functions to get number of styles, shapes, paths.
- Add functions to retrieve style information.
2021-04-25 20:32:26 +02:00
Hans-Joerg Schurr d4208de6f9 Add documentation on the cairo interface and final newline 2020-05-05 21:33:48 +02:00
Hans-Joerg Schurr 504c5fe606 Cleanup and extension of CAIRO renderer
- Add support for LODs
- Error handling
- Nicer API
- Extend command line tool
- Marking unsupported features
2020-04-28 21:30:58 +02:00
Hans-Joerg Schurr 76afd0b903 Implement basic cairo rendering loop 2020-04-27 19:54:27 +02:00
Hans-Joerg Schurr 6b14f544e7 Fix warning strict alignment break 2020-04-24 23:00:08 +02:00
Hans-Joerg Schurr 69229b956f Fix parsing of unsigned values, transformation matrix, export commands
- Parse unsigned values using uint8_t instead of signed char
- Correctly parse floats and give transformation matrix entries good names
- Fix default matrix (for translation, identity)
- Export `path_command_at` in INTERNAL_DATSTRUCTURES mode
2020-04-23 00:40:33 +02:00
Hans-Joerg Schurr a5c305d98c Continue test rasterizer
- Support for creating .cquery file via "make cquery"
- Render some path for testing purposes
- Fix bugs in path parser
2020-04-01 23:24:51 +02:00
Hans-Joerg Schurr 6818012f69 Start implementation of cairo rasterizer (for testing purposes) 2020-03-31 22:16:17 +02:00
Hans-Joerg Schurr e3f971c636 Add parser for shapes, fix bugs, and add some debug prints 2020-03-29 19:40:55 +02:00
Hans-Joerg Schurr 4ed81b2aa1 Add debug prints 2020-03-22 17:14:23 +01:00
Hans-Joerg Schurr fd0148ec21 Add parser for path
- Adds parser for path
- Fix bug: read wrong number of bytes for matrix
- Fix bug: checked wrong number of bytes read by fread in many places
- Rename _read macros to _decode
2020-03-22 17:12:39 +01:00
Hans-Joerg Schurr 2913fd751f Finish parsing of styles 2020-03-18 22:39:25 +01:00
Hans-Joerg Schurr cb5c2ccab4 Add partial code for gradients and tranformations 2020-03-17 22:03:12 +01:00
Hans-Joerg Schurr 6486b516db Implement parsing of colors for styles
- Change error reporting format
- Add color type and helper macros
- Add parser for all styles that are solid colors
2020-02-25 21:10:42 +01:00
Hans-Joerg Schurr e79d365498 Add parsing of magic number 2020-02-21 20:34:29 +01:00
Hans-Joerg Schurr 8f6d3f6897 Add build system
This adds a autoconfig base build system and some test files.
To build:

1) autoreconf
2) ./configure
3) make
2020-02-21 19:12:20 +01:00