← Back to team overview

kicad-developers team mailing list archive

Re: Patch to draw bitmaps in GAL canvases

 

I know nothing about kicad's GAL, but I'd use one rectangle and give it a texture that is the bitmap. It's been too long since I've messed with it for me to provide an example, but maybe something like this page would help? https://open.gl/textures

On 7/26/2018 5:46 AM, jp charras wrote:
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.


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

References