コード例 #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();
 }
コード例 #2
0
ファイル: GLRenderTarget.cs プロジェクト: rajeshwarn/cspspemu
 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();
 }
コード例 #3
0
ファイル: GLRenderTarget.cs プロジェクト: rajeshwarn/cspspemu
 public static GLRenderTarget Create(int Width, int Height,
                                     RenderTargetLayers RenderTargetLayers = RenderTargetLayers.All)
 {
     return(new GLRenderTarget(Width, Height, RenderTargetLayers));
 }
コード例 #4
0
 public static GLRenderTarget Create(int Width, int Height, RenderTargetLayers RenderTargetLayers = RenderTargetLayers.All)
 {
     return new GLRenderTarget(Width, Height, RenderTargetLayers);
 }