summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-11 13:05:49 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-11 13:05:49 +0300
commit41836760fa59abc74098aed7450b4858dc288e56 (patch)
tree865e87f4adae8301f8d09c7f4f89ac1671054477 /src/test
parente8a8db1e71d90eda2f76b6c34afc8c1ec5cd2b8b (diff)
downloadmv-41836760fa59abc74098aed7450b4858dc288e56.tar.gz
mv-41836760fa59abc74098aed7450b4858dc288e56.tar.bz2
mv-41836760fa59abc74098aed7450b4858dc288e56.tar.xz
mv-41836760fa59abc74098aed7450b4858dc288e56.zip
In modernopengl add alpha for textures.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testlauncher.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp
index da09813d8..623fae805 100644
--- a/src/test/testlauncher.cpp
+++ b/src/test/testlauncher.cpp
@@ -380,7 +380,9 @@ int TestLauncher::testDraw()
mainGraphics->drawRectangle(Rect(0, 0, 400, 200));
mainGraphics->setColor(Color(0xFFU, 0x00U, 0x00U, 0xB0U));
+ img[0]->setAlpha(0.5f);
mainGraphics->drawImage(img[0], 190, 383);
+ img[0]->setAlpha(1.0f);
mainGraphics->setColor(Color(0x80U, 0x00U, 0xA0U, 0x90U));
mainGraphics->fillRectangle(Rect(200, 100, 300, 300));