Showing the changes to interface/src/main.cpp (1 of 3 files). Show all
Unified · Split
| @@ -511,26 +511,6 @@ void simulateHead(float frametime) · 510 unmodified lines | ||
| 511 | 511 | } |
| 512 | 512 | } |
| 513 | 513 | |
| 514 | −// These handy operators should probably go somewhere else, I'm surprised they don't | |
| 515 | −// already exist somewhere in OpenGL. Maybe someone can point me to them if they do exist! | |
| 516 | −glm::vec3 operator* (float lhs, const glm::vec3& rhs) | |
| 517 | −{ | |
| 518 | − glm::vec3 result = rhs; | |
| 519 | − result.x *= lhs; | |
| 520 | − result.y *= lhs; | |
| 521 | − result.z *= lhs; | |
| 522 | − return result; | |
| 523 | −} | |
| 524 | − | |
| 525 | −glm::vec3 operator* (const glm::vec3& lhs, float rhs) | |
| 526 | −{ | |
| 527 | − glm::vec3 result = lhs; | |
| 528 | − result.x *= rhs; | |
| 529 | − result.y *= rhs; | |
| 530 | − result.z *= rhs; | |
| 531 | − return result; | |
| 532 | −} | |
| 533 | − | |
| 534 | 514 | // XXXBHG - this code is not yet working. This is here to help Jeffery debug getAvatarHeadLookatDirection() |
| 535 | 515 | // The code will draw a yellow line from the avatar's position to the origin, |
| 536 | 516 | // It also attempts to draw a cyan line from the avatar to 2 meters in front of the avatar in the direction |