@mritter
That doesn't work as it multiplies the src colour by the src alpha (you may not notice this for images with a very on / off alpha as the 0.0 areas wouldn't show when you alpha blitted this into a window but it would notice for a 0.5 (0x80) transparency ).
Scaling with hardware acceleration but without blending
- broadblues
- AmigaOS Core Developer
- Posts: 600
- Joined: Sat Jun 18, 2011 2:40 am
- Location: Portsmouth, UK
- Contact:
-
- Posts: 112
- Joined: Fri Feb 14, 2014 10:29 pm
Re: Scaling with hardware acceleration but without blending
Yes, I have and it shows the same behaviour. It would have been my next question how to get transformation without the blendingbroadblues wrote: Have you experimented with triangle mode in the CompositeTags function ? Not sure if that blends in the same way ot not ( it may do).
So who is qualified to give a definitive answer here?I'm not sure about the old ScaleBitmap API it certainly still works, but whether it's hardware accelerated I'm not sure. It might even depend on which hardware.
- broadblues
- AmigaOS Core Developer
- Posts: 600
- Joined: Sat Jun 18, 2011 2:40 am
- Location: Portsmouth, UK
- Contact:
Re: Scaling with hardware acceleration but without blending
An OS dev with their fingers in graphic.library Hans de Reuter, SSolie, Rene O or some such....So who is qualified to give a definitive answer here?
-
- Posts: 112
- Joined: Fri Feb 14, 2014 10:29 pm
Re: Scaling with hardware acceleration but without blending
*bump*An OS dev with their fingers in graphic.library Hans de Reuter, SSolie, Rene O or some such....
Re: Scaling with hardware acceleration but without blending
What was the question exactly?softwarefailure wrote:*bump*An OS dev with their fingers in graphic.library Hans de Reuter, SSolie, Rene O or some such....
ExecSG Team Lead
-
- Posts: 112
- Joined: Fri Feb 14, 2014 10:29 pm
Re: Scaling with hardware acceleration but without blending
When used with 32-bit ARGB bitmaps, does graphics/BitMapScale() always operate in software or will it use the GPU for scaling if the bitmap is in video memory?
Re: Scaling with hardware acceleration but without blending
The answer is that it depends. There are all sorts of optimizations depending on the circumstances and whether the underlying hardware driver can do the scaling or not.softwarefailure wrote:When used with 32-bit ARGB bitmaps, does graphics/BitMapScale() always operate in software or will it use the GPU for scaling if the bitmap is in video memory?
It seems to me that the API could use some work. Otherwise, you are left to guess whether the underlying operation will be done with hardware assist or not as hinted in the autodoc.
ExecSG Team Lead