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