fumieval / free-game

The free game engine
http://hackage.haskell.org/package/free-game
BSD 3-Clause "New" or "Revised" License
64 stars 15 forks source link

Add capability to monitor or prevent window resizes #24

Closed Taneb closed 10 years ago

Taneb commented 10 years ago

Something like:

setResizable :: FreeGame m => Bool -> m ()
getResizable :: FreeGame m => m Bool
getSIze :: FreeGame m => m Vec2
setSIze :: FreeGame m => Vec2 -> m Bool
fumieval commented 10 years ago

Sadly, we can't change dynamically whether the window is resizable.

But I'm making capability to handle resizing, then I can implement getResizable, getSize and setSize at least.

fumieval commented 10 years ago

Added:

getBoundingBox :: FreeGame m => m (BoundingBox Double)
setBoundingBox :: FreeGame m => BoundingBox Double -> m ()

And we can now pass Resizable to runGame.