mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[renderer] Make cross hair data easier to see in code
It is rather hard to pick out an image from a mass of 0xff and 0xfe.
This commit is contained in:
parent
bffe9413b7
commit
2a1255de59
1 changed files with 36 additions and 32 deletions
|
@ -35,46 +35,50 @@
|
||||||
|
|
||||||
#include "r_internal.h"
|
#include "r_internal.h"
|
||||||
|
|
||||||
|
#define _ 0xff
|
||||||
|
#define X 0xfe
|
||||||
// NOTE: this array is INCORRECT for direct uploading in GL
|
// NOTE: this array is INCORRECT for direct uploading in GL
|
||||||
// but is optimal for SW
|
// but is optimal for SW
|
||||||
byte crosshair_data[CROSSHAIR_WIDTH * CROSSHAIR_HEIGHT * CROSSHAIR_COUNT] = {
|
byte crosshair_data[CROSSHAIR_WIDTH * CROSSHAIR_HEIGHT * CROSSHAIR_COUNT] = {
|
||||||
0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,X,_,_,_,_,
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,_,_,_,_,_,
|
||||||
0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,X,_,_,_,_,
|
||||||
0xfe, 0xff, 0xfe, 0xff, 0xfe, 0xff, 0xfe, 0xff,
|
X,_,X,_,X,_,X,_,
|
||||||
0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,X,_,_,_,_,
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,_,_,_,_,_,
|
||||||
0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,X,_,_,_,_,
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,_,_,_,_,_,
|
||||||
|
|
||||||
0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff,
|
X,_,_,_,_,_,X,_,
|
||||||
0xff, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff,
|
_,X,_,_,_,X,_,_,
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,_,_,_,_,_,
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,_,_,_,_,_,
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,_,_,_,_,_,
|
||||||
0xff, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff,
|
_,X,_,_,_,X,_,_,
|
||||||
0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff,
|
X,_,_,_,_,_,X,_,
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
_,_,_,_,_,_,_,_,
|
||||||
|
|
||||||
//From FitzQuake
|
//From FitzQuake
|
||||||
255,255,255,255,255,255,255,255,
|
_,_,_,_,_,_,_,_,
|
||||||
255,255,255, 8, 9,255,255,255,
|
_,_,_,8,9,_,_,_,
|
||||||
255,255,255, 6, 8, 2,255,255,
|
_,_,_,6,8,2,_,_,
|
||||||
255, 6, 8, 8, 6, 8, 8,255,
|
_,6,8,8,6,8,8,_,
|
||||||
255,255, 2, 8, 8, 2, 2, 2,
|
_,_,2,8,8,2,2,2,
|
||||||
255,255,255, 7, 8, 2,255,255,
|
_,_,_,7,8,2,_,_,
|
||||||
255,255,255,255, 2, 2,255,255,
|
_,_,_,_,2,2,_,_,
|
||||||
255,255,255,255,255,255,255,255,
|
_,_,_,_,_,_,_,_,
|
||||||
|
|
||||||
0xff,0xff,0xfe,0xfe,0xfe,0xff,0xff,0xff,
|
_,_,X,X,X,_,_,_,
|
||||||
0xff,0xfe,0xff,0xff,0xff,0xfe,0xff,0xff,
|
_,X,_,_,_,X,_,_,
|
||||||
0xfe,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,
|
X,_,_,_,_,_,X,_,
|
||||||
0xfe,0xff,0xff,0xfe,0xff,0xff,0xfe,0xff,
|
X,_,_,X,_,_,X,_,
|
||||||
0xfe,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,
|
X,_,_,_,_,_,X,_,
|
||||||
0xff,0xfe,0xff,0xff,0xff,0xfe,0xff,0xff,
|
_,X,_,_,_,X,_,_,
|
||||||
0xff,0xff,0xfe,0xfe,0xfe,0xff,0xff,0xff,
|
_,_,X,X,X,_,_,_,
|
||||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
_,_,_,_,_,_,_,_,
|
||||||
};
|
};
|
||||||
|
#undef _
|
||||||
|
#undef X
|
||||||
|
|
||||||
qpic_t *
|
qpic_t *
|
||||||
Draw_CrosshairPic (void)
|
Draw_CrosshairPic (void)
|
||||||
|
|
Loading…
Reference in a new issue