Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/examples/bge.texture.py
| """ | """ | ||||
| Basic Video Playback | Basic Video Playback | ||||
| ++++++++++++++++++++ | ++++++++++++++++++++ | ||||
| Example of how to replace a texture in game with a video. It needs to run everyframe | Example of how to replace a texture in game with a video. It needs to run | ||||
| everyframe. | |||||
| """ | """ | ||||
| import bge | import bge | ||||
| from bge import texture | from bge import texture | ||||
| from bge import logic | from bge import logic | ||||
| cont = logic.getCurrentController() | cont = logic.getCurrentController() | ||||
| obj = cont.owner | obj = cont.owner | ||||
| Show All 20 Lines | |||||