Added XML Parser.

This commit is contained in:
2021-09-12 11:28:39 -07:00
parent 4f705ad278
commit ecd5c0c47c
6 changed files with 276 additions and 0 deletions

View File

@ -15,6 +15,17 @@ bool sandboxSceneInit(sandboxscene_t *game) {
assetShaderLoad(&game->shader,
"shaders/textured.vert", "shaders/textured.frag"
);
xml_t xml;
xmlLoad(&xml, "<a><b>Hello World</b><b>Hello Bruh</b></a>", 0);
for(uint8_t i = 0; i < xml.childrenCount; i++) {
printf("Value: %s\n", xml.children[i].value);
}
framedTextMenuInit(&menu, &game->font, &game->texture);

View File

@ -17,6 +17,8 @@
#include "../../display/texture.h"
#include "../../file/asset.h"
#include "../../file/xml.h"
#include "../../ui/grid.h"
#include "../../ui/menuv2.h"
#include "../../ui/textmenu.h"