begin

fun <B : Batch> B.begin(projectionMatrix: Matrix4)

Automatically calls Batch.begin with the provided matrix

Parameters

projectionMatrix

A projection matrix to set on the batch before Batch.begin.


fun <B : Batch> B.begin(camera: Camera)

Sets the batch's projection matrix to the camera's Camera.combined matrix and calls Batch.begin.

Parameters

camera

The camera's Camera.combined matrix will be set to the batch's projection matrix before Batch.begin.