graphics: Add CompositeModeDestinationOver

This commit is contained in:
Hajime Hoshi 2016-04-14 01:09:11 +09:00
parent 5f6f2531a9
commit ee142a751c

View File

@ -57,6 +57,9 @@ const (
// c_out = c_dst // c_out = c_dst
CompositeModeDestination = CompositeMode(opengl.CompositeModeDestination) CompositeModeDestination = CompositeMode(opengl.CompositeModeDestination)
// c_out = c_src × (1 - α_dst) + c_dst
CompositeModeDestinationOver = CompositeMode(opengl.CompositeModeDestinationOver)
// c_out = c_src × α_dst // c_out = c_src × α_dst
CompositeModeSourceIn = CompositeMode(opengl.CompositeModeSourceIn) CompositeModeSourceIn = CompositeMode(opengl.CompositeModeSourceIn)