my openGL API need threads!!! But how to ,ake it work???
Diez B. Roggisch
deets at nospam.web.de
Thu Feb 2 12:43:57 EST 2006
Laurent wrote:
> That is exactly what I do not want!!
>
> this is not transparent, I'm sure it is possible to make what I want:
> Scene = ooglScene()
> Scene.run()
> scene.append(ooglPoint())
Well, if you know so well what you want, why don't you know how to do it?
Besides: just using threads might help - but as well your whole application
might crash, as inserting scene parts concurrently might f... up internal
structures.
But if you really want threads (albeit not knowing much about them...) here
you go:
import threading
Scene = ooglScene()
threading.Thread(target=Scene.run)
scene.append(ooglPoint())
Diez
More information about the Python-list
mailing list