-
Notifications
You must be signed in to change notification settings - Fork 0
/
drawing.h
62 lines (47 loc) · 1.48 KB
/
drawing.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
#ifndef DRAWING_H
#define DRAWING_H
//
// Display / GPU vars
//
// we could set this lower to do the C64 intro properly
// but a lot of modern hardware is iffy about res switches
// e.g. my elgato fails about 1 in 20 times and that's not acceptable
#define SCREEN_WIDTH 512 // screen width
#define SCREEN_HEIGHT 240 // screen height
#define PACKETMAX 18
#define LIGHTGREEN 0x0000745A
//#define BACKGREEN 0x004CA7CB
#define BACKGREEN 0x00222222
#define LIGHTBLUE 0x007070DE
//#define LIGHTBLUE 0x00867ADE
//#define BACKBLUE 0x003232FA
#define BACKBLUE 0x00224477
// For screen layout
#define CHARWIDTH 8
#define CHARHEIGHT 8
#define HALFCHAR 4
// Vsycn, draw, timing, etc
void Draw();
void InitBuffer();
// Character logging
void BlahNewline();
void BlahChar( char inChar );
void Blah( char* pMSG, ... );
void ClearScreenText();
unsigned long GetLogBuffer();
unsigned long GetLogBufferEnd();
void DrawGitQR();
// Various drwawing primitives
void DrawBG();
void DBorder();
void HoldMessage();
void Highlight( int inX, int inY, int inWidth, int inHeight );
void Outline( int inX, int inY, int inWidth, int inHeight );
void BorderTile( int inX, int inY, int inWidth, int inHeight );
void Pulse( int inX, int inY, int inWidth, int inHeight );
void RasterBorder();
unsigned long GetFrameCount();
#endif