Function

package
v0.0.0-...-9749107 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: GPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultBlend = BlendFunction{
		Enabled:     true,
		Source:      gl.SRC_ALPHA,
		Destination: gl.ONE_MINUS_SRC_ALPHA,
	}
	DisabledBlend = BlendFunction{
		Enabled: false,
	}
)
View Source
var (
	Front = CullFunction{
		Enabled:  true,
		Function: gl.FRONT,
	}
	Back = CullFunction{
		Enabled:  true,
		Function: gl.BACK,
	}
	FrontAndBack = CullFunction{
		Enabled:  true,
		Function: gl.FRONT_AND_BACK,
	}
	CullDisabled = CullFunction{
		Enabled: false,
	}
)
View Source
var (
	Never = DepthFunction{
		Enabled:  true,
		Function: gl.NEVER,
	}
	Less = DepthFunction{
		Enabled:  true,
		Function: gl.LESS,
	}
	Equal = DepthFunction{
		Enabled:  true,
		Function: gl.EQUAL,
	}
	LessEqual = DepthFunction{
		Enabled:  true,
		Function: gl.LEQUAL,
	}
	Greater = DepthFunction{
		Enabled:  true,
		Function: gl.GREATER,
	}
	NotEqual = DepthFunction{
		Enabled:  true,
		Function: gl.NOTEQUAL,
	}
	GreaterEqual = DepthFunction{
		Enabled:  true,
		Function: gl.GEQUAL,
	}
	Always = DepthFunction{
		Enabled:  true,
		Function: gl.ALWAYS,
	}
	DisabledDepth = DepthFunction{
		Enabled: false,
	}
)

Functions

This section is empty.

Types

type BlendFunction

type BlendFunction struct {
	Enabled     bool
	Source      uint32
	Destination uint32
}

func GetCurrentBlendFunction

func GetCurrentBlendFunction() *BlendFunction

func (*BlendFunction) Set

func (f *BlendFunction) Set()

func (*BlendFunction) UnmarshalYAML

func (f *BlendFunction) UnmarshalYAML(value *yaml.Node) error

type CullFunction

type CullFunction struct {
	Enabled  bool
	Function uint32
}

func GetCurrentCullFunction

func GetCurrentCullFunction() *CullFunction

func (*CullFunction) Set

func (f *CullFunction) Set()

func (*CullFunction) UnmarshalYAML

func (f *CullFunction) UnmarshalYAML(value *yaml.Node) error

type DepthFunction

type DepthFunction struct {
	Enabled  bool
	Function uint32
}

func GetCurrentDepthFunction

func GetCurrentDepthFunction() *DepthFunction

func (*DepthFunction) Set

func (f *DepthFunction) Set()

func (*DepthFunction) UnmarshalYAML

func (f *DepthFunction) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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