A helper object to keep tilemap drawing performance decent across the new multi-camera system. Pretty much don't even have to think about this class unless you are doing some crazy hacking.
new(TileWidth:Int, TileHeight:Int, WidthInTiles:Int, HeightInTiles:Int, ?Camera:FlxCamera, ScaleX:Float = 1.0, ScaleY:Float = 1.0)
Instantiates a new camera-specific buffer for storing the visual tilemap data.
The width of the tiles in this tilemap.
The height of the tiles in this tilemap.
How many tiles wide the tilemap is.
How many tiles tall the tilemap is.
Which camera this buffer relates to.
Whether or not the coordinates should be rounded during draw(), true by default (recommended for pixel art). Only affects tilesheet rendering and rendering using BitmapData.draw() in blitting. (copyPixels() only renders on whole pixels by nature). Causes draw() to be used if false, which is more expensive.
Just stamps this buffer onto the specified camera at the specified location.
Which camera to draw the buffer onto.
Where to draw the buffer at in camera coordinates.
Fill the buffer with the specified color. Default value is transparent.
What color to fill with, in 0xAARRGGBB hex format.
Check if tilemap or camera has changed (scrolled, moved, resized or scaled) since the previous frame. If so, then it means that we need to redraw this buffer.
Tilemap to check against. It's a tilemap this buffer belongs to.
Camera to check against. It's a camera this buffer is used for drawing on.
The value of dirty flag.
Check if object is rendered pixel perfect on a specific camera.