graphics

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShaderImageNum = 4

	// PreservedUniformVariablesNum represents the number of preserved uniform variables.
	// Any shaders in Ebiten must have these uniform variables.
	PreservedUniformVariablesNum = 1 +
		1 +
		1 +
		1 +
		1 // the texture source region's size

	DestinationTextureSizeUniformVariableIndex    = 0
	TextureSizesUniformVariableIndex              = 1
	TextureSourceOffsetsUniformVariableIndex      = 2
	TextureSourceRegionOriginUniformVariableIndex = 3
	TextureSourceRegionSizeUniformVariableIndex   = 4
)
View Source
const (
	IndicesNum     = (1 << 16) / 3 * 3 // Adjust num for triangles.
	VertexFloatNum = 8
)

Variables

This section is empty.

Functions

func InternalImageSize added in v1.9.0

func InternalImageSize(x int) int

InternalImageSize returns a nearest appropriate size as an internal image.

func QuadIndices added in v1.9.0

func QuadIndices() []uint16

func QuadVertices added in v1.9.0

func QuadVertices(sx0, sy0, sx1, sy1 float32, a, b, c, d, tx, ty float32, cr, cg, cb, ca float32, last bool) []float32

Types

This section is empty.

Jump to

Keyboard shortcuts

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