| 101 | } |
| 102 | |
| 103 | void OpenGLWrapper::DrawLine(Vector2D p1, Vector2D p2) const { |
| 104 | SetModeLine(); |
| 105 | VertexArray buf(2, 2); |
| 106 | buf.Set(0, p1); |
| 107 | buf.Set(1, p2); |
| 108 | buf.Draw(GL_LINES); |
| 109 | } |
| 110 | |
| 111 | static inline Vector2D interp(Vector2D p1, Vector2D p2, float t) { |
| 112 | return t * p1 + (1 - t) * p2; |
no test coverage detected