1 2 3 4 5 6 7 8 9 10 11 12
|
<!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/Point.html">Point</a></div><br><div class="BigHeader">Point</div><br><div class="">A single point
<br>
<br><div class="Surrounded"><table><tr valign="top"><td align="right"><div class="FuncDef"><strong><a href="../Shape/Point.html"><font color="#0000CC">Point</font></a>(</strong></div></td><td><div class="FuncDef"><strong><font color="#777733">float</font> x, <font color="#777733">float</font> y )
<br></strong></div></td></tr></table>
<br>Creates a new point with the specified position.
<br></div>
<br><div class="Surrounded"><table><tr valign="top"><td align="right"><div class="FuncDef"><strong><a href="../Shape/Point.html"><font color="#0000CC">Point</font></a>(</strong></div></td><td><div class="FuncDef"><strong><a href="../Vec2D.html"><font color="#0000CC">Vec2D</font></a> pos )
<br></strong></div></td></tr></table>
<br>Same as above but by using a position vector.
<br></div>
<br></div><br><div class="MediumHeader">Examples</div><br><div class="Code"><font color="#999922">// Render a blue point at x = 200.0, y = 100.0 //</font>
<br><a href="../Shape/Point.html"><font color="#0000CC">Point</font></a>( <font color="#994400">200.0</font>, <font color="#994400">100.0</font> ).<a href="../Poly/Draw.html"><font color="#0000CC">Draw</font></a>( <a href="../Rgba.html"><font color="#0000CC">Rgba</font></a>::BLUE );</div><div class=""><br><br><div class="MediumHeader">Member functions</div><div class="Surrounded"><table size="100%" cellpadding="0" cellspacing="0"><tr><td halign="center" class="funclist"><a href="../Point/Draw.html">Draw</a></td><td width="65%" halign="center"><div class="smalltext">Draws the point with the specified color</div></td></tr><tr><td halign="center" class="funclist"><a href="../Point/StartFastDrawing.html">StartFastDrawing</a></td><td width="65%" halign="center"><div class="smalltext">Call this function before using FastPoint</div></td></tr><tr><td halign="center" class="funclist"><a href="../Point/DrawFast.html">DrawFast</a></td><td width="65%" halign="center"><div class="smalltext">A faster version of Draw</div></td></tr><tr><td halign="center" class="funclist"><a href="../Point/FinishFastDrawing.html">FinishFastDrawing</a></td><td width="65%" halign="center"><div class="smalltext">Should be called after using DrawFast</div></td></tr></table></div><br><div class="MediumHeader">Parent Class</div><div class="Surrounded"><a href="../Shape.html">Shape</a></div><br><div class=""><a href="../index.html">Back to the main page of the manual</a></div><br>Questions about Point? Click <a href="http://crystalstorm.ath.cx/index.php?lan=en&page=CreateFeedback&subject=Point">here.</a></div></td></tr></table></body></html>
|