shape-description.h 437 B

123456789101112131415
  1. #pragma once
  2. #include <cstdio>
  3. #include "Shape.h"
  4. namespace msdfgen {
  5. /// Deserializes a text description of a vector shape into output.
  6. bool readShapeDescription(FILE *input, Shape &output, bool *colorsSpecified = NULL);
  7. bool readShapeDescription(const char *input, Shape &output, bool *colorsSpecified = NULL);
  8. /// Serializes a shape object into a text description.
  9. bool writeShapeDescription(FILE *output, const Shape &shape);
  10. }