2
2
// Distributed under the MIT license. See the LICENSE file in the project root for more information.
3
3
4
4
using System ;
5
+ using System . Drawing ;
5
6
using System . Globalization ;
6
7
using System . Numerics ;
7
8
using System . Reflection ;
8
- using System . Runtime . CompilerServices ;
9
9
using SharpGen . Runtime ;
10
10
using Vortice . Direct3D ;
11
11
using Vortice . Mathematics ;
@@ -135,7 +135,7 @@ public unsafe IDirect3DSurface9 CreateOffscreenPlainSurface(int width, int heigh
135
135
/// <param name="color">The color that will be used to fill the cleared render target.</param>
136
136
/// <param name="zdepth">The value that will be used to fill the cleared depth buffer.</param>
137
137
/// <param name="stencil">The value that will be used to fill the cleared stencil buffer.</param>
138
- public void Clear ( ClearFlags clearFlags , Color color , float zdepth , int stencil )
138
+ public void Clear ( ClearFlags clearFlags , Vortice . Mathematics . Color color , float zdepth , int stencil )
139
139
{
140
140
Clear_ ( 0 , null , clearFlags , Helpers . ToBgra ( color ) , zdepth , stencil ) ;
141
141
}
@@ -160,7 +160,7 @@ public void Clear(ClearFlags clearFlags, System.Drawing.Color color, float zdept
160
160
/// <param name="zdepth">The value that will be used to fill the cleared depth buffer.</param>
161
161
/// <param name="stencil">The value that will be used to fill the cleared stencil buffer.</param>
162
162
/// <param name="rectangles">The areas on the surfaces that will be cleared.</param>
163
- public void Clear ( ClearFlags clearFlags , Color color , float zdepth , int stencil , RawRect [ ] rectangles )
163
+ public void Clear ( ClearFlags clearFlags , Vortice . Mathematics . Color color , float zdepth , int stencil , RawRect [ ] rectangles )
164
164
{
165
165
Clear_ ( rectangles == null ? 0 : rectangles . Length , rectangles , clearFlags , Helpers . ToBgra ( color ) , zdepth , stencil ) ;
166
166
}
@@ -186,7 +186,7 @@ public void Clear(ClearFlags clearFlags, System.Drawing.Color color, float zdept
186
186
/// </remarks>
187
187
/// <param name="surface"> Pointer to the surface to be filled. </param>
188
188
/// <param name="color"> Color used for filling. </param>
189
- public void ColorFill ( IDirect3DSurface9 surface , in Color color )
189
+ public void ColorFill ( IDirect3DSurface9 surface , in Vortice . Mathematics . Color color )
190
190
{
191
191
ColorFill ( surface , null , Helpers . ToBgra ( color ) ) ;
192
192
}
0 commit comments