SDF icon support (fixes #404)

This commit is contained in:
John Firebaugh
2014-09-05 14:43:52 -07:00
parent 2033eb9494
commit eb4f53cbed
10 changed files with 265 additions and 173 deletions

View File

@@ -44,7 +44,8 @@ void Painter::setup() {
assert(linepatternShader);
assert(patternShader);
assert(rasterShader);
assert(sdfShader);
assert(sdfGlyphShader);
assert(sdfIconShader);
assert(dotShader);
assert(gaussianShader);
@@ -75,7 +76,8 @@ void Painter::setupShaders() {
if (!patternShader) patternShader = std::make_unique<PatternShader>();
if (!iconShader) iconShader = std::make_unique<IconShader>();
if (!rasterShader) rasterShader = std::make_unique<RasterShader>();
if (!sdfShader) sdfShader = std::make_unique<SDFShader>();
if (!sdfGlyphShader) sdfGlyphShader = std::make_unique<SDFGlyphShader>();
if (!sdfIconShader) sdfIconShader = std::make_unique<SDFIconShader>();
if (!dotShader) dotShader = std::make_unique<DotShader>();
if (!gaussianShader) gaussianShader = std::make_unique<GaussianShader>();
}