Begin refactor.

This commit is contained in:
2021-09-18 23:13:05 -07:00
parent 98daedced9
commit 6904a46bec
143 changed files with 1706 additions and 2345 deletions

View File

@@ -6,8 +6,26 @@
*/
#pragma once
#include <dawn/dawn.h>
#include "../libs.h"
#include "spritebatch.h"
#include "tileset.h"
/** Which is the first character within the font tilemap */
#define BITMAP_FONT_CHAR_START 33
/** Center a font along the X axis */
#define BITMAP_FONT_CENTER_X 9876543
/** Center a font along the Y axis */
#define BITMAP_FONT_CENTER_Y -BITMAP_FONT_CENTER_X
/** Align right edge of font to origin */
#define BITMAP_FONT_RIGHT_X (BITMAP_FONT_CENTER_X-1)
typedef struct {
float width, height;
int32_t lines;
} bitmapfontmeasure_t;
/**
* Get the division for a given character.