mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
parent
db34930ae8
commit
446a6dc952
@ -27,6 +27,8 @@ func shaderSuffix(unit shaderir.Unit) (string, error) {
|
|||||||
var __imageDstTextureSize vec2
|
var __imageDstTextureSize vec2
|
||||||
|
|
||||||
// imageSrcTextureSize returns the destination image's texture size in pixels.
|
// imageSrcTextureSize returns the destination image's texture size in pixels.
|
||||||
|
//
|
||||||
|
// Deprecated: as of v2.6. Use the pixel-unit mode.
|
||||||
func imageDstTextureSize() vec2 {
|
func imageDstTextureSize() vec2 {
|
||||||
return __imageDstTextureSize
|
return __imageDstTextureSize
|
||||||
}
|
}
|
||||||
@ -36,6 +38,8 @@ var __imageSrcTextureSizes [%[1]d]vec2
|
|||||||
// imageSrcTextureSize returns the 0th source image's texture size in pixels.
|
// imageSrcTextureSize returns the 0th source image's texture size in pixels.
|
||||||
// As an image is a part of internal texture, the texture is usually bigger than the image.
|
// As an image is a part of internal texture, the texture is usually bigger than the image.
|
||||||
// The texture's size is useful when you want to calculate pixels from texels in the texel mode.
|
// The texture's size is useful when you want to calculate pixels from texels in the texel mode.
|
||||||
|
//
|
||||||
|
// Deprecated: as of v2.6. Use the pixel-unit mode.
|
||||||
func imageSrcTextureSize() vec2 {
|
func imageSrcTextureSize() vec2 {
|
||||||
return __imageSrcTextureSizes[0]
|
return __imageSrcTextureSizes[0]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user