How to togge wireframe mode

I’m using the Game Engine for a visualization tool. I’d like to be able to switch between solid and wireframe render modes while running, e.g. from a Python script. I know I can switch “Viewport shading” mode before starting the game engine, but I can’t find anything (e.g. in scene, camera, or actuators) to change this at runtime. I tried changing all scene.objects’ drawMode to Blender.Object.DrawTypes.WIRE but that didn’t do anything.

Any ideas? I’m running 2.49. Thanks!

I would just have different versions of the meshes with different materials, the wireframe would have wir material. And then I would swap them with a simple logic brick setup. Sorry I can’t do much with python…

  	 			I would just have different versions of the meshes with different materials, the wireframe would have wire material.

Interesting idea. Works with some of the game rendering modes, at least. Thanks!

At your service!