Difference between revisions of "Dimension2d"
From King Arthur's Gold Wiki
(Created page with "<onlyinclude> The Dimension2d types are used for positioning elements such as GUI elements. It is similar to the Vec2f but takes unsigned integers. </onlyinclude> {| class="wik...") |
m |
||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
| − | The Dimension2d types are used for positioning | + | The Dimension2d types are used for positioning things such as GUI elements. It is similar to the Vec2f type, but takes unsigned integers. |
</onlyinclude> | </onlyinclude> | ||
| Line 8: | Line 8: | ||
! '''Description''' | ! '''Description''' | ||
|- | |- | ||
| − | | | + | | {{:dimension2di}} |
| − | | | + | | {{:dimension2di ( const uint, const uint )}} |
|- | |- | ||
| − | | | + | | {{:position2di}} |
| − | | | + | | {{:position2di ( const uint, const uint )}} |
|- | |- | ||
|} | |} | ||
Revision as of 04:41, 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.
| Types | Description |
|---|---|
| Dimension2di | Dimension2di ( const uint, const uint ) |
| Position2di | Position2di ( const uint, const uint ) |
Example
GUI::DrawWindow(recti(position2di(pos.x, pos.y), dimension2di(50, 70)));