stuff
This commit is contained in:
parent
2dbfa1b99e
commit
b1230534c5
22 changed files with 547 additions and 429 deletions
|
@ -6,8 +6,6 @@
|
|||
#define ASSETS_PATH "./assets/"
|
||||
#endif
|
||||
|
||||
#define MANGLE_RES_PATH(path) ASSETS_PATH "/" path
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -18,45 +16,19 @@ extern "C" {
|
|||
|
||||
#define ALYSIS_ENGINE_WINDOW_TITLE "Alyson Engine"
|
||||
|
||||
typedef struct {
|
||||
char type[4 + 1];
|
||||
char group[26 + 1];
|
||||
char* name;
|
||||
char* path;
|
||||
} alyson_path_t, *ALPath;
|
||||
#include "alargs.h"
|
||||
|
||||
/*
|
||||
* @function: demangle_path
|
||||
* @description: Demangles a path
|
||||
* @param path: path to resource
|
||||
* @return: ALPath
|
||||
*/
|
||||
ALPath al_demangle_path(const char* path);
|
||||
char* al_mangle_path(const ALPath path);
|
||||
ALPath al_create_path(
|
||||
const char* type,
|
||||
const char* path,
|
||||
const char* name,
|
||||
const char* group
|
||||
);
|
||||
void al_destroy_path(ALPath path);
|
||||
#include "resources/alpath.h"
|
||||
|
||||
typedef struct {
|
||||
int argc;
|
||||
char** argv;
|
||||
} alyson_args_t, *ALArgs;
|
||||
#include "resources/alresource.h"
|
||||
|
||||
ALArgs al_args_create(int argc, char** argv);
|
||||
void al_args_destroy(ALArgs args);
|
||||
#if defined(RAYLIB_BACKEND)
|
||||
#include <raylib.h>
|
||||
#include <raymath.h>
|
||||
|
||||
typedef struct {
|
||||
usx id;
|
||||
alyson_path_t path;
|
||||
} alyson_resource_t, *ALResource;
|
||||
#include <rlyson.h>
|
||||
#endif
|
||||
|
||||
ALResource al_resource_create(ALPath path);
|
||||
ALResource al_resource_create_from_file(char* name, char* path);
|
||||
void al_resource_destroy(ALResource resource);
|
||||
|
||||
/* TODO : implement
|
||||
typedef struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue