2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=US-ASCII" >
2021-08-02 21:40:05 +01:00
< meta name = "generator" content = "ZealOS V0.13" >
2021-07-03 05:07:57 +01:00
< style type = "text/css" >
2021-07-29 03:20:15 +01:00
body {background-color:#fef1f0;}
.cF0{color:#000000;background-color:#fef1f0;}
.cF1{color:#0148a4;background-color:#fef1f0;}
.cF2{color:#3b7901;background-color:#fef1f0;}
.cF3{color:#057c7e;background-color:#fef1f0;}
.cF4{color:#bb2020;background-color:#fef1f0;}
.cF5{color:#9e42ae;background-color:#fef1f0;}
.cF6{color:#b57901;background-color:#fef1f0;}
.cF7{color:#b2b6af;background-color:#fef1f0;}
.cF8{color:#555753;background-color:#fef1f0;}
.cF9{color:#678fbb;background-color:#fef1f0;}
.cFA{color:#82bc49;background-color:#fef1f0;}
.cFB{color:#0097a2;background-color:#fef1f0;}
.cFC{color:#e26a6a;background-color:#fef1f0;}
.cFD{color:#c671bc;background-color:#fef1f0;}
.cFE{color:#c7ab00;background-color:#fef1f0;}
.cFF{color:#fef1f0;background-color:#fef1f0;}
2021-07-03 05:07:57 +01:00
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = "font-family:monospace;font-size:12pt" >
2021-08-05 04:05:19 +01:00
< a name = "l1" > < / a > < span class = cF0 > GR graphics files are 8-bits-per-pixels but only 4-bits of color, with transparency and no palette.
< a name = "l2" > < / a >
< a name = "l3" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > DCF_PALETTE< / span > < span class = cF0 > < / span > < span class = cFE > 1< / span > < span class = cF0 >
< a name = "l4" > < / a >
< a name = "l5" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > TRANSPARENT< / span > < span class = cF0 > < / span > < span class = cFE > 0xFF< / span > < span class = cF0 >
< a name = "l6" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > BLACK< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 >
< a name = "l7" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > BLUE< / span > < span class = cF0 > < / span > < span class = cFE > 1< / span > < span class = cF0 >
< a name = "l8" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > GREEN< / span > < span class = cF0 > < / span > < span class = cFE > 2< / span > < span class = cF0 >
< a name = "l9" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > CYAN< / span > < span class = cF0 > < / span > < span class = cFE > 3< / span > < span class = cF0 >
< a name = "l10" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > RED< / span > < span class = cF0 > < / span > < span class = cFE > 4< / span > < span class = cF0 >
< a name = "l11" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > PURPLE< / span > < span class = cF0 > < / span > < span class = cFE > 5< / span > < span class = cF0 >
< a name = "l12" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > BROWN< / span > < span class = cF0 > < / span > < span class = cFE > 6< / span > < span class = cF0 >
< a name = "l13" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > LTGRAY< / span > < span class = cF0 > < / span > < span class = cFE > 7< / span > < span class = cF0 >
< a name = "l14" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > DKGRAY< / span > < span class = cF0 > < / span > < span class = cFE > 8< / span > < span class = cF0 >
< a name = "l15" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > LTBLUE< / span > < span class = cF0 > < / span > < span class = cFE > 9< / span > < span class = cF0 >
< a name = "l16" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > LTGREEN< / span > < span class = cF0 > < / span > < span class = cFE > 10< / span > < span class = cF0 >
< a name = "l17" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > LTCYAN< / span > < span class = cF0 > < / span > < span class = cFE > 11< / span > < span class = cF0 >
< a name = "l18" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > LTRED< / span > < span class = cF0 > < / span > < span class = cFE > 12< / span > < span class = cF0 >
< a name = "l19" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > LTPURPLE< / span > < span class = cF0 > < / span > < span class = cFE > 13< / span > < span class = cF0 >
< a name = "l20" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > YELLOW< / span > < span class = cF0 > < / span > < span class = cFE > 14< / span > < span class = cF0 >
< a name = "l21" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > WHITE< / span > < span class = cF0 > < / span > < span class = cFE > 15< / span > < span class = cF0 >
< a name = "l22" > < / a >
< a name = "l23" > < / a > < / span > < span class = cF1 > class< / span > < span class = cF0 > < / span > < span class = cF9 > CBGR48< / span > < span class = cF0 >
< a name = "l24" > < / a > {
< a name = "l25" > < / a > < / span > < span class = cF9 > U16< / span > < span class = cF0 > r, g, b, pad;
< a name = "l26" > < / a > };
< a name = "l27" > < / a >
< a name = "l28" > < / a > < / span > < span class = cF9 > CBGR48< / span > < span class = cF0 > gr_palette_std[< / span > < span class = cFE > 16< / span > < span class = cF0 > ] = {
2021-07-03 05:07:57 +01:00
< a name = "l29" > < / a >
2021-08-05 04:05:19 +01:00
< a name = "l30" > < / a > < / span > < span class = cFE > 0x000000000000< / span > < span class = cF0 > , < / span > < span class = cFE > 0x00000000AAAA< / span > < span class = cF0 > , < / span > < span class = cFE > 0x0000AAAA0000< / span > < span class = cF0 > , < / span > < span class = cFE > 0x0000AAAAAAAA< / span > < span class = cF0 > ,
< a name = "l31" > < / a > < / span > < span class = cFE > 0xAAAA00000000< / span > < span class = cF0 > , < / span > < span class = cFE > 0xAAAA0000AAAA< / span > < span class = cF0 > , < / span > < span class = cFE > 0xAAAA55550000< / span > < span class = cF0 > , < / span > < span class = cFE > 0xAAAAAAAAAAAA< / span > < span class = cF0 > ,
< a name = "l32" > < / a > < / span > < span class = cFE > 0x555555555555< / span > < span class = cF0 > , < / span > < span class = cFE > 0x55555555FFFF< / span > < span class = cF0 > , < / span > < span class = cFE > 0x5555FFFF5555< / span > < span class = cF0 > , < / span > < span class = cFE > 0x5555FFFFFFFF< / span > < span class = cF0 > ,
< a name = "l33" > < / a > < / span > < span class = cFE > 0xFFFF55555555< / span > < span class = cF0 > , < / span > < span class = cFE > 0xFFFF5555FFFF< / span > < span class = cF0 > , < / span > < span class = cFE > 0xFFFFFFFF5555< / span > < span class = cF0 > , < / span > < span class = cFE > 0xFFFFFFFFFFFF< / span > < span class = cF0 > };
< a name = "l34" > < / a >
< a name = "l35" > < / a > < / span > < span class = cF1 > class< / span > < span class = cF0 > GRFile
< a name = "l36" > < / a > {
< a name = "l37" > < / a > < / span > < span class = cF9 > I32< / span > < span class = cF0 > width;
< a name = "l38" > < / a > < / span > < span class = cF9 > I32< / span > < span class = cF0 > width_internal; < / span > < span class = cF2 > //Rounded-up to multiple of 8.< / span > < span class = cF0 >
< a name = "l39" > < / a > < / span > < span class = cF9 > I32< / span > < span class = cF0 > height;
< a name = "l40" > < / a > < / span > < span class = cF9 > I32< / span > < span class = cF0 > flags;
< a name = "l41" > < / a > < / span > < span class = cF9 > CBGR48< / span > < span class = cF0 > palette[< / span > < span class = cFE > 16< / span > < span class = cF0 > ]; < / span > < span class = cF2 > //Included if DCF_PALETTE.< / span > < span class = cF0 >
< a name = "l42" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > body[];
< a name = "l43" > < / a > };
< a name = "l44" > < / a >
< a name = "l45" > < / a > See < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/System/Gr/GrDC.CC.html#l318" > < span class = cF4 > DCSave< / span > < / a > < span class = cF0 > (), < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/System/Gr/GrDC.CC.html#l404" > < span class = cF4 > GRWrite< / span > < / a > < span class = cF0 > (), < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/System/Gr/GrDC.CC.html#l362" > < span class = cF4 > DCLoad< / span > < / a > < span class = cF0 > (), and < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/System/Gr/GrDC.CC.html#l415" > < span class = cF4 > GRRead< / span > < / a > < span class = cF0 > ().
2021-07-03 05:07:57 +01:00
< / span > < / pre > < / body >
< / html >