TextureBase
Supported platforms: ![]()
![]()
![]()
![]()
![]()
![]()
![]()
Available since: Gideros 2011.6
Inherits from: Object
Description
TextureBase is the base class for Texture and TexturePack classes. It provides a common functionaly to texture related classes.
- TextureBase.CLAMP = "clamp"
- TextureBase.REPEAT = "repeat"
formats
Transparency (Alpha) support:
- TextureBase.A8: alpha, bbp: 8 bits (1 byte), no colors (Alpha only). For pure transparency masks, fading effects, or solid-color shapes that only need opacity control
- TextureBase.YA8: alpha, bbp: 16 bits (2 bytes), no colors (Grayscale + Alpha). For Grayscale images that require transparency (e.g., UI icons, fonts)
- TextureBase.RGBA4444: alpha, bbp: 16 bits (2 bytes), colors (Low color). For low-detail color images where dithering or color banding is acceptable
- TextureBase.RGBA5551: alpha, bbp: 16 bits (2 bytes), colors (Low color). For color images where pixels are either 100% visible or 100% invisible (no partial transparency)
- TextureBase.RGBA8888: alpha, bbp: 32 bits (4 bytes), colors (Full color). For high-quality, full-color images with smooth, semi-transparent gradients
No transparency (Alpha) support, will render a solid background:
- TextureBase.Y8: no alpha, bbp: 8 bits (1 byte), no colors (Grayscale). For Grayscale images that don't require transparency
- TextureBase.RGB565: no alpha, bbp: 16 bits (2 bytes), colors (Low color). For color images with no transparency
- TextureBase.RGB888: no alpha, bbp: 24 bits (3 bytes), colors (Full color). For high-quality, full-color images with no transparency
bbp = Bits per Pixel
MethodsTextureBase:getHeight returns the height of the texture in pixels |
EventsConstantsTextureBase.CLAMP |