templeos-info/public/Wb/Doc/TextBase.DD.HTML

51 lines
4.0 KiB
Plaintext
Raw Normal View History

2024-03-23 13:40:50 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width">
2024-03-23 13:40:50 +00:00
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre style="font-family: courier, monospace; font-size: 10pt;">
<a name="l1"></a><a href="/Wb/Adam/Gr/GrGlbls.HC#l3"><span class=cF4>gr.text_base</span></a><span class=cF0> must be updated 30fps in your Fs-&gt;draw_it() callback. You probably
<a name="l2"></a>want </span><a href="/Wb/Adam/Gr/GrBitMap.HC#l989"><span class=cF4>GrPrint</span></a><span class=cF0>() or just </span><a href="/Wb/Kernel/StrPrint.HC#l890"><span class=cF4>Print</span></a><span class=cF0>(). The </span><a href="/Wb/Doc/DolDocOverview.DD.HTML#l1"><span class=cF4>DolDoc</span></a><span class=cF0> code takes care of plotting text to </span><span class=cF4>
<a name="l3"></a></span><a href="/Wb/Adam/Gr/GrGlbls.HC#l3"><span class=cF4>gr.text_base</span></a><span class=cF0>.
<a name="l4"></a>
<a name="l5"></a>Bits 0-7 8-Bit ASCII Scrn Code
<a name="l6"></a>Bits 8-11 Foreground </span><a href="/Wb/Kernel/KernelA.HH#l2914"><span class=cF4>color</span></a><span class=cF0>
<a name="l7"></a>Bits 12-15 Background </span><a href="/Wb/Kernel/KernelA.HH#l2914"><span class=cF4>color</span></a><span class=cF0>
<a name="l8"></a>Bits 16-20 Signed X pos shift val
<a name="l9"></a>Bits 21-25 Signed Y pos shift val
<a name="l10"></a>Bit 28 </span><a href="/Wb/Kernel/KernelA.HH#l893"><span class=cF4>Blink</span></a><span class=cF0>
<a name="l11"></a>Bit 29 </span><a href="/Wb/Kernel/KernelA.HH#l894"><span class=cF4>Invert</span></a><span class=cF0>ed (Swap foreground and background)
<a name="l12"></a>Bit 30 </span><a href="/Wb/Kernel/KernelA.HH#l895"><span class=cF4>Sel</span></a><span class=cF0> (XOR colors with FF)
<a name="l13"></a>Bit 31 </span><a href="/Wb/Kernel/KernelA.HH#l896"><span class=cF4>Underline</span></a><span class=cF0>
<a name="l14"></a></span><span class=cF4>
<a name="l15"></a></span><a href="/Wb/Adam/Gr/GrScrn.HC#l18"><span class=cF4>GrUpdateTaskWin</span></a><span class=cF0>() calls </span><a href="/Wb/Adam/DolDoc/DocRecalcLib.HC#l193"><span class=cF4>DocUpdateTaskDocs</span></a><span class=cF0>() which calls </span><a href="/Wb/Adam/DolDoc/DocRecalc.HC#l256"><span class=cF4>DocRecalc</span></a><span class=cF0>() where the
<a name="l16"></a>document text is plotted into </span><a href="/Wb/Adam/Gr/GrGlbls.HC#l3"><span class=cF4>gr.text_base</span></a><span class=cF0>. Then, </span><a href="/Wb/Adam/Gr/GrScrn.HC#l166"><span class=cF4>GrUpdateTextBG</span></a><span class=cF0>() and </span><span class=cF4>
<a name="l17"></a></span><a href="/Wb/Adam/Gr/GrScrn.HC#l255"><span class=cF4>GrUpdateTextFG</span></a><span class=cF0>() render the </span><a href="/Wb/Adam/Gr/GrGlbls.HC#l3"><span class=cF4>gr.text_base</span></a><span class=cF0> onto </span><a href="/Wb/Adam/Gr/GrGlbls.HC#l3"><span class=cF4>gr.dc2</span></a><span class=cF0>, a raw graphic bitmap.
<a name="l18"></a>
<a name="l19"></a>See </span><a href="/Wb/Demo/Games/Maze.HC#l1"><span class=cF4>::/Demo/Games/Maze.HC</span></a><span class=cF0>.
</span></pre></body>
</html>