Defined in pyglet.resource
Load an image with optional transformation.
This is similar to texture, except the resulting image will be packed into a TextureBin if it is an appropriate size for packing. This is more efficient than loading images into separate textures.
Parameters: |
|
---|---|
Return type: | Texture |
Returns: | A complete texture if the image is large or not in an atlas, otherwise a TextureRegion of a texture atlas. |