summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-01-03Fix too long lines.Andrei Karas1-2/+0
2017-01-03Replace map layer errors logging to asserts.Andrei Karas1-3/+5
2017-01-03Remove debug messages for map layer drawing.Andrei Karas1-85/+16
2017-01-03Fix drawing layers after previous commits.Andrei Karas1-19/+102
Add unit tests for layer caching functions.
2016-12-31Improve special layers draw speed in same way like fringe layer.Andrei Karas1-5/+20
2016-12-31Remove some debug code and enable code for report fringe draw errors.Andrei Karas1-5/+2
2016-12-31Restore drawing special layer on top of fringe layer.Andrei Karas1-61/+56
But special layer still drawed in old slow way.
2016-12-31Improve fringe map layers drawing.Andrei Karas1-13/+42
Pre cache next tile position with image.
2016-12-30Improve map layers drawing.Andrei Karas1-14/+91
Skip same image or empty tiles.
2016-12-30Improve drawing map layers.Andrei Karas1-18/+31
Pre cache repeated tiles count and width.
2016-12-29Improve drawing tiles.Andrei Karas1-90/+92
Remove check for existing tile image in each tile. From now tiles without image hidden.
2016-09-23Add missing comments into defines.Andrei Karas1-1/+1
2016-06-15Fix other include issues.Andrei Karas1-4/+0
2016-06-07Move image class into image directory.Andrei Karas1-1/+1
2016-05-06Fix code style.Andrei Karas1-2/+2
2016-04-29Add name into MapLayer memory object.Andrei Karas1-1/+3
2016-04-26Add memory count functions into MapLayer and SpecailLayer.Andrei Karas1-0/+17
Also change all memory count functions into const methods.
2016-03-03Improve a bit pixel calculation in map layers.Andrei Karas1-8/+10
2016-02-07Replace most static_cast<Type> to shorter versions from defines.Andrei Karas1-5/+5
2016-01-02Update copyrights year.Andrei Karas1-1/+1
2015-12-24Fix compilation with clang.Andrei Karas1-11/+11
2015-11-23Fix code style in map layer.Andrei Karas1-41/+59
2015-10-23Fix code style.Andrei Karas1-2/+5
2015-10-22Fix drawing map after last changes with conditional tiles.Andrei Karas1-4/+11
2015-10-21Add support for layers with conditional tiles.Andrei Karas1-6/+40
For enable this mode for layer need add property: TileCondition and set value to one of BlockMask bits.
2015-10-21Add map layer attribute TileCondition.Andrei Karas1-1/+3
2015-10-11Add structure for tile object.Andrei Karas1-14/+17
Now it contains only image pointer.
2015-07-02Move mapitemtype into enums directory.Andrei Karas1-1/+2
2015-06-26Add missing checks into map directory.Andrei Karas1-4/+5
2015-06-06Fix code style.Andrei Karas1-0/+2
2015-06-03Convert MapType enum into strong typed enum.Andrei Karas1-1/+1
2015-05-30Move user defined colors enum into separate file.Andrei Karas1-2/+2
2015-05-22Fix code style.Andrei Karas1-2/+1
2015-05-17Fix code style.Andrei Karas1-10/+9
2015-05-16Remove parameter from fringe layer draw function.Andrei Karas1-6/+6
2015-05-16Improve a bit fringe layer draw speed.Andrei Karas1-19/+101
2015-05-16Improve a bit map layers draw.Andrei Karas1-29/+26
Also fix issue with some map draw modes.
2015-05-15Add missing cost to map and maplayer.Andrei Karas1-2/+2
2015-03-17Remove useless includes from .h files.Andrei Karas1-0/+1
2015-03-16Remove useless includes from cpp filesAndrei Karas1-4/+0
2015-01-01Update copyrights year.Andrei Karas1-1/+1
2014-07-30Rename player_node variable into localPlayer.Andrei Karas1-6/+6
2014-07-09Add empty map mode without collisions.Andrei Karas1-15/+21
Mode can be switched from yellow bar. Also renamed map draw type related variables and methods.
2014-06-15Remove debug logging in maplayer.Andrei Karas1-1/+0
2014-06-14fix modernoepngl drawing.Andrei Karas1-2/+13
Add simple draw test in most renders.
2014-06-13In modernopengl add support for buffered draw tile collection.Andrei Karas1-1/+2
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.
2014-05-25Fix align in constructors.Andrei Karas1-2/+4
2014-05-19Move mapitemtype into separate file.Andrei Karas1-2/+3
2014-05-12Fix code styleAndrei Karas1-6/+0
2014-05-11Move maptype into separate file.Andrei Karas1-11/+12