Skip to content

Code Snippets

Snapping a point to a grid point

    vCursor.x = floorf( (mouse.x + 0.5f) * fgrid);