medea/medea.context.js
// Dispatch collected batch jobs to our viewport(s)
Dispatch collected batch jobs to our viewport(s)
Dispatch collected batch jobs to our viewport ( s )
function draw() {
			if (medeactx.frame_flags & medeactx.FRAME_VIEWPORT_UPDATED) {
				if (medeactx.GetEnabledViewportCount()>1) {
					medeactx.gl.enable(medeactx.gl.SCISSOR_TEST);
				}
				else {
					medeactx.gl.disable(medeactx.gl.SCISSOR_TEST);
				}
			}
			var viewports = medeactx.GetViewports();
			for(var vn = 0; vn < viewports.length; ++vn) {
				viewports[vn].Render(medeactx,dtime);
			}
		}
function draw ( ) { if ( medeactx . frame_flags & medeactx . FRAME_VIEWPORT_UPDATED ) { if ( medeactx . GetEnabledViewportCount ( ) > 1 ) { medeactx . gl . enable ( medeactx . gl . SCISSOR_TEST ) ; } else { medeactx . gl . disable ( medeactx . gl . SCISSOR_TEST ) ; } } var viewports = medeactx . GetViewports ( ) ; for ( var vn = 0 ; vn < viewports . length ; ++ vn ) { viewports [ vn ] . Render ( medeactx , dtime ) ; } }
Dispatch collected batch jobs to our viewport(s)
Dispatch collected batch jobs to our viewport ( s )
// Adjust render settings if we switched to multiple viewports or vice versa // Perform rendering