UNPKG

@phaserjs/phaser

Version:
22 lines (21 loc) 817 B
import { BindDefaultBlendMode } from "./BindDefaultBlendMode"; import { BindDefaultColorMatrix } from "./BindDefaultColorMatrix"; import { BindDefaultFramebuffer } from "./BindDefaultFramebuffer"; import { BindDefaultShader } from "./BindDefaultShader"; import { BindDefaultVertexBuffer } from "./BindDefaultVertexBuffer"; import { BindDefaultViewport } from "./BindDefaultViewport"; export function Start(renderPass) { if (!renderPass.current2DCamera) { renderPass.current2DCamera = renderPass.quadCamera; renderPass.cameraMatrix = renderPass.quadCamera.getMatrix(); } renderPass.count = 0; renderPass.flushTotal = 0; BindDefaultFramebuffer(); BindDefaultBlendMode(); BindDefaultVertexBuffer(); BindDefaultViewport(); BindDefaultShader(); BindDefaultColorMatrix(); return renderPass; }