added a little bet to spritesheet graphics config
This commit is contained in:
parent
13ef683164
commit
e4111b614d
1 changed files with 16 additions and 4 deletions
|
|
@ -87,8 +87,20 @@ int32_t ARC_SDL_Texture_Load(SDL_Texture **texture, ARC_Renderer *renderer, cons
|
||||||
// ((ARC_Spritesheet *) *value)->texture = texture;
|
// ((ARC_Spritesheet *) *value)->texture = texture;
|
||||||
// ((ARC_Spritesheet *) *value)->size = size;
|
// ((ARC_Spritesheet *) *value)->size = size;
|
||||||
//}
|
//}
|
||||||
//
|
|
||||||
//uint8_t ARC_Spritesheet_Read(ARC_Config* config, ARC_String *string, void **value){
|
void ARC_ConfigType_SpritesheetCopyFn(void **type, ARC_ParserTagToken *parsedData, ARC_Config *config, void *userdata){
|
||||||
|
ARC_ParserTagToken *valueTagToken = (ARC_ParserTagToken *)ARC_Vector_Get(parsedData->tagTokens, 0);
|
||||||
|
|
||||||
|
switch(valueTagToken->id){
|
||||||
|
case ARC_CONFIG_STRING:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case ARC_CONFIG_NESTED_VALUE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
// if(string->data[0] != '{' || string->data[string->length - 1] != '}'){
|
// if(string->data[0] != '{' || string->data[string->length - 1] != '}'){
|
||||||
// ARC_Spritesheet_ReadTexture(config, string, NULL, value);
|
// ARC_Spritesheet_ReadTexture(config, string, NULL, value);
|
||||||
// return 0;
|
// return 0;
|
||||||
|
|
@ -125,8 +137,8 @@ int32_t ARC_SDL_Texture_Load(SDL_Texture **texture, ARC_Renderer *renderer, cons
|
||||||
// ARC_String_Destroy(textureStr);
|
// ARC_String_Destroy(textureStr);
|
||||||
//
|
//
|
||||||
// return 0;
|
// return 0;
|
||||||
//}
|
}
|
||||||
//
|
|
||||||
//uint8_t ARC_Sprite_Read(ARC_Config* config, ARC_String *string, void **value){
|
//uint8_t ARC_Sprite_Read(ARC_Config* config, ARC_String *string, void **value){
|
||||||
// ARC_Config_Get(config, string, value);
|
// ARC_Config_Get(config, string, value);
|
||||||
// if(*value){
|
// if(*value){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue