Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/examples/bge.texture.1.py
| Context not available. | |||||
| Texture Replacement | Texture Replacement | ||||
| +++++++++++++++++++ | +++++++++++++++++++ | ||||
| Example of how to replace a texture in game with an external image. | Example of how to replace a texture in game with an external image. | ||||
| createTexture() and removeTexture() are to be called from a module Python | ``createTexture()`` and ``removeTexture()`` are to be called from a | ||||
| Controller. | module Python Controller. | ||||
| """ | """ | ||||
| from bge import logic | from bge import logic | ||||
| from bge import texture | from bge import texture | ||||
| Context not available. | |||||