Showing the changes to interface/src/Util.cpp (1 of 10 files). Show all
Unified · Split
| @@ -168,30 +168,6 @@ void drawvec3(int x, int y, float scale, float rotate, float thick, int mono, gl · 167 unmodified lines | ||
| 168 | 168 | |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | −// XXXBHG - These handy operators should probably go somewhere else, I'm surprised they don't | |
| 172 | −// already exist somewhere in OpenGL. Maybe someone can point me to them if they do exist! | |
| 173 | −glm::vec3 operator* (float lhs, const glm::vec3& rhs) | |
| 174 | −{ | |
| 175 | − glm::vec3 result = rhs; | |
| 176 | − result.x *= lhs; | |
| 177 | − result.y *= lhs; | |
| 178 | − result.z *= lhs; | |
| 179 | − return result; | |
| 180 | −} | |
| 181 | − | |
| 182 | −// XXXBHG - These handy operators should probably go somewhere else, I'm surprised they don't | |
| 183 | −// already exist somewhere in OpenGL. Maybe someone can point me to them if they do exist! | |
| 184 | −glm::vec3 operator* (const glm::vec3& lhs, float rhs) | |
| 185 | −{ | |
| 186 | − glm::vec3 result = lhs; | |
| 187 | − result.x *= rhs; | |
| 188 | − result.y *= rhs; | |
| 189 | − result.z *= rhs; | |
| 190 | − return result; | |
| 191 | −} | |
| 192 | − | |
| 193 | − | |
| 194 | − | |
| 195 | 171 | void drawGroundPlaneGrid( float size, int resolution ) |
| 196 | 172 | { |
| 197 | 173 | |