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

package graphics

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

Index

Package Files

math.go vertices.go

Constants

const (
    IndicesNum     = (1 << 16) / 3 * 3 // Adjust num for triangles.
    VertexFloatNum = 12
)

func InternalImageSize Uses

func InternalImageSize(x int) int

InternalImageSize returns a nearest appropriate size as an internal image.

func PutQuadVertices Uses

func PutQuadVertices(dst []float32, putter VertexPutter, sx0, sy0, sx1, sy1 int, a, b, c, d, tx, ty float32, cr, cg, cb, ca float32)

func QuadIndices Uses

func QuadIndices() []uint16

type VertexPutter Uses

type VertexPutter interface {
    PutVertex(dst []float32, dx, dy, sx, sy float32, bx0, by0, bx1, by1 float32, cr, cg, cb, ca float32)
}

Package graphics is imported by 14 packages. Updated 2019-07-08. Refresh now. Tools for package owners.