Skip to content

Apostolique/Apos.Batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apos.Batch

Modern batcher for MonoGame.

Description

This library is meant to replace the MonoGame SpriteBatch.

Documentation

  • Coming at some point!

Build

NuGet NuGet

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:

_graphics.GraphicsProfile = GraphicsProfile.HiDef;

// ...

_b = new Batch(GraphicsDevice, Content);

Use the batcher:

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

Other projects you might like