Nez.Portable/Graphics/Renderers/Renderer.cs
/// <summary>
/// if a RenderTarget is used this will set it up. The Batcher is also started. The passed in Camera will be used to set the ViewPort
/// (if a ViewportAdapter is present) and for the Batcher transform Matrix.
/// </summary>
/// <param name="cam">Cam.</param>
if a RenderTarget is used this will set it up. The Batcher is also started. The passed in Camera will be used to set the ViewPort
(if a ViewportAdapter is present) and for the Batcher transform Matrix.
if a RenderTarget is used this will set it up . The Batcher is also started . The passed in Camera will be used to set the ViewPort ( if a ViewportAdapter is present ) and for the Batcher transform Matrix .
protected virtual void beginRender(Camera cam)
        {
            if (renderTexture != null)
            {
                Core.graphicsDevice.setRenderTarget(renderTexture);
                Core.graphicsDevice.Clear(renderTargetClearColor);
            }
            _currentMaterial = material;
            Graphics.instance.batcher.begin(_currentMaterial, cam.transformMatrix);
        }
protected virtual void beginRender ( Camera cam ) { if ( renderTexture != null ) { Core . graphicsDevice . setRenderTarget ( renderTexture ) ; Core . graphicsDevice . Clear ( renderTargetClearColor ) ; } _currentMaterial = material ; Graphics . instance . batcher . begin ( _currentMaterial , cam . transformMatrix ) ; }
if a RenderTarget is used this will set it up.
if a RenderTarget is used this will set it up .
// if we have a renderTarget render into it
cam
Camera
None