void Stage::render(const Color& clearColor, const Rect& viewport) { //initialize projection and view matrix Matrix proj; Matrix::orthoLH(proj, (float)viewport.getWidth(), (float)viewport.getHeight(), 0.2f, 10000); Matrix view = makeViewMatrix(viewport.getWidth(), viewport.getHeight()); render(&clearColor, viewport, view, proj); }
void STDRenderer::initCoordinateSystem(int width, int height, bool flipU) { Matrix view = makeViewMatrix(width, height, flipU); Matrix proj; //initialize projection matrix Matrix::orthoLH(proj, (float)width, (float)height, 0, 1); setViewProjTransform(view, proj); }