Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cairo support #31

Merged
merged 23 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fa4e16f
nvg: static draw_image accept native NVGcontext*
ringlej Sep 19, 2023
3328b81
Initial cairo support
ringlej Jul 15, 2023
be9bba5
debug script ids
ringlej Sep 16, 2023
d9a8c18
cairo: Implement pattern stack
ringlej Sep 16, 2023
4b7b99c
cairo: fix image pattern repeat
ringlej Sep 16, 2023
90cfc93
cairo: Fix close path on draw_triangle, draw_quad, draw_sector
ringlej Sep 16, 2023
b6aed81
cairo: script_ops_scissor
ringlej Sep 16, 2023
90100ff
cairo: script_ops_stroke_linear
ringlej Sep 16, 2023
c13fcf6
cairo: script_ops_stroke_radial
ringlej Sep 16, 2023
631993c
cairo: script_ops_stroke_image
ringlej Sep 16, 2023
e2af638
cairo: script_ops_fill_stream
ringlej Sep 18, 2023
2cfa437
cairo: script_ops_stroke_stream
ringlej Sep 18, 2023
9f680e8
cairo: script_ops_quadratic_to
ringlej Sep 19, 2023
a83894a
cairo: Manage dynamic array of image patterns with an id lookup
ringlej Sep 19, 2023
48d2b2b
cairo: Manage dynamic array of fonts with an id lookup
ringlej Sep 21, 2023
a585064
cairo: Add support for 8, 15, 16, 24 and 32 bits per pixel video formats
ringlej Sep 21, 2023
cfff8ac
log_script_ops_draw_sprites: Add logging for the sprite array
ringlej Sep 25, 2023
6b9b5df
cairo: script_ops_draw_sprites
ringlej Sep 25, 2023
99899f0
cairo: script_ops_draw_ellipse
ringlej Sep 25, 2023
6a2e70f
cairo: script_ops_arc
ringlej Sep 25, 2023
4cc9cc4
cairo: script_ops_arc_to
ringlej Sep 26, 2023
288dc5d
Allow running scenic_driver_local under a debugger
ringlej Sep 25, 2023
68b0c39
Use width/height provided by scenic opts and center on screen if smaller
ringlej Sep 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ else ifeq ($(SCENIC_LOCAL_TARGET),drm)
else
CFLAGS += -DSCENIC_GLES3
endif
else ifeq ($(SCENIC_LOCAL_TARGET),cairo)
LDFLAGS += `pkg-config --static --libs freetype2 cairo`
CFLAGS += `pkg-config --static --cflags freetype2 cairo`
LDFLAGS += -lm
CFLAGS ?= -O2 -Wall -Wextra -Wno-unused-parameter -pedantic
CFLAGS += -std=gnu99

DEVICE_SRCS += c_src/device/cairo.c
FONT_SRCS += c_src/font/cairo_font_ops.c
IMAGE_SRCS += c_src/image/cairo_image_ops.c
SCENIC_SRCS += c_src/scenic/ops/cairo_script_ops.c
else
$(info ------ no SCENIC_LOCAL_TARGET set ------)
$(info If you get here, then you are probably using a custom Nerves system)
Expand Down
Loading