MCPcopy Create free account
hub / github.com/VitalAudio/visage / GraphLineWrapper

Method GraphLineWrapper

visage_graphics/shapes.h:479–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477 static const EmbeddedFile& fragmentShader();
478
479 GraphLineWrapper(const ClampBounds& clamp, const PackedBrush* brush, float x, float y, float width,
480 float height, float thick, const GraphData& graph_data, ImageAtlas* data_atlas) :
481 Primitive(data_atlas, clamp, brush, x, y, width, height), data_atlas(data_atlas),
482 data(graph_data), packed_data(data_atlas->addData(data.data(), data.numPoints())) {
483 thickness = thick;
484 pixel_width = packed_data.w() - 1;
485 }
486
487 void setVertexData(Vertex* vertices) const {
488 setPrimitiveData(vertices);

Callers

nothing calls this directly

Calls 4

addDataMethod · 0.80
dataMethod · 0.45
numPointsMethod · 0.45
wMethod · 0.45

Tested by

no test coverage detected