Example #1
0
        public RenderTargetBinding[] GetRenderTargets()
        {
            // Return a correctly sized copy our internal array.
            var bindings = new RenderTargetBinding[_currentRenderTargetCount];

            Array.Copy(_currentRenderTargetBindings, bindings, _currentRenderTargetCount);
            return(bindings);
        }
Example #2
0
 public void SetRenderTarget(RenderTargetCube renderTarget, CubeMapFace cubeMapFace)
 {
     if (renderTarget == null)
     {
         SetRenderTargets(null);
     }
     else
     {
         _tempRenderTargetBinding[0] = new RenderTargetBinding(renderTarget, cubeMapFace);
         SetRenderTargets(_tempRenderTargetBinding);
     }
 }
Example #3
0
 public void SetRenderTarget(RenderTarget2D renderTarget)
 {
     if (renderTarget == null)
     {
         SetRenderTargets(null);
     }
     else
     {
         _tempRenderTargetBinding[0] = new RenderTargetBinding(renderTarget);
         SetRenderTargets(_tempRenderTargetBinding);
     }
 }
 TextureTarget IRenderTarget.GetFramebufferTarget(RenderTargetBinding renderTargetBinding)
 {
     return(TextureTarget.TextureCubeMapPositiveX + renderTargetBinding.ArraySlice);
 }
Example #5
0
 TextureTarget IRenderTarget.GetFramebufferTarget(RenderTargetBinding renderTargetBinding)
 {
     return(glTarget);
 }