RuntimeAtlas
Namespace: Murder.Core.Graphics
Assembly: Murder.dll
public class RuntimeAtlas : IDisposable
Implements: IDisposable
⭐ Constructors
public RuntimeAtlas(string name, Point atlasSize, Point chunkSize)
Parameters
name
string
atlasSize
Point
chunkSize
Point
⭐ Properties
_debug
public bool _debug;
Returns
bool
AllLoadedAtlas
public readonly static List<T> AllLoadedAtlas;
Returns
List<T>
Size
public readonly Vector2 Size;
Returns
Vector2
⭐ Methods
Begin(int)
public Batch2D Begin(int chunkId)
Parameters
chunkId
int
Returns
Batch2D
Draw(int, Batch2D, Vector2, DrawInfo)
public bool Draw(int id, Batch2D batch, Vector2 position, DrawInfo drawInfo)
Draws a chunk to the screen and returns if it was successful
Parameters
id
int
batch
Batch2D
position
Vector2
drawInfo
DrawInfo
Returns
bool
PlaceChunk()
public int PlaceChunk()
Returns
int
GetBrush()
public RenderTarget2D GetBrush()
Returns
RenderTarget2D
GetFullAtlas()
public RenderTarget2D GetFullAtlas()
Returns
RenderTarget2D
Dispose()
public virtual void Dispose()
Cleanup()
public void Cleanup()
End()
public void End()
FreeChunk(int)
public void FreeChunk(int chunkId)
Parameters
chunkId
int
⚡