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 ¶
InternalImageSize returns a nearest appropriate size as an internal image.
func QuadIndices ¶
func QuadIndices() []uint16
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.