protected GLRenderTarget(int Width, int Height, RenderTargetLayers RenderTargetLayers) { if (Width == 0 || Height == 0) throw(new Exception(String.Format("Invalid GLRenderTarget size: {0}x{1}", Width, Height))); this._Width = Width; this._Height = Height; this.RenderTargetLayers = RenderTargetLayers; Initialize(); }
protected GLRenderTarget(int Width, int Height, RenderTargetLayers RenderTargetLayers) { if (Width == 0 || Height == 0) { throw new Exception($"Invalid GLRenderTarget size: {Width}x{Height}"); } _Width = Width; _Height = Height; this.RenderTargetLayers = RenderTargetLayers; Initialize(); }
public static GLRenderTarget Create(int Width, int Height, RenderTargetLayers RenderTargetLayers = RenderTargetLayers.All) { return(new GLRenderTarget(Width, Height, RenderTargetLayers)); }
public static GLRenderTarget Create(int Width, int Height, RenderTargetLayers RenderTargetLayers = RenderTargetLayers.All) { return new GLRenderTarget(Width, Height, RenderTargetLayers); }