Defined in pyglet.resource
texture
(self, name)¶Load a texture.
The named image will be loaded as a single OpenGL texture. If the dimensions of the image are not powers of 2 a TextureRegion will be returned.
Parameters: | name (str) – Filename of the image resource to load. |
---|---|
Return type: | Texture |