Major changes to color system.
commitf7397b270c245c004790ef8e8d81ae6dffdeaa46
authorLasse Karkkainen <tronic+ndrm@trn.iki.fi>
Tue, 6 Nov 2012 09:33:48 +0000 (6 11:33 +0200)
committerLasse Karkkainen <tronic+ndrm@trn.iki.fi>
Tue, 6 Nov 2012 09:33:48 +0000 (6 11:33 +0200)
treea73fd282cd641c736f1b972177a71d420c7ed366
parentd59e8432732d76f80fa187aff6b0bb488a1415f8
Major changes to color system.
- Color(...) is now sRGB non-premultiplied (as it were in the past)
- OpenGL always uses premultiplied linear RGBA (as it has since a while back)
- Proper conversions are done more or less automatically
- Color::alpha(a) shorthand to avoid Color(1.0, 1.0, 1.0, a) everywhere
17 files changed:
game/color.cc
game/color.hh
game/dancegraph.cc
game/glmath.hh
game/guitargraph.cc
game/instrumentgraph.cc
game/layout_singer.cc
game/layout_singer.hh
game/notegraph.cc
game/screen_audiodevices.cc
game/screen_intro.cc
game/screen_players.cc
game/screen_sing.cc
game/screen_songs.cc
game/screenmanager.cc
game/video.cc
game/video_driver.cc