2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
638 B

  1. #ifndef IZ_APP_H
  2. #define IZ_APP_H
  3. #include <SDL.h>
  4. #include <libwebsockets.h>
  5. #include "IZ_app_config.h"
  6. #include "memory/IZ_pool.h"
  7. #include "IZ_app_input.h"
  8. #include "IZ_app_net.h"
  9. #include "IZ_app_video.h"
  10. typedef enum {
  11. IZ_APP_RUN_RESULT_OK,
  12. IZ_APP_RUN_SDL_INIT_ERROR,
  13. IZ_APP_RUN_VIDEO_INIT_ERROR,
  14. IZ_APP_RUN_INPUT_INIT_ERROR,
  15. IZ_APP_RUN_POOL_INIT_ERROR,
  16. IZ_APP_RUN_NETWORKING_ERROR,
  17. } IZ_AppRunResult;
  18. typedef struct IZ_App {
  19. IZ_InputState input_state;
  20. IZ_VideoState video_state;
  21. IZ_Pool pool;
  22. u64 ticks;
  23. IZ_NetClientState net_state;
  24. } IZ_App;
  25. IZ_ProcedureResult IZ_AppRun(struct IZ_App*, u8, const char*[]);
  26. #endif