[DEBUG] SVG interface is bad
This commit is contained in:
parent
44e19934e9
commit
492e32b4b3
@ -22,9 +22,11 @@ egami::Image egami::loadSVG(const std::string& _fileName, const ivec2& _size) {
|
|||||||
ivec2 imageSize = _size;
|
ivec2 imageSize = _size;
|
||||||
#if 0
|
#if 0
|
||||||
std::vector<etk::Color<float,4>> svgImage = svgDocument.renderImageFloatRGBA(imageSize);
|
std::vector<etk::Color<float,4>> svgImage = svgDocument.renderImageFloatRGBA(imageSize);
|
||||||
|
out.configure(imageSize, egami::colorType::RGBAf);
|
||||||
out.set(svgImage, imageSize);
|
out.set(svgImage, imageSize);
|
||||||
#else
|
#else
|
||||||
std::vector<etk::Color<uint8_t,4>> svgImage = svgDocument.renderImageU8RGBA(imageSize);
|
std::vector<etk::Color<uint8_t,4>> svgImage = svgDocument.renderImageU8RGBA(imageSize);
|
||||||
|
out.configure(imageSize, egami::colorType::RGBA8);
|
||||||
out.set(svgImage, imageSize);
|
out.set(svgImage, imageSize);
|
||||||
#endif
|
#endif
|
||||||
return out;
|
return out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user