Difference between revisions of "Dimension2d"

From King Arthur's Gold Wiki
Jump to: navigation, search
Line 3: Line 3:
 
</onlyinclude>
 
</onlyinclude>
  
<syntaxhighlight lang="cpp>
+
<syntaxhighlight lang="cpp">
 
dimension2di dim ( const uint, const uint )
 
dimension2di dim ( const uint, const uint )
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 06:01, 28 September 2012

The Dimension2d types are used for positioning things such as GUI elements. It is similar to the Vec2f type, but takes unsigned integers.


dimension2di dim ( const uint, const uint )

Example

GUI::DrawWindow(recti(position2di(pos.x, pos.y), dimension2di(50, 70)));