typedef & PascalCase for ALL structs and enums
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user