ebiten: github.com/hajimehoshi/ebiten/internal/graphics Index | Files

package graphics

import "github.com/hajimehoshi/ebiten/internal/graphics"

Index

Package Files

math.go vertex.go

Constants

const (
    ShaderImageNum = 4

    // PreservedUniformVariablesNum represents the number of preserved uniform variables.
    // Any shaders in Ebiten must have these uniform variables.
    PreservedUniformVariablesNum = 1 +
        1 +
        1   // the offsets array of the second and the following images

    DestinationTextureSizeUniformVariableIndex = 0
    TextureSizesUniformVariableIndex           = 1
    TextureOffsetsUniformVariableIndex         = 2
)
const (
    IndicesNum     = (1 << 16) / 3 * 3 // Adjust num for triangles.
    VertexFloatNum = 8
)

func InternalImageSize Uses

func InternalImageSize(x int) int

InternalImageSize returns a nearest appropriate size as an internal image.

func QuadIndices Uses

func QuadIndices() []uint16

func QuadVertices Uses

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

Package graphics imports 1 packages (graph) and is imported by 46 packages. Updated 2020-08-05. Refresh now. Tools for package owners.