The R Project SVN R

Rev

Rev 14945 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14945 Rev 15641
Line 40... Line 40...
40
 *
40
 *
41
 *		red   = ((color	     ) & 255)
41
 *		red   = ((color	     ) & 255)
42
 *		green = ((color >>  8) & 255)
42
 *		green = ((color >>  8) & 255)
43
 *		blue  = ((color >> 16) & 255)
43
 *		blue  = ((color >> 16) & 255)
44
 */
44
 */
-
 
45
/*
-
 
46
 *	Changes from 1.4.0: use top 8 bits as an alpha channel.
-
 
47
 * 	0 = opaque, 255 = transparent.
-
 
48
 *	At present only 0 and >0 are used, with no semi-transparent.
-
 
49
 */
45
#define R_RGB(r,g,b)	((r)|((g)<<8)|((b)<<16))
50
#define R_RGB(r,g,b)	((r)|((g)<<8)|((b)<<16))
46
#define R_RED(col)	(((col)	   )&255)
51
#define R_RED(col)	(((col)	   )&255)
47
#define R_GREEN(col)	(((col)>> 8)&255)
52
#define R_GREEN(col)	(((col)>> 8)&255)
48
#define R_BLUE(col)	(((col)>>16)&255)
53
#define R_BLUE(col)	(((col)>>16)&255)
-
 
54
#define R_ALPHA(col)	(((col)>>24)&255)
-
 
55
#define R_OPAQUE(col)	(R_ALPHA(col) == 0)
49
 
56
 
50
/*
57
/*
51
 *	Some Notes on Line Textures
58
 *	Some Notes on Line Textures
52
 *
59
 *
53
 *	Line textures are stored as an array of 4-bit integers within
60
 *	Line textures are stored as an array of 4-bit integers within