Initial Commit
This commit is contained in:
commit
f4fa723863
22 changed files with 1402 additions and 0 deletions
29
src/app.h
Normal file
29
src/app.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef APP_H
|
||||
#define APP_H
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#include "channel.h"
|
||||
#include "player.h"
|
||||
#include "theme.h"
|
||||
#include "ui.h"
|
||||
|
||||
typedef struct App {
|
||||
SDL_Window *window;
|
||||
SDL_Renderer *renderer;
|
||||
SDL_Texture *video_texture;
|
||||
int texture_width;
|
||||
int texture_height;
|
||||
AppMode mode;
|
||||
int running;
|
||||
time_t app_start_time;
|
||||
ChannelList channels;
|
||||
Player player;
|
||||
UiFonts fonts;
|
||||
} App;
|
||||
|
||||
int app_init(App *app);
|
||||
void app_run(App *app);
|
||||
void app_destroy(App *app);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue