mouse over object


can anybody help
i want to make a script that when you leave the mouse over an object it is viewed in wireframe
when not it is viewed normally

What do you have so far?

I would go for some planning before writing the code. I’m not an expert, but how about this for starters?

  1. Put the mouse in the center of the screen.
  2. Give the user control over the mouse.
  3. If the mouse is not over the object: the object is shaded.
  4. If the mouse is over the object: the object is wireframe.

Hopefully this will help understand what functions to call and how to build the code.

Which API?