Refactored.

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

View File

@ -4,26 +4,7 @@
// https://opensource.org/licenses/MIT
#pragma once
#include <stdint.h>
#include <malloc.h>
/** Division of a texture */
typedef struct {
float x0, y0, x1, y1;
} tilesetdiv_t;
/** Definition of a Tileset */
typedef struct {
/** Count of X/Y divisions */
int32_t columns, rows;
/** Count of divisions (unused) */
int32_t count;
/** Division information */
tilesetdiv_t *divisions;
} tileset_t;
#include <dawn/dawn.h>
/**
* Create a tileset. Tilesets will be pre-divided to save performance later.