Refactored.

This commit is contained in:
2021-04-22 13:55:34 +10:00
parent c10754f31b
commit f7c1380f06
62 changed files with 1033 additions and 1391 deletions

View File

@ -7,10 +7,9 @@
#include "asset.h"
#ifndef STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#endif
// Due to some bullshit, this is here.
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
char * assetStringLoad(char *assetName) {
// Open a buffer.

View File

@ -6,17 +6,10 @@
*/
#pragma once
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <malloc.h>
#include <string.h>
#include <dawn/dawn.h>
#include "../display/shader.h"
#include "../display/texture.h"
/** Prefix of all asset load methods, may be customizable in future. */
#define ASSET_PREFIX "../assets/"
/**
* Method to load an asset into memory as a raw string.
*