basic sdl init graphics and engine implementaiton
This commit is contained in:
parent
db1adbb838
commit
685364929b
18 changed files with 257 additions and 7 deletions
|
|
@ -138,4 +138,4 @@ void *ARC_Config_GetReference(ARC_Config *config, char *data, ARC_StringSubstr *
|
|||
|
||||
#ifdef ARC_DEFAULT_CONFIG
|
||||
#include "defaults/config.h"
|
||||
#endif //ARC_DEFAULT_CONFIG
|
||||
#endif //ARC_DEFAULT_CONFIG
|
||||
|
|
|
|||
|
|
@ -27,8 +27,10 @@ extern "C" {
|
|||
#ifdef ARC_DEBUG
|
||||
# include <stdio.h>
|
||||
# define ARC_DEBUG_LOG(ERR, STR, ...) printf("[ERROR %d] " STR "\n", ERR, __VA_ARGS__)
|
||||
# define ARC_DEBUG_ERR(STR) printf("[ERROR %d]" STR "\n", ERR)
|
||||
#else
|
||||
# define ARC_DEBUG_LOG(ERR, STR, ...)
|
||||
# define ARC_DEBUG_ERR(STR)
|
||||
#endif
|
||||
|
||||
#define ARC_ERR_CHECK(FUNC) FUNC; if(arc_errno){ ARC_DEBUG_LOG(arc_errno, "%s", #FUNC); return; }
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ typedef int8_t (* ARC_Vector_CompareDataFn)(void *a, void *b);
|
|||
/**
|
||||
* @brief creates ARC_Vector type
|
||||
*
|
||||
* @param config ARC_Vector to initialize
|
||||
* @param vector ARC_Vector to initialize
|
||||
* @param dataSize size of type the vector will store
|
||||
*/
|
||||
void ARC_Vector_Create(ARC_Vector **vector, uint32_t dataSize);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue