Translations:Line drawing function/10/en

This is the important part. Since we are dealing with a Coin3D scene, we use a Coin callback mechanism that allows a function to be called every time a certain scene event happens. In our case we are creating a callback for SoMouseButtonEvent events, and we bind it to the function. Now every time a mouse button is pressed or released the function will be executed.