Pre-multiply the color with alpha in a texture. The texture must have format PF_R8G8B8A8 for the alpha to be pre-multiplied.
| 75 | |
| 76 | // Pre-multiply the color with alpha in a texture. The texture must have format PF_R8G8B8A8 for the alpha to be pre-multiplied. |
| 77 | bool PreMultiplyAlpha(Image* image) |
| 78 | { |
| 79 | PreMultiplyAlpha(image->m_Data, image->m_Width, image->m_Height); |
| 80 | return true; |
| 81 | } |
| 82 | |
| 83 | // Flips a texture |
| 84 | bool Flip(Image* image, FlipAxis flip_axis) |