Sunday, June 16, 2013

Adding Cursor Models

Now that a basic model loader has been added, I can finally wire up the cursor state management code to show the correct model for the current mouse state. I made a bunch of untextured placeholder cursors, but it's just a matter of replacing them with better looking ones in the future.

There's a bit of an issue with the cursor clipping through the curvature of the window that needs to be fixed - either I need to warp the geometry of the entire cursor to conform or rotate it such that the x-y plane of the model is tangential to the curvature of the window. The latter will likely look better but won't completely fix the clipping issue.

There's at least one cursor type that seems to be undocumented - the reversed arrow that appears in Visual Studio 2012 when you move your mouse over to the column where the breakpoint dots are placed on code. That shouldn't be hard to figure out though.
The video shows proper handling of the loading, resizing, move, i-beam, and hand icons.

No comments:

Post a Comment