1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 22 span.virtual_style 23 { 24 font-size : 8pt; 25 color : white; 26 font-weight : bold; 27 background : #0a0; 28 border-left : solid 1px #0f0; 29 border-top : solid 1px #0f0; 30 border-right : solid 1px #060; 31 border-bottom : solid 1px #060; 32 padding-left : 2px; 33 padding-right : 2px; 34 } 35 36 span.protected_style 37 { 38 font-size : 8pt; 39 color : white; 40 font-weight : bold; 41 background : #444; 42 border-left : solid 1px #ccc; 43 border-top : solid 1px #ccc; 44 border-right : solid 1px #222; 45 border-bottom : solid 1px #222; 46 padding-left : 2px; 47 padding-right : 2px; 48 } 49 --></style> 50 <title>nw::demo::GraphicsDrawing</title> 51 </head> 52 <body> 53 <h1><CODE><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/demo/Overview.html">demo</a>::GraphicsDrawing</CODE> Class</h1> 54 <h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition">class GraphicsDrawing</pre> 57 </div> 58 <h2>Description</h2> 59 <div class="section"> 60 <p>Class for drawing characters and primitives for demos.</p> 61 </div> 62 <a name="function" id="function"> 63 <h2>Member Functions</h2> 64 <div class="section"> 65 <table class="members"> 66 <tr> 67 <th class="category" colspan="3">Constructors and Destructors</th> 68 </tr> 69 <tr> 70 <td width="100"> </td> 71 <th> 72 <a href="../../../nw/demo/GraphicsDrawing/SetScreenSize.html"><CODE>SetScreenSize</CODE></a> 73 </th> 74 <td>Sets the screen size.</td> 75 </tr> 76 <tr> 77 <td width="100"> </td> 78 <th> 79 <a href="../../../nw/demo/GraphicsDrawing/GraphicsDrawing.html"><CODE>GraphicsDrawing</CODE></a> 80 </th> 81 <td>Constructor.</td> 82 </tr> 83 <tr> 84 <td width="100"> </td> 85 <th> 86 <a href="../../../nw/demo/GraphicsDrawing/~GraphicsDrawing.html"><CODE>~GraphicsDrawing</CODE></a> 87 </th> 88 <td>Destructor.</td> 89 </tr> 90 <tr> 91 <th class="category" colspan="3">Shape Drawing</th> 92 </tr> 93 <tr> 94 <td width="100"> </td> 95 <th> 96 <a href="../../../nw/demo/GraphicsDrawing/InitializeShape.html"><CODE><CODE>InitializeShape</CODE></CODE></a> 97 </th> 98 <td>Initializes shape rendering.</td> 99 </tr> 100 <tr> 101 <td width="100"> </td> 102 <th> 103 <a href="../../../nw/demo/GraphicsDrawing/DestroyShape.html"><CODE><CODE>DestroyShape</CODE></CODE></a> 104 </th> 105 <td>Destroys a shape resource.</td> 106 </tr> 107 <tr> 108 <td width="100"> </td> 109 <th> 110 <a href="../../../nw/demo/GraphicsDrawing/SetupShape.html"><CODE>SetupShape</CODE></a> 111 </th> 112 <td>Sets up shape rendering.</td> 113 </tr> 114 <tr> 115 <td width="100"> </td> 116 <th> 117 <a href="../../../nw/demo/GraphicsDrawing/SetMaxShapeVertexCount.html"><CODE>SetMaxShapeVertexCount</CODE></a> 118 </th> 119 <td>Sets the maximum number of vertices to render in shape rendering.</td> 120 </tr> 121 <tr> 122 <td width="100"> </td> 123 <th> 124 <a href="../../../nw/demo/GraphicsDrawing/SetLineWidth.html"><CODE>SetLineWidth</CODE></a> 125 </th> 126 <td>Sets the line size.</td> 127 </tr> 128 <tr> 129 <td width="100"> </td> 130 <th> 131 <a href="../../../nw/demo/GraphicsDrawing/BeginDrawingShape.html"><CODE>BeginDrawingShape</CODE></a> 132 </th> 133 <td>Function that starts shape rendering.</td> 134 </tr> 135 <tr> 136 <td width="100"> </td> 137 <th> 138 <a href="../../../nw/demo/GraphicsDrawing/EndDrawingShape.html"><CODE>EndDrawingShape</CODE></a> 139 </th> 140 <td>Function that ends shape rendering.</td> 141 </tr> 142 <tr> 143 <td width="100"> </td> 144 <th> 145 <a href="../../../nw/demo/GraphicsDrawing/DrawLine.html"><CODE>DrawLine</CODE></a> 146 </th> 147 <td>Draws a line. The CPU generates the vertices without using a line shader.</td> 148 </tr> 149 <tr> 150 <td width="100"> </td> 151 <th> 152 <a href="../../../nw/demo/GraphicsDrawing/DrawRectangle.html"><CODE>DrawRectangle</CODE></a> 153 </th> 154 <td>Renders a line in the shape of a rectangle. The CPU generates the vertices without using a line shader.</td> 155 </tr> 156 <tr> 157 <td width="100"> </td> 158 <th> 159 <a href="../../../nw/demo/GraphicsDrawing/FillRectangle.html"><CODE>FillRectangle</CODE></a> 160 </th> 161 <td>Draws a rectangle.</td> 162 </tr> 163 <tr> 164 <td width="100"> </td> 165 <th> 166 <a href="../../../nw/demo/GraphicsDrawing/FillTriangle.html"><CODE>FillTriangle</CODE></a> 167 </th> 168 <td>Draws a triangle.</td> 169 </tr> 170 <tr> 171 <td width="100"> </td> 172 <th> 173 <a href="../../../nw/demo/GraphicsDrawing/FillTriangles.html"><CODE>FillTriangles</CODE></a> 174 </th> 175 <td>Draws a triangle.</td> 176 </tr> 177 <tr> 178 <th class="category" colspan="3">Font Drawing</th> 179 </tr> 180 <tr> 181 <td width="100"> </td> 182 <th> 183 <a href="../../../nw/demo/GraphicsDrawing/SetMaxTextCount.html"><CODE>SetMaxTextCount</CODE></a> 184 </th> 185 <td>Specifies the maximum number of characters that can be drawn.</td> 186 </tr> 187 <tr> 188 <td width="100"> </td> 189 <th> 190 <a href="../../../nw/demo/GraphicsDrawing/InitializeFont.html"><CODE>InitializeFont</CODE></a> 191 </th> 192 <td>Initializes a font.</td> 193 </tr> 194 <tr> 195 <td width="100"> </td> 196 <th> 197 <a href="../../../nw/demo/GraphicsDrawing/DestroyFont.html"><CODE>DestroyFont</CODE></a> 198 </th> 199 <td>Destroys a font.</td> 200 </tr> 201 <tr> 202 <td width="100"> </td> 203 <th> 204 <a href="../../../nw/demo/GraphicsDrawing/BeginDrawingString.html"><CODE>BeginDrawingString</CODE></a> 205 </th> 206 <td><CODE>demo::GraphicsDrawing</CODE> class function for starting font rendering.</td> 207 </tr> 208 <tr> 209 <td width="100"> </td> 210 <th> 211 <a href="../../../nw/demo/GraphicsDrawing/DrawString.html"><CODE>DrawString</CODE></a> 212 </th> 213 <td>Draws a string.</td> 214 </tr> 215 <tr> 216 <td width="100"> </td> 217 <th> 218 <a href="../../../nw/demo/GraphicsDrawing/DrawStringArgs.html"><CODE>DrawStringArgs</CODE></a> 219 </th> 220 <td>Draws a text string at the specified position.</td> 221 </tr> 222 <tr> 223 <td width="100"> </td> 224 <th> 225 <a href="../../../nw/demo/GraphicsDrawing/GetWriter.html"><CODE>GetWriter</CODE></a> 226 </th> 227 <td>Gets a demo text writer.</td> 228 </tr> 229 <tr> 230 <td width="100"> </td> 231 <th> 232 <a href="../../../nw/demo/GraphicsDrawing/EndDrawingString.html"><CODE>EndDrawingString</CODE></a> 233 </th> 234 <td>Finalizes font rendering.</td> 235 </tr> 236 <tr> 237 <th class="category" colspan="3">Other</th> 238 </tr> 239 <tr> 240 <td width="100"> </td> 241 <th> 242 <a href="../../../nw/demo/GraphicsDrawing/Finalize.html"><CODE>Finalize</CODE></a> 243 </th> 244 <td>Destroys a resource.</td> 245 </tr> </table> 246 </div> 247 </a> 248 <hr><p>CONFIDENTIAL</p></body> 249</html>