Begin begins the spritebatch, setting up sorting modes, blend states and sampling. Begin also attaches a custom shader (if chosen) and sets the camera/view matrix.
Begin begins the spritebatch, setting up sorting modes, blend states and sampling. Begin also attaches a custom shader (if chosen) and sets the camera/view matrix.
Begin begins the spritebatch, setting up sorting modes, blend states and sampling. Begin also attaches a custom shader (if chosen) and sets the camera/view matrix.
Draw draws a texture.
Draw draws a texture.
Draw draws a texture. Rectangle pos will act like an AABB rectangle instead.
End ends the sprite batching, allowing you to start a new batch.
Flush flushes the spritebatch, drawing whatever that has been batched to the screen. End() will automatically call this.
Swaps the draw chain (double buffering)
OpenGL implementation of a sprite batcher.