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

support for blend modes #21

Closed myuon closed 10 years ago

myuon commented 10 years ago

Supports blending modes:

See my example (examples/blendTest.hs) to make sure that it works fine. Hope this will help.

fumieval commented 10 years ago

It'd be nice to set a blend mode to an entire computation like this:

blendMode NormalAlpha $ translate (V2 140 200) $ bitmap bmp

I'm going to implement blendMode API using your glBlending.