MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / DrawLine

Method DrawLine

src/gl_wrap.cpp:103–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void 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
111static inline Vector2D interp(Vector2D p1, Vector2D p2, float t) {
112 return t * p1 + (1 - t) * p2;

Callers 15

OnPaintMethod · 0.80
DrawMethod · 0.80
OnPaintMethod · 0.80
DrawMethod · 0.80
RenderMethod · 0.80
RenderBlankMethod · 0.80
DrawMethod · 0.80
OnPaintMethod · 0.80
PaintMethod · 0.80
PaintMarkersMethod · 0.80
PaintTrackCursorMethod · 0.80
OnPaintMethod · 0.80

Calls 2

SetMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected