import "github.com/hajimehoshi/ebiten/internal/graphics"
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 + 1 + 1 // the texture source region's size DestinationTextureSizeUniformVariableIndex = 0 TextureSizesUniformVariableIndex = 1 TextureDestinationRegionOriginUniformVariableIndex = 2 TextureDestinationRegionSizeUniformVariableIndex = 3 TextureSourceOffsetsUniformVariableIndex = 4 TextureSourceRegionOriginUniformVariableIndex = 5 TextureSourceRegionSizeUniformVariableIndex = 6 )
const ( IndicesNum = (1 << 16) / 3 * 3 // Adjust num for triangles. VertexFloatNum = 8 )
InternalImageSize returns a nearest appropriate size as an internal image.
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 53 packages. Updated 2021-01-21. Refresh now. Tools for package owners.