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/resources/map/maplayer.cpp | |
parent | bcb340f51ca2d69fd062d6548ef283303d43d9ac (diff) | |
download | manaplus-be74509b31b26e714c6b380e17ed3935ec0b6cf0.tar.gz manaplus-be74509b31b26e714c6b380e17ed3935ec0b6cf0.tar.bz2 manaplus-be74509b31b26e714c6b380e17ed3935ec0b6cf0.tar.xz manaplus-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/resources/map/maplayer.cpp')
-rw-r--r-- | src/resources/map/maplayer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index 51e076e81..c1f1f2d7a 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -246,7 +246,7 @@ void MapLayer::updateSDL(const Graphics *const graphics, BLOCK_END("MapLayer::updateSDL") } -void MapLayer::updateOGL(const Graphics *const graphics, +void MapLayer::updateOGL(Graphics *const graphics, int startX, int startY, int endX, int endY, const int scrollX, const int scrollY, @@ -323,6 +323,7 @@ void MapLayer::updateOGL(const Graphics *const graphics, } } } + graphics->finalize(imgVert); BLOCK_END("MapLayer::updateOGL") } |