A game about forced loneliness, made by TACStudios
1namespace UnityEngine.U2D.Sprites
2{
3 internal interface IGL
4 {
5 void PushMatrix();
6 void PopMatrix();
7 void MultMatrix(Matrix4x4 m);
8 void Begin(int mode);
9 void End();
10 void Color(Color c);
11 void Vertex(Vector3 v);
12 }
13
14 internal class GLSystem : IGL
15 {
16 static IGL m_GLSystem;
17 internal static void SetSystem(IGL system)
18 {
19 m_GLSystem = system;
20 }
21
22 internal static IGL GetSystem()
23 {
24 if (m_GLSystem == null)
25 m_GLSystem = new GLSystem();
26 return m_GLSystem;
27 }
28
29 public void PushMatrix()
30 {
31 GL.PushMatrix();
32 }
33
34 public void PopMatrix()
35 {
36 GL.PopMatrix();
37 }
38
39 public void MultMatrix(Matrix4x4 m)
40 {
41 GL.MultMatrix(m);
42 }
43
44 public void Begin(int mode)
45 {
46 GL.Begin(mode);
47 }
48
49 public void End()
50 {
51 GL.End();
52 }
53
54 public void Color(Color c)
55 {
56 GL.Color(c);
57 }
58
59 public void Vertex(Vector3 v)
60 {
61 GL.Vertex(v);
62 }
63 }
64}