sw_engine raster: code refactoring

clarfy & regroup the internal functions which have been messed up by rendering options.

no logical changes
This commit is contained in:
Hermet Park 2021-11-16 19:25:18 +09:00 committed by Hermet Park
parent e581ae4353
commit f9bc684699
2 changed files with 743 additions and 723 deletions

View file

@ -280,11 +280,6 @@ static inline uint32_t COLOR_INTERPOLATE(uint32_t c1, uint32_t a1, uint32_t c2,
return (c1 |= t);
}
static inline uint32_t ALPHA_MULTIPLY(uint32_t c, uint32_t a)
{
return ((c * a + 0xff) >> 8);
}
static inline SwCoord HALF_STROKE(float width)
{
return TO_SWCOORD(width * 0.5f);

File diff suppressed because it is too large Load diff