igiSetNextWindowPos

Category: IGI (in-game GUI) — Windows

Syntax:

igiSetNextWindowPos:Void(x:Int, y:Int)


Parameters

Returns

Nothing



Summary

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
igiSetNextWindowPos(10, 10)
igiBeginEx("HUD", -1, -1, 0, 0, IGI_WINDOW_NOTITLEBAR + IGI_WINDOW_AUTORESIZE)
igiText("Lives: " & ToString(lives))
igiEnd()

BambooBasic © 2026 Michael Denathorn