-
Notifications
You must be signed in to change notification settings - Fork 0
/
pbp.h
40 lines (36 loc) · 885 Bytes
/
pbp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @file pbp.h
* @author Anthony (ajxs [at] panoptic.online)
* @brief Main program header.
* Contains global variables needed for the application.
* @version 1.1
* @date 2020
*/
#ifndef PBP_H
#define PBP_H
/** The height and width of the main window. */
#define WINDOW_WIDTH 1024
#define WINDOW_HEIGHT 768
/** Number of random squares to plot per iteration. */
#define SQUARES_PER_CYCLE 50
#define SQUARE_MAX_SIZE 5
#define SQUARE_MIN_SIZE 1
/** The maximum size to display each image. */
#define MAX_DISPLAY_SIZE 500
/**
* @brief Main window.
* The main SDL window.
*/
SDL_Window *main_window = NULL;
/**
* @brief Main screen.
* The main SDL screen.
*/
SDL_Surface *main_screen;
/**
* @brief Source and destination render surfaces.
* Used for rendering the source and destination images.
*/
SDL_Surface *source_surface;
SDL_Surface *destination_surface;
#endif