← Back to team overview

kicad-developers team mailing list archive

Re: Patch to draw bitmaps in GAL canvases

 

On 27/07/18 15:31, jp charras wrote:
> Le 27/07/2018 à 15:20, Tomasz Wlostowski a écrit :
>> On 27/07/18 13:28, jp charras wrote:
>>> Le 26/07/2018 à 18:13, Mário Luzeiro a écrit :
>>>> Hi JP,
>>>> Don't know about CAIRO, but a "for xy DrawRectangle" it is too heavy.
>>>
>>> In fact "for xy DrawRectangle" is used only to convert the wxWidgets internal image format to the
>>> Cairo internal image format.
>>> The cost is low, because it is executed only once for a new bitmap.
>>>
>>>> >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.
>>>
>> Hi JP,
>>
>> I'll have a look.
>>
>> Tom
>>
> 
> Thanks.
> 
Hi again,

I've optimized the OpenGL bitmap drawing code (now it caches the bitmaps
and uses textures to draw them). Both mine and your patch are now in the
master branch.

Thanks!
Tom


Follow ups

References