sammyogre
11-12-2007 02:46:38
Hi all,
There is a python of network module "twisted". Could it use in OGRE?
Thanks in advance
There is a python of network module "twisted". Could it use in OGRE?
Thanks in advance
sammyogre
11-12-2007 02:46:38
bharling
11-12-2007 09:44:04
Tubez
11-12-2007 12:04:35
SirGolan
11-12-2007 16:22:18
class RendererIterator:
"""
Just a simple class to iterate the renderer
"""
def __init__(self, root, window, mouse, keyboard):
self.root = root
self.window = window
self.mouse = mouse
self.keyboard = keyboard
def __iter__(self):
return self
def next(self):
self.window.messagePump()
self.root.renderOneFrame()
self.keyboard.capture()
self.mouse.capture()
from twisted.internet.task import coiterate
# Initialize Ogre here before coiterating
coiterate(RendererIterator(root, window, mouse, keyboard))
Tubez
14-12-2007 11:08:16