Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 public static GLRenderTarget Create(int Width, int Height,
                                     RenderTargetLayers RenderTargetLayers = RenderTargetLayers.All)
 {
     return(new GLRenderTarget(Width, Height, RenderTargetLayers));
 }
Ejemplo n.º 4
0
 public static GLRenderTarget Create(int Width, int Height, RenderTargetLayers RenderTargetLayers = RenderTargetLayers.All)
 {
     return new GLRenderTarget(Width, Height, RenderTargetLayers);
 }