kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #36882
Re: Patch to draw bitmaps in GAL canvases
Hi JP,
Don't know about CAIRO, but a "for xy DrawRectangle" it is too heavy.
>From what I remember from OPENGL_GAL the proper way to develop it would be by adding a new "draw element" using a new shader for draw a texture and by uploading the images data to GPU textures.
I believe the GAL specialists will have a good understanding how to add that feature.
Mário Luzeiro
________________________________________
From: Kicad-developers <kicad-developers-bounces+mrluzeiro=ua.pt@xxxxxxxxxxxxxxxxxxx> on behalf of jp charras <jp.charras@xxxxxxxxxx>
Sent: 26 July 2018 10:46:33
To: Kicad Developers
Subject: [Kicad-developers] Patch to draw bitmaps in GAL canvases
Hi, GAL gurus,
I wrote this fix that add the code to draw bitmaps that can be used in page layout editor and eeschema.
(Currently, this code is missing, and bitmaps used in page layout are shown in legacy canvas, but
not in GAL canvases)
I need a GAL guru to verify this patch (I am not a OpenGL or Cairo specialist).
I do not want to break something.
I am thinking the Cairo code is good.
In opengl canvas, I am using a "brute force" code to draw pixels as rectangles.
I tried other ways, but there did not work.
Thanks.
--
Jean-Pierre CHARRAS
Follow ups
References