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.
- Host: GitHub
- URL: https://github.com/apostolique/apos.batch
- Owner: Apostolique
- License: mit
- Created: 2020-09-13T23:49:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-17T17:05:37.000Z (about 1 year ago)
- Last Synced: 2025-02-05T01:02:49.865Z (4 months ago)
- Topics: apos, batcher, monogame, nuget, spritebatch
- Language: C#
- Homepage:
- Size: 228 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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
[](https://www.nuget.org/packages/Apos.Batch/) [](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.