moved some functions from graphics config to a new math config

This commit is contained in:
herbglitch 2023-08-19 23:07:15 +00:00
parent df816e2092
commit b0a2b8bb15
5 changed files with 320 additions and 272 deletions

26
include/arc/math/config.h Normal file
View file

@ -0,0 +1,26 @@
#ifndef ARC_MATH_CONFIG_H_
#define ARC_MATH_CONFIG_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "arc/std/string.h"
typedef struct ARC_Config ARC_Config;
void ARC_MathConfig_Init(ARC_Config *config);
uint8_t ARC_Point_Read (ARC_Config *config, ARC_String *string, void **value);
uint8_t ARC_Rect_Read (ARC_Config *config, ARC_String *string, void **value);
uint8_t ARC_RectArray_Read(ARC_Config *config, ARC_String *string, void **value);
void ARC_Point_Delete (ARC_Config *config, ARC_String *string, void *value);
void ARC_Rect_Delete (ARC_Config *config, ARC_String *string, void *value);
void ARC_RectArray_Delete(ARC_Config *config, ARC_String *string, void *value);
#ifdef __cplusplus
}
#endif
#endif //ARC_MATH_CONFIG_H_