mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-28 00:06:35 +00:00
74 lines
7.2 KiB
HTML
Executable file
74 lines
7.2 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
|
<meta name="generator" content="ZealOS V1.07">
|
|
<style type="text/css">
|
|
body {background-color:#1f1f1f;}
|
|
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
|
|
.cF1{color:#4f84a6;background-color:#1f1f1f;}
|
|
.cF2{color:#73a255;background-color:#1f1f1f;}
|
|
.cF3{color:#297582;background-color:#1f1f1f;}
|
|
.cF4{color:#b34f4b;background-color:#1f1f1f;}
|
|
.cF5{color:#8a52c3;background-color:#1f1f1f;}
|
|
.cF6{color:#b7822f;background-color:#1f1f1f;}
|
|
.cF7{color:#444444;background-color:#1f1f1f;}
|
|
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
|
|
.cF9{color:#94bfde;background-color:#1f1f1f;}
|
|
.cFA{color:#a1ce97;background-color:#1f1f1f;}
|
|
.cFB{color:#6db4be;background-color:#1f1f1f;}
|
|
.cFC{color:#e88e88;background-color:#1f1f1f;}
|
|
.cFD{color:#ca94e8;background-color:#1f1f1f;}
|
|
.cFE{color:#d4b475;background-color:#1f1f1f;}
|
|
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre style="font-family:monospace;font-size:12pt">
|
|
<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>] = {
|
|
<a name="l29"></a>
|
|
<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.ZC.html#l318"><span class=cF4>DCSave</span></a><span class=cF0>(), </span><a href="https://zeal-operating-system.github.io/ZealOS/System/Gr/GrDC.ZC.html#l404"><span class=cF4>GRWrite</span></a><span class=cF0>(), </span><a href="https://zeal-operating-system.github.io/ZealOS/System/Gr/GrDC.ZC.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.ZC.html#l415"><span class=cF4>GRRead</span></a><span class=cF0>().
|
|
</span></pre></body>
|
|
</html>
|