Skip to main content
Version: Next

Velaptor.Batching.IBatcher

Velaptor

Velaptor.Batching

IBatcher Interface

Provides the ability to start and end the batch rendering process.

public interface IBatcher

Properties

ClearColor

Gets or sets the color of the back buffer when cleared.

System.Drawing.Color ClearColor { get; set; }

Property Value

System.Drawing.Color

HasBegun

Gets a value indicating whether the batch process has begun.

bool HasBegun { get; }

Property Value

System.Boolean

Methods

Begin()

Starts the batch rendering process. Must be called before invoking any render methods.

void Begin();

Clear()

Clears the buffers.

void Clear();

Remarks

It is best to clear the buffer before rendering all the textures.
This is to make sure smearing does not occur during texture movement or animation.

End()

Ends the batch process. Calling this will perform the actual GPU render process.

void End();