wrote documentation for spritesheet, and worked on adding spritesheet to graphics config

This commit is contained in:
herbglitch 2025-03-19 05:13:11 -06:00
parent bbffbe1cb3
commit 83b87c6d63
9 changed files with 136 additions and 126 deletions

View file

@ -18,4 +18,4 @@ uint32_t *ARC_Spritesheet_GetTileSize(ARC_Spritesheet *spritesheet){
return NULL;
}
#endif // !ARC_NONE_GRAPHICS
#endif // !ARC_NONE_GRAPHICS

View file

@ -739,6 +739,17 @@ void ARC_Config_LoadFromFile(ARC_Config *config, ARC_String *path){
ARC_Parser_ParseFile(config->parser, path);
}
void ARC_Config_LoadFromFileWithCStr(ARC_Config *config, const char *path){
config->load = ARC_True;
ARC_String *pathString;
ARC_String_CreateWithStrlen(&pathString, (char *)path);
ARC_Parser_ParseFile(config->parser, pathString);
ARC_String_Destroy(pathString);
}
void ARC_Config_UnloadFromString(ARC_Config *config, ARC_String **string){
config->load = ARC_False;
ARC_Parser_Parse(config->parser, string);