Move true color sky drawing to its own drawers and chamge r_stretchsky to false as the new drawers can fade to a solid color

This commit is contained in:
Magnus Norddahl 2016-10-15 15:04:14 +02:00
commit 491a4e28c0
13 changed files with 482 additions and 17 deletions

View file

@ -47,6 +47,11 @@ SSAInt SSAInt::add(SSAInt b, bool no_unsigned_wrap, bool no_signed_wrap)
return SSAInt::from_llvm(SSAScope::builder().CreateAdd(v, b.v, SSAScope::hint(), no_unsigned_wrap, no_signed_wrap));
}
SSAInt SSAInt::ashr(int bits)
{
return SSAInt::from_llvm(SSAScope::builder().CreateAShr(v, bits, SSAScope::hint()));
}
SSAInt operator+(const SSAInt &a, const SSAInt &b)
{
return SSAInt::from_llvm(SSAScope::builder().CreateAdd(a.v, b.v, SSAScope::hint()));