igiSetNextWindowPos

Places the next window opened (igiBegin / igiBeginEx) at x, y - every frame, so the user can't move it away. Takes x (Left edge, in pixels), y (Top edge, in pixels).

IGI

Parameters & Returns

Parameters

x Int
y Int

Returns

Void

Quick Summary

Places the next window opened (igiBegin / igiBeginEx) at x, y - every frame, so the user can't move it away. Takes x (Left edge, in pixels), y (Top edge, in pixels).

Technical Exegesis...

Places the next window opened (igiBegin / igiBeginEx) at x, y - every frame, so the user can't move it away. Good for a HUD or a menu that always sits in the same place.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.

Example

Example.bam
igiSetNextWindowPos(10, 10)
igiBeginEx("HUD", -1, -1, 0, 0, IGI_WINDOW_NOTITLEBAR + IGI_WINDOW_AUTORESIZE)
igiText("Lives: " & ToString(lives))
igiEnd()