Starter project for SDL2.
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.

27 lines
476 B

  1. #ifndef IZ_APP_H
  2. #define IZ_APP_H
  3. #include "input/IZ_keyboard.h"
  4. #include "input/IZ_joystick.h"
  5. #include "output/IZ_video.h"
  6. #include "memory/IZ_pool.h"
  7. #include "IZ_action.h"
  8. typedef struct {
  9. IZ_Action actions[PLAYERS];
  10. // input
  11. IZ_KeyboardState keyboard_state[PLAYERS];
  12. IZ_JoystickState joystick_state[PLAYERS];
  13. // output, video state
  14. IZ_VideoConfig video_config;
  15. uint64_t video_update_at;
  16. IZ_Pool memory_pool;
  17. } IZ_App;
  18. int IZ_InitializeApp(IZ_App*);
  19. #endif