diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-12 23:23:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-13 12:41:35 +0300 |
commit | be74509b31b26e714c6b380e17ed3935ec0b6cf0 (patch) | |
tree | 7f575c73694e0cb3673c5b648e7b5e48bc97100f /src/test | |
parent | bcb340f51ca2d69fd062d6548ef283303d43d9ac (diff) | |
download | manaverse-be74509b31b26e714c6b380e17ed3935ec0b6cf0.tar.gz manaverse-be74509b31b26e714c6b380e17ed3935ec0b6cf0.tar.bz2 manaverse-be74509b31b26e714c6b380e17ed3935ec0b6cf0.tar.xz manaverse-be74509b31b26e714c6b380e17ed3935ec0b6cf0.zip |
In modernopengl add support for buffered draw tile collection.
This is first cached function implemented in modernopengl.
Also add support for bind buffer attributes.
Add finalize method to convert any cached data into data for GPU.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/testlauncher.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index 25cb639a4..86d2be370 100644 --- a/src/test/testlauncher.cpp +++ b/src/test/testlauncher.cpp @@ -396,13 +396,15 @@ int TestLauncher::testDraw() mainGraphics->drawPattern(img[0], 10, 400, 300, 180); mainGraphics->calcPattern(col, img[1], 500, 400, 150, 100); - mainGraphics->drawTileCollection(col); + mainGraphics->finalize(col); mainGraphics->drawRescaledImage(img[0], 250, 350, 35, 90); mainGraphics->setColor(Color(0x00U, 0xFFU, 0x00U, 0x90U)); mainGraphics->drawNet(450, 10, 600, 300, 32, 20); + mainGraphics->drawTileCollection(col); + img[0]->setAlpha(0.3f); mainGraphics->drawRescaledPattern(img[0], 250, 150, 250, 300, 30, 100); |