MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DrawTriangle

Method DrawTriangle

Source/CanvasTimeline.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void CanvasTimeline::DrawTriangle(float posX, int direction)
110{
111 ofBeginShape();
112 ofVertex(posX, 0);
113 ofVertex(posX, mHeight);
114 ofVertex(posX + mHeight * direction, 0);
115 ofVertex(posX, 0);
116 ofEndShape();
117}
118
119float CanvasTimeline::GetQuantizedForX(float posX, HoverMode clampSide)
120{

Callers

nothing calls this directly

Calls 3

ofBeginShapeFunction · 0.85
ofVertexFunction · 0.85
ofEndShapeFunction · 0.85

Tested by

no test coverage detected