Added XML Parser.
This commit is contained in:
@ -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);
|
||||
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user