forked from tforsberg/Frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContextAttributes.cs
40 lines (35 loc) · 1.43 KB
/
ContextAttributes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace Bridge.WebGL
{
/// <summary>
/// A dictionary object of attributes used to initialize the context for the first time.
/// </summary>
[External]
[ObjectLiteral]
public class WebGLContextAttributes
{
/// <summary>
/// Gets or sets whether the drawing buffer has an alpha channel for alpha compositing and operations.
/// </summary>
public bool Alpha { get; set; }
/// <summary>
/// Get or set the antialias state on a WebGL rendering context.
/// </summary>
public bool Antialias { get; set; }
/// <summary>
/// Gets or sets whether the drawing buffer has a depth buffer. Returns false if no depth buffer exists.
/// </summary>
public bool Depth { get; set; }
/// <summary>
/// A flag that sets whether WebGL creates a context with getContext if system performance is low.
/// </summary>
public bool FailIfMajorPerformanceCaveat { get; set; }
/// <summary>
/// Gets or sets whether the colors in the drawing buffer are premultiplied alpha values. This property is ignored if the alpha property is false.
/// </summary>
public bool PremultipliedAlpha { get; set; }
/// <summary>
/// Sets or gets whether the drawing buffer's is cleared once content is presented.
/// </summary>
public bool PreserveDrawingBuffer { get; set; }
}
}