32 lines
629 B
C
32 lines
629 B
C
#ifndef RUNNING_H
|
|
#define RUNNING_H
|
|
#include "SDL_render.h"
|
|
#include "SDL_video.h"
|
|
|
|
typedef struct Window {
|
|
int width, height;
|
|
SDL_Window *window;
|
|
SDL_Renderer *renderer;
|
|
} Window;
|
|
|
|
typedef struct Game {
|
|
const char* title;
|
|
Window window;
|
|
} Game;
|
|
|
|
typedef struct Color {
|
|
int r,g,b,a;
|
|
} Color;
|
|
|
|
#define SQUARE (Color){0xC0,0XC0,0XC0,255}
|
|
#define BACKGROUND (Color){0x24,0x49,0X5E,255}
|
|
#define BUTTON (Color){0X2c,0X3E,0X50,255}
|
|
#define FLOW (Color){0xD9,0xD9,0xD9}
|
|
|
|
void initGame(const char* name, int width, int height);
|
|
void gameLoop();
|
|
void setColor(Color color);
|
|
void windowClose();
|
|
|
|
#endif //RUNNING_H
|