summaryrefslogtreecommitdiff
path: root/thirdparty/msdfgen/core/shape-description.h
blob: 5df7c50a035efe0627513207e9a0ff12dce369a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#pragma once

#include <cstdlib>
#include <cstdio>
#include "Shape.h"

namespace msdfgen {

/// Deserializes a text description of a vector shape into output.
bool readShapeDescription(FILE *input, Shape &output, bool *colorsSpecified = NULL);
bool readShapeDescription(const char *input, Shape &output, bool *colorsSpecified = NULL);
/// Serializes a shape object into a text description.
bool writeShapeDescription(FILE *output, const Shape &shape);

}