# main.c File Reference

`#include <allegro5/allegro5.h>`
`#include <allegro5/allegro_font.h>`
`#include <allegro5/allegro_ttf.h>`
`#include <allegro5/allegro_image.h>`
`#include <allegro5/allegro_primitives.h>`
`#include <allegro5/allegro_native_dialog.h>`
`#include <allegro5/allegro_opengl.h>`
`#include <allegro5/allegro_physfs.h>`
`#include <physfs.h>`
`#include "chipmunk.h"`
`#include <stdio.h>`
`#include "../include/commons.h"`
`#include "../include/imagescale.h"`
`#include "../include/progressbar.h"`
`#include "../include/inits.h"`
`#include "../include/keyboard.h"`
`#include "../include/mouse.h"`
`#include "../include/buttons.h"`
`#include "../include/eventhandler.h"`
`#include "../include/sprites.h"`
`#include "../include/maingame.h"`
`#include "../include/render.h"`
`#include "../include/physcol.h"`
`#include "../include/options.h"`

Go to the source code of this file.

## Defines
#define | _PHYSFS
#define | _INITS_
#define | _KEYBOARD_
#define | _MOUSE_
#define | _BUTTONS_
#define | _EVENTHANDLER_
#define | _SPRITES_
#define | _MAINGAME_
#define | _RENDER_
#define | _PHYSCOL_
#define | _OPTIONS_
#define | _MAIN_
## Functions
int | main (int argc, char **argv)
| The entry point of the game.
_Bool | data_init (void)
| Initializes the gdata structure.
_Bool | main_loop (void)
| Everything happens here!
GDATAPTR | get_game_data (void)
| Grabs the main GDATA structure.
void | loader (void)
void | cleanup (GDATAPTR game)

## Detailed Description

The entry point of the program and contains the main_loop function

Definition in file main.c.