示例#1
0
        public void Clear(RenderTarget renderTarget, Color color)
        {
#if UNIT_TEST_COMPILANT
            throw new NotImplementedException("Unit tests, don't support methods calls. Only properties can be get or set.");
#else
            if (renderTarget == null)
            {
                throw new ArgumentNullException(nameof(renderTarget));
            }
            Internal_Clear(unmanagedPtr, renderTarget.View(), ref color);
#endif
        }
示例#2
0
 /// <summary>
 /// Draws postFx material to the render target.
 /// </summary>
 /// <param name="material">The material to render. It must be a post fx material.</param>
 /// <param name="output">The output texture. Must be valid and created.</param>
 /// <param name="input">The input texture. It's optional.</param>
 public void DrawPostFxMaterial(MaterialBase material, RenderTarget output, RenderTarget input = null)
 {
     DrawPostFxMaterial(material, output.View(), input);
 }