aboutsummaryrefslogtreecommitdiff
path: root/fbwarn/src/parseBVG.h
blob: ea465ca80ee7b0de1d6255979cb96cbbca1e4c97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "raylib.h"
#include "BVGTypes.h"

FILE *readFile(char *path);
char *multiToSingle(char *s);
void matchFunctionCall(char *call);
void collectArgs(char *res[], char *call, int n);
void orderArgs(char *res[], char *argv[], int n, char *knownArgs[]);
Color *parseColorFromHex(char *hex);
bool parseBoolValue(char *hex);

// Shape functions
BVGRectangle *BVGParseRectangle(char *argv[7]);
void BVGDrawRectangle(BVGRectangle *rectangle);
BVGRoundedRectangle *BVGParseRoundedRectangle(char *argv[9]);
void BVGDrawRoundedRectangle(BVGRoundedRectangle *rectangle);
BVGCircle *BVGParseCircle(char *argv[4]);
void BVGDrawCircle(BVGCircle *circle);
BVGRing *BVGParseRing(char *argv[8]);
void BVGDrawRing(BVGRing *ring);