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

Introduce OpenGL-based renderer #53

Merged
merged 10 commits into from
Feb 27, 2024
Merged

Introduce OpenGL-based renderer #53

merged 10 commits into from
Feb 27, 2024

Conversation

gabm
Copy link
Owner

@gabm gabm commented Feb 22, 2024

the rendering currently works on the CPU only and is bound by that. Especially rendering 4k annotations is very slow to the point it becomes unusable.

We replace the cairo-based renderer by an OpenGL based renderer with femtovg to get a butter-smooth rendering even for 4k images while maintaining the quality...

solves #47 and #44

Matthias Gabriel added 6 commits February 27, 2024 12:01
add first version

fix scalings

add more rendering

rework structure

add undo/redo

add brush tool

add arrow gl

add rect gl

add text rendering

results

add text rendering

add marker

add crop

add blurring

remove renderer

remove draw functions

clean

refactor

clean

add basic rendering support

add scale_factor

add saving and clipboard

fix crash

clean

refacto

clean

clean up, refactor

refactor

refactor

improve handle sizing

rework scale

remove pangocairo

calc everything in f32

refactor more

refactor

celan up
@gabm gabm merged commit 7ab646b into main Feb 27, 2024
3 checks passed
@gabm gabm deleted the opengl branch February 27, 2024 20:14
@gabm gabm mentioned this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant