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

@ -8,8 +8,8 @@
#include <stdint.h>
typedef struct context {
struct input_state input;
typedef struct Context {
struct InputState input;
int64_t delta_time; /* preserves real time frame delta with no manipilation */
uint64_t tick_count;
@ -31,10 +31,10 @@ typedef struct context {
bool is_running;
bool window_size_has_changed;
bool initialization_needed;
} t_ctx;
} Context;
#ifndef TWN_ENGINE_CONTEXT_C_H
TWN_API extern t_ctx ctx;
TWN_API extern Context ctx;
#endif
#endif