-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonitor.h
More file actions
27 lines (23 loc) · 820 Bytes
/
Monitor.h
File metadata and controls
27 lines (23 loc) · 820 Bytes
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
#ifndef __MONITOR_H__
#define __MONITOR_H__
/*===================================
| INCLUDES |
====================================*/
#include "Global.h"
/*===================================
| DEFINES |
====================================*/
#define MONITOR_WIDTH 256
#define MONITOR_HEIGHT 256
#define PIXEL_DEFAULT 0
#define ROW_TOP 0
#define ROW_BOTTOM MONITOR_HEIGHT - 1
#define COL_LEFT 0
#define COL_RIGHT MONITOR_WIDTH - 1
/*===================================
| TYPEDEFS |
====================================*/
typedef char unsigned pixel;
typedef pixel monitor_buffer[MONITOR_WIDTH][MONITOR_HEIGHT];
typedef monitor_buffer* SimulatorMonitor;
#endif // __MONITOR_H__