<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transistional//EN"><html><head><title>OpenLayer Offline Manual</title><style type="text/css" media="all">@import "../CrystalStyle.css";</style><body bgcolor="FFFFFF" ><div align="center" style="pagestyle"><table width="60%"><tr><td><div class="parentLinks"><a href="../index.html">OpenLayer</a> | <a href="../Shape.html">Shape</a> | <a href="../Shape/DrawRecord.html">DrawRecord</a></div><br><div class="BigHeader">DrawRecord</div><br><div class=""><div class="Surrounded"><table><tr valign="top"><td align="right"><div class="FuncDef"><strong><font color="#777733">inline</font> <font color="#777733">void</font> <a href="../Shape/DrawRecord.html"><font color="#0000CC">DrawRecord</font></a>(</strong></div></td><td><div class="FuncDef"><strong><font color="#777733">const</font> <a href="../Rgba.html"><font color="#0000CC">Rgba</font></a> &color ) <font color="#777733">const</font>
<br></strong></div></td></tr></table>
<br>Draws the latest record created by calling <a href="../Shape/RecordDraw.html"><font color="#0000CC">RecordDraw</font></a>.
<br></div>
<br>If you need to render the primitive the same way many times in a row, it'll be faster to create a record once and draw the same record to the screen several times.</div><br><div class="MediumHeader">Examples</div><br><div class="Code"><a href="../Shape.html"><font color="#0000CC">Shape</font></a> *myShape = new <a href="../Ellipse/Circle.html"><font color="#0000CC">Circle</font></a>(...);
<br>
<br><font color="#999922">// Store the results of the Draw-function to a record //</font>
<br>myShape->RecordDraw();
<br>
<br><font color="#999922">// Draw the record to the screen in black (outputs a black circle to the screen) //</font>
<br>myShape->DrawRecord( <a href="../Rgba.html"><font color="#0000CC">Rgba</font></a>::BLACK );</div><div class=""><br><br><div class="MediumHeader">Other functions of the class <a href="../Shape.html"><font color="#0000CC">Shape</font></a></div><div class="Surrounded"><table size="100%" cellpadding="0" cellspacing="0"><tr><td halign="center" class="funclist"><a href="../Shape/Draw.html">Draw</a></td><td width="65%" halign="center"><div class="smalltext">Draws the shape filled with the specified color</div></td></tr><tr><td halign="center" class="funclist"><a href="../Shape/DrawOutline.html">DrawOutline</a></td><td width="65%" halign="center"><div class="smalltext">Draws the outline of the shape</div></td></tr><tr><td halign="center" class="funclist"><a href="../Shape/RecordDraw.html">RecordDraw</a></td><td width="65%" halign="center"><div class="smalltext">Records the results of Draw-function</div></td></tr><tr><td halign="center" class="funclist"><a href="../Shape/MoveBy.html">MoveBy</a></td><td width="65%" halign="center"><div class="smalltext">Moves the shape</div></td></tr><tr><td halign="center" class="funclist"><a href="../Shape/SetLineWidth.html">SetLineWidth</a></td><td width="65%" halign="center"><div class="smalltext">Sets the width of the outline of the shape</div></td></tr><tr><td halign="center" class="funclist"><a href="../Shape/GetLineWidth.html">GetLineWidth</a></td><td width="65%" halign="center"><div class="smalltext">Returns the width of the outline of the shape</div></td></tr><tr><td halign="center" class="funclist"><a href="../Shape/DrawRecord.html">DrawRecord</a></td><td width="65%" halign="center"><div class="smalltext">Draws the latest record created by RecordDraw</div></td></tr><tr><td halign="center" class="funclist"><a href="../Shape/RotateBy.html">RotateBy</a></td><td width="65%" halign="center"><div class="smalltext">Rotates the shape by the specified angle</div></td></tr><tr><td halign="center" class="funclist"><a href="../Shape/TransformBy.html">TransformBy</a></td><td width="65%" halign="center"><div class="smalltext">Transforms the shape by a Placement</div></td></tr></table></div><br><div class=""><a href="../index.html">Back to the main page of the manual</a></div><br>Questions about DrawRecord? Click <a href="http://crystalstorm.ath.cx/index.php?lan=en&page=CreateFeedback&subject=DrawRecord">here.</a></div></td></tr></table></body></html>
|