An open API service indexing awesome lists of open source software.

https://github.com/apostolique/apos.batch

Modern batcher for MonoGame.
https://github.com/apostolique/apos.batch

apos batcher monogame nuget spritebatch

Last synced: 3 months ago
JSON representation

Modern batcher for MonoGame.

Awesome Lists containing this project

README

        

# Apos.Batch
Modern batcher for MonoGame.

## Description
This library is meant to replace the MonoGame SpriteBatch.

## Documentation
* Coming at some point!

## Build
[![NuGet](https://img.shields.io/nuget/v/Apos.Batch.svg)](https://www.nuget.org/packages/Apos.Batch/) [![NuGet](https://img.shields.io/nuget/dt/Apos.Batch.svg)](https://www.nuget.org/packages/Apos.Batch/)

## Features
* Automatically resizes the batch to draw even more sprites at once.
* The world matrix is done with a 3x2 matrix.
* Source matrix for sprite sheets is done with a 3x2 matrix.

## Usage Example
Enable HiDef and create the batcher:

```csharp
_graphics.GraphicsProfile = GraphicsProfile.HiDef;

// ...

_b = new Batch(GraphicsDevice, Content);
```

Use the batcher:

```csharp
_b.Begin();
_b.Draw(superTexture, Matrix32.CreateTranslation(100f, 200f));
_b.End();
```

## Other projects you might like
* [Apos.Gui](https://github.com/Apostolique/Apos.Gui) - UI library for MonoGame.
* [Apos.Input](https://github.com/Apostolique/Apos.Input) - Input library for MonoGame.
* [Apos.Shapes](https://github.com/Apostolique/Apos.Shapes) - Shape rendering library for MonoGame.
* [Apos.Tweens](https://github.com/Apostolique/Apos.Tweens) - Tweening library for MonoGame.
* [Apos.Camera](https://github.com/Apostolique/Apos.Camera) - Camera library for MonoGame.