Reset mouse position after polling it in non Mac versions.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Correctly set VBO states in entity browser view.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Prefer selected objects when filtering for moveable objects.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Improved UV origin handling

- Moved rendering code to origin tool.
- Made origin picking more accurate.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Renamed UV view tools.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Always put the UV origin in the lower left corner of the face's bounding box.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Fixed a crash when clipping brush entities.

- Reversed the order in which brushes are removed and the clipped
brushes are added back to the map (add, then remove).
Don't round clip points to integer coordinates.
Added basic support for texture shearing.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Fixed some warnings when using CMake 3.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Allow spaces in paths in CMake scripts.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Implement texture shearing.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>