Archived

This topic is now archived and is closed to further replies.

newbie question....

This topic is 5783 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

if i use glutMousefunc(....) and want my program to respond to a mouse wheel scroll up/down event ... how do i do it? what are the button, states for mouse scroll wheel ??? secondly, someone please tell me the importance and difference between the 3 matrices : projection, modelview and texture ? how do i know why, when and which to use in my code ? u guys hav been a big help till now. so, thanx for everythin.

Share this post


Link to post
Share on other sites
You don''t. The mouse wheel isn''t supported by glut.

You use the projection matrix to setup... your projection (perspective, orthoscopic... the transformation from world coordinates to screen coordinates).

You use the modelview matrix to place your camera, your objects...

The texture matrix... is used with textures... but I don''t much about it.

Share this post


Link to post
Share on other sites
You can always try to add mouse wheel support to GLUT (get the code, look how the mouse buttons are implemented). Check the XWindow or MSDN documentation, depending on your system.

Share this post


Link to post
Share on other sites