mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +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"
|
||||
|
||||
#define _ 0xff
|
||||
#define X 0xfe
|
||||
// NOTE: this array is INCORRECT for direct uploading in GL
|
||||
// but is optimal for SW
|
||||
byte crosshair_data[CROSSHAIR_WIDTH * CROSSHAIR_HEIGHT * CROSSHAIR_COUNT] = {
|
||||
0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff,
|
||||
0xfe, 0xff, 0xfe, 0xff, 0xfe, 0xff, 0xfe, 0xff,
|
||||
0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
_,_,_,X,_,_,_,_,
|
||||
_,_,_,_,_,_,_,_,
|
||||
_,_,_,X,_,_,_,_,
|
||||
X,_,X,_,X,_,X,_,
|
||||
_,_,_,X,_,_,_,_,
|
||||
_,_,_,_,_,_,_,_,
|
||||
_,_,_,X,_,_,_,_,
|
||||
_,_,_,_,_,_,_,_,
|
||||
|
||||
0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff,
|
||||
0xff, 0xfe, 0xff, 0xff, 0xff, 0xfe, 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, 0xff,
|
||||
0xff, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff,
|
||||
0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
X,_,_,_,_,_,X,_,
|
||||
_,X,_,_,_,X,_,_,
|
||||
_,_,_,_,_,_,_,_,
|
||||
_,_,_,_,_,_,_,_,
|
||||
_,_,_,_,_,_,_,_,
|
||||
_,X,_,_,_,X,_,_,
|
||||
X,_,_,_,_,_,X,_,
|
||||
_,_,_,_,_,_,_,_,
|
||||
|
||||
//From FitzQuake
|
||||
255,255,255,255,255,255,255,255,
|
||||
255,255,255, 8, 9,255,255,255,
|
||||
255,255,255, 6, 8, 2,255,255,
|
||||
255, 6, 8, 8, 6, 8, 8,255,
|
||||
255,255, 2, 8, 8, 2, 2, 2,
|
||||
255,255,255, 7, 8, 2,255,255,
|
||||
255,255,255,255, 2, 2,255,255,
|
||||
255,255,255,255,255,255,255,255,
|
||||
_,_,_,_,_,_,_,_,
|
||||
_,_,_,8,9,_,_,_,
|
||||
_,_,_,6,8,2,_,_,
|
||||
_,6,8,8,6,8,8,_,
|
||||
_,_,2,8,8,2,2,2,
|
||||
_,_,_,7,8,2,_,_,
|
||||
_,_,_,_,2,2,_,_,
|
||||
_,_,_,_,_,_,_,_,
|
||||
|
||||
0xff,0xff,0xfe,0xfe,0xfe,0xff,0xff,0xff,
|
||||
0xff,0xfe,0xff,0xff,0xff,0xfe,0xff,0xff,
|
||||
0xfe,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,
|
||||
0xfe,0xff,0xff,0xfe,0xff,0xff,0xfe,0xff,
|
||||
0xfe,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,
|
||||
0xff,0xfe,0xff,0xff,0xff,0xfe,0xff,0xff,
|
||||
0xff,0xff,0xfe,0xfe,0xfe,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
_,_,X,X,X,_,_,_,
|
||||
_,X,_,_,_,X,_,_,
|
||||
X,_,_,_,_,_,X,_,
|
||||
X,_,_,X,_,_,X,_,
|
||||
X,_,_,_,_,_,X,_,
|
||||
_,X,_,_,_,X,_,_,
|
||||
_,_,X,X,X,_,_,_,
|
||||
_,_,_,_,_,_,_,_,
|
||||
};
|
||||
#undef _
|
||||
#undef X
|
||||
|
||||
qpic_t *
|
||||
Draw_CrosshairPic (void)
|
||||
|
|
Loading…
Reference in a new issue