Icon¶
Convenience wrapper around Texture for fixed-size icon sprites.
Parameters¶
-
texture: The sprite sheet/texture location.
-
size: The icon's rendered width and height, in pixels.
-
uOffset: The sprite's left edge within
texture, in texture pixels. -
vOffset: The sprite's top edge within
texture, in texture pixels. -
u: The sprite's source width within
texture. Defaults tosize. -
v: The sprite's source height within
texture. Defaults tosize. -
textureWidth: The full width of
texture, in pixels. -
textureHeight: The full height of
texture, in pixels.