typedef & PascalCase for ALL structs and enums

This commit is contained in:
2024-09-23 14:43:16 -03:00
parent e093a6d492
commit 73bf92e706
43 changed files with 795 additions and 793 deletions

View File

@ -1,3 +1,10 @@
#ifndef TWN_TEXT_C_H
#define TWN_TEXT_C_H
#include "twn_gpu_texture_c.h"
#include <stb_truetype.h>
@ -6,7 +13,7 @@
#define NUM_DISPLAY_ASCII ((ASCII_END - ASCII_START) + 1)
struct font_data {
typedef struct FontData {
stbtt_packedchar char_data[NUM_DISPLAY_ASCII];
stbtt_fontinfo info;
@ -14,11 +21,14 @@ struct font_data {
unsigned char *file_bytes;
size_t file_bytes_len;
gpu_texture texture;
GPUTexture texture;
int height_px;
float scale_factor;
int ascent;
int descent;
int line_gap;
};
} FontData;
#endif