blend

package
v0.0.0-...-0518d83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Add             = Equation(gl.FUNC_ADD)
	Subtract        = Equation(gl.FUNC_SUBTRACT)
	ReverseSubtract = Equation(gl.FUNC_REVERSE_SUBTRACT)
	Min             = Equation(gl.MIN)
	Max             = Equation(gl.MAX)
)
View Source
const (
	Zero                  = Factor(gl.ZERO)
	One                   = Factor(gl.ONE)
	SrcColor              = Factor(gl.SRC_COLOR)
	OneMinusSrcColor      = Factor(gl.ONE_MINUS_SRC_COLOR)
	DstColor              = Factor(gl.DST_COLOR)
	OneMinusDstColor      = Factor(gl.ONE_MINUS_DST_COLOR)
	SrcAlpha              = Factor(gl.SRC_ALPHA)
	OneMinusSrcAlpha      = Factor(gl.ONE_MINUS_SRC_ALPHA)
	DstAlpha              = Factor(gl.DST_ALPHA)
	OneMinusDstAlpha      = Factor(gl.ONE_MINUS_DST_ALPHA)
	ConstantColor         = Factor(gl.CONSTANT_COLOR)
	OneMinusConstantColor = Factor(gl.ONE_MINUS_CONSTANT_COLOR)
	ConstantAlpha         = Factor(gl.CONSTANT_ALPHA)
	OneMinusConstantAlpha = Factor(gl.ONE_MINUS_CONSTANT_ALPHA)
	SrcAlphaSaturate      = Factor(gl.SRC_ALPHA_SATURATE)
	Src1Color             = Factor(gl.SRC1_COLOR)
	OneMinusSrc1Color     = Factor(gl.ONE_MINUS_SRC1_COLOR)
	Src1Alpha             = Factor(gl.SRC1_ALPHA)
	OneMinusSrc1Alpha     = Factor(gl.ONE_MINUS_SRC1_ALPHA)
)

Variables

This section is empty.

Functions

func ClearStack

func ClearStack()

func Disable

func Disable()

func Enable

func Enable()

func Pop

func Pop()

func Push

func Push()

func SetColor

func SetColor(color color2.Color)

func SetEquation

func SetEquation(equation Equation)

func SetEquationSeparate

func SetEquationSeparate(equation Equation, equationAlpha Equation)

func SetFunction

func SetFunction(src Factor, dst Factor)

func SetFunctionSeparate

func SetFunctionSeparate(src Factor, dst Factor, srcAlpha Factor, dstAlpha Factor)

Types

type Equation

type Equation uint32

type Factor

type Factor uint32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL