1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-07 18:57:18 -05:00
OpenDiablo2/d2common/d2enum/composite_mode.go
2020-06-30 09:58:53 -04:00

48 lines
1.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package d2enum
// CompositeMode defines the composite mode
type CompositeMode int
const (
// CompositeModeSourceOver applies a composite based on:
// c_out = c_src + c_dst × (1 - α_src) (Regular alpha blending)
CompositeModeSourceOver CompositeMode = iota + 1
// CompositeModeClear applies a composite based on: c_out = 0
CompositeModeClear
// CompositeModeCopy applies a composite based on: c_out = c_src
CompositeModeCopy
// CompositeModeDestination applies a composite based on: c_out = c_dst
CompositeModeDestination
// CompositeModeDestinationOver applies a composite based on: c_out = c_src × (1 - α_dst) + c_dst
CompositeModeDestinationOver
// CompositeModeSourceIn applies a composite based on: c_out = c_src × α_dst
CompositeModeSourceIn
// CompositeModeDestinationIn applies a composite based on: c_out = c_dst × α_src
CompositeModeDestinationIn
// CompositeModeSourceOut applies a composite based on: c_out = c_src × (1 - α_dst)
CompositeModeSourceOut
// CompositeModeDestinationOut applies a composite based on: c_out = c_dst × (1 - α_src)
CompositeModeDestinationOut
// CompositeModeSourceAtop applies a composite based on: c_out = c_src × α_dst + c_dst × (1 - α_src)
CompositeModeSourceAtop
// CompositeModeDestinationAtop applies a composite based on: c_out = c_src × (1 - α_dst) + c_dst × α_src
CompositeModeDestinationAtop
// CompositeModeXor applies a composite based on: c_out = c_src × (1 - α_dst) + c_dst × (1 - α_src)
CompositeModeXor
// CompositeModeLighter applies a composite based on:
// c_out = c_src + c_dst Sum of source and destination (a.k.a. 'plus' or 'additive')
CompositeModeLighter
)