shape-description.h 456 B

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