typedef & PascalCase for ALL structs and enums
This commit is contained in:
		@@ -3,6 +3,7 @@
 | 
			
		||||
 | 
			
		||||
#include "twn_context.h"
 | 
			
		||||
#include "twn_textures_c.h"
 | 
			
		||||
#include "twn_audio_c.h"
 | 
			
		||||
#include "twn_engine_api.h"
 | 
			
		||||
#include "twn_input.h"
 | 
			
		||||
#include "rendering/twn_rendering_c.h"
 | 
			
		||||
@@ -13,20 +14,20 @@
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
typedef struct engine_context {
 | 
			
		||||
typedef struct EngineContext {
 | 
			
		||||
    /* user code facing context */
 | 
			
		||||
    t_ctx game;
 | 
			
		||||
    Context game;
 | 
			
		||||
 | 
			
		||||
    /* the program's actual argc and argv */
 | 
			
		||||
    int argc;
 | 
			
		||||
    char **argv;
 | 
			
		||||
 | 
			
		||||
    struct primitive_2d *render_queue_2d;
 | 
			
		||||
    struct mesh_batch_item *uncolored_mesh_batches;
 | 
			
		||||
    struct text_cache text_cache;
 | 
			
		||||
    struct texture_cache texture_cache;
 | 
			
		||||
    struct Primitive2D *render_queue_2d;
 | 
			
		||||
    MeshBatchItem *uncolored_mesh_batches;
 | 
			
		||||
    struct TextCache text_cache;
 | 
			
		||||
    TextureCache texture_cache;
 | 
			
		||||
 | 
			
		||||
    struct audio_channel_item *audio_channels;
 | 
			
		||||
    AudioChannelItem *audio_channels;
 | 
			
		||||
    SDL_AudioDeviceID audio_device;
 | 
			
		||||
    int audio_stream_frequency;
 | 
			
		||||
    SDL_AudioFormat audio_stream_format;
 | 
			
		||||
@@ -46,8 +47,8 @@ typedef struct engine_context {
 | 
			
		||||
 | 
			
		||||
    bool resync_flag;
 | 
			
		||||
    bool was_successful;
 | 
			
		||||
} t_engine_ctx;
 | 
			
		||||
} EngineContext;
 | 
			
		||||
 | 
			
		||||
TWN_API extern t_engine_ctx ctx;
 | 
			
		||||
TWN_API extern EngineContext ctx;
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user