Files
Dec2017-Script-Dump/UnityEngine/GL.cs
T
2026-06-04 11:42:34 +02:00

332 lines
11 KiB
C#

using System;
using System.Runtime.CompilerServices;
using UnityEngine.Internal;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x02000061 RID: 97
public sealed class GL
{
// Token: 0x06000777 RID: 1911
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void Vertex3(float x, float y, float z);
// Token: 0x06000778 RID: 1912 RVA: 0x0000A0CC File Offset: 0x000082CC
public static void Vertex(Vector3 v)
{
GL.INTERNAL_CALL_Vertex(ref v);
}
// Token: 0x06000779 RID: 1913
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Vertex(ref Vector3 v);
// Token: 0x0600077A RID: 1914 RVA: 0x0000A0D8 File Offset: 0x000082D8
public static void Color(Color c)
{
GL.INTERNAL_CALL_Color(ref c);
}
// Token: 0x0600077B RID: 1915
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Color(ref Color c);
// Token: 0x0600077C RID: 1916 RVA: 0x0000A0E4 File Offset: 0x000082E4
public static void TexCoord(Vector3 v)
{
GL.INTERNAL_CALL_TexCoord(ref v);
}
// Token: 0x0600077D RID: 1917
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_TexCoord(ref Vector3 v);
// Token: 0x0600077E RID: 1918
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void TexCoord2(float x, float y);
// Token: 0x0600077F RID: 1919
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void TexCoord3(float x, float y, float z);
// Token: 0x06000780 RID: 1920
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void MultiTexCoord2(int unit, float x, float y);
// Token: 0x06000781 RID: 1921
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void MultiTexCoord3(int unit, float x, float y, float z);
// Token: 0x06000782 RID: 1922 RVA: 0x0000A0F0 File Offset: 0x000082F0
public static void MultiTexCoord(int unit, Vector3 v)
{
GL.INTERNAL_CALL_MultiTexCoord(unit, ref v);
}
// Token: 0x06000783 RID: 1923
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_MultiTexCoord(int unit, ref Vector3 v);
// Token: 0x06000784 RID: 1924
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void BeginInternal(int mode);
// Token: 0x06000785 RID: 1925 RVA: 0x0000A0FC File Offset: 0x000082FC
public static void Begin(int mode)
{
GL.BeginInternal(mode);
}
// Token: 0x06000786 RID: 1926
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void End();
// Token: 0x06000787 RID: 1927
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void PushMatrix();
// Token: 0x06000788 RID: 1928
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void PopMatrix();
// Token: 0x06000789 RID: 1929
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void LoadIdentity();
// Token: 0x0600078A RID: 1930
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void LoadOrtho();
// Token: 0x0600078B RID: 1931
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void LoadPixelMatrix();
// Token: 0x0600078C RID: 1932
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void LoadPixelMatrixArgs(float left, float right, float bottom, float top);
// Token: 0x0600078D RID: 1933 RVA: 0x0000A108 File Offset: 0x00008308
public static void LoadPixelMatrix(float left, float right, float bottom, float top)
{
GL.LoadPixelMatrixArgs(left, right, bottom, top);
}
// Token: 0x0600078E RID: 1934 RVA: 0x0000A114 File Offset: 0x00008314
public static void Viewport(Rect pixelRect)
{
GL.INTERNAL_CALL_Viewport(ref pixelRect);
}
// Token: 0x0600078F RID: 1935
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Viewport(ref Rect pixelRect);
// Token: 0x06000790 RID: 1936 RVA: 0x0000A120 File Offset: 0x00008320
public static void LoadProjectionMatrix(Matrix4x4 mat)
{
GL.INTERNAL_CALL_LoadProjectionMatrix(ref mat);
}
// Token: 0x06000791 RID: 1937
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_LoadProjectionMatrix(ref Matrix4x4 mat);
// Token: 0x170001A5 RID: 421
// (get) Token: 0x06000792 RID: 1938 RVA: 0x0000A12C File Offset: 0x0000832C
// (set) Token: 0x06000793 RID: 1939 RVA: 0x0000A14C File Offset: 0x0000834C
public static Matrix4x4 modelview
{
get
{
Matrix4x4 matrix4x;
GL.INTERNAL_get_modelview(out matrix4x);
return matrix4x;
}
set
{
GL.INTERNAL_set_modelview(ref value);
}
}
// Token: 0x06000794 RID: 1940
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_get_modelview(out Matrix4x4 value);
// Token: 0x06000795 RID: 1941
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_set_modelview(ref Matrix4x4 value);
// Token: 0x06000796 RID: 1942 RVA: 0x0000A158 File Offset: 0x00008358
public static void MultMatrix(Matrix4x4 mat)
{
GL.INTERNAL_CALL_MultMatrix(ref mat);
}
// Token: 0x06000797 RID: 1943
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_MultMatrix(ref Matrix4x4 mat);
// Token: 0x06000798 RID: 1944 RVA: 0x0000A164 File Offset: 0x00008364
public static Matrix4x4 GetGPUProjectionMatrix(Matrix4x4 proj, bool renderIntoTexture)
{
Matrix4x4 matrix4x;
GL.INTERNAL_CALL_GetGPUProjectionMatrix(ref proj, renderIntoTexture, out matrix4x);
return matrix4x;
}
// Token: 0x06000799 RID: 1945
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_GetGPUProjectionMatrix(ref Matrix4x4 proj, bool renderIntoTexture, out Matrix4x4 value);
// Token: 0x170001A6 RID: 422
// (get) Token: 0x0600079A RID: 1946
// (set) Token: 0x0600079B RID: 1947
public static extern bool wireframe
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170001A7 RID: 423
// (get) Token: 0x0600079C RID: 1948
// (set) Token: 0x0600079D RID: 1949
public static extern bool sRGBWrite
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170001A8 RID: 424
// (get) Token: 0x0600079E RID: 1950
// (set) Token: 0x0600079F RID: 1951
public static extern bool invertCulling
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x060007A0 RID: 1952
[Obsolete("Use invertCulling property")]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void SetRevertBackfacing(bool revertBackFaces);
// Token: 0x060007A1 RID: 1953 RVA: 0x0000A184 File Offset: 0x00008384
[ExcludeFromDocs]
public static void Clear(bool clearDepth, bool clearColor, Color backgroundColor)
{
float num = 1f;
GL.Clear(clearDepth, clearColor, backgroundColor, num);
}
// Token: 0x060007A2 RID: 1954 RVA: 0x0000A1A4 File Offset: 0x000083A4
public static void Clear(bool clearDepth, bool clearColor, Color backgroundColor, [DefaultValue("1.0f")] float depth)
{
GL.Internal_Clear(clearDepth, clearColor, backgroundColor, depth);
}
// Token: 0x060007A3 RID: 1955 RVA: 0x0000A1B0 File Offset: 0x000083B0
private static void Internal_Clear(bool clearDepth, bool clearColor, Color backgroundColor, float depth)
{
GL.INTERNAL_CALL_Internal_Clear(clearDepth, clearColor, ref backgroundColor, depth);
}
// Token: 0x060007A4 RID: 1956
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Internal_Clear(bool clearDepth, bool clearColor, ref Color backgroundColor, float depth);
// Token: 0x060007A5 RID: 1957
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void ClearWithSkybox(bool clearDepth, Camera camera);
// Token: 0x060007A6 RID: 1958
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void Flush();
// Token: 0x060007A7 RID: 1959
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void InvalidateState();
// Token: 0x060007A8 RID: 1960
[Obsolete("IssuePluginEvent(eventID) is deprecated. Use IssuePluginEvent(callback, eventID) instead.")]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void IssuePluginEvent(int eventID);
// Token: 0x060007A9 RID: 1961 RVA: 0x0000A1C0 File Offset: 0x000083C0
public static void IssuePluginEvent(IntPtr callback, int eventID)
{
if (callback == IntPtr.Zero)
{
throw new ArgumentException("Null callback specified.");
}
GL.IssuePluginEventInternal(callback, eventID);
}
// Token: 0x060007AA RID: 1962
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void IssuePluginEventInternal(IntPtr callback, int eventID);
// Token: 0x060007AB RID: 1963
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void RenderTargetBarrier();
// Token: 0x0400007C RID: 124
public const int TRIANGLES = 4;
// Token: 0x0400007D RID: 125
public const int TRIANGLE_STRIP = 5;
// Token: 0x0400007E RID: 126
public const int QUADS = 7;
// Token: 0x0400007F RID: 127
public const int LINES = 1;
// Token: 0x04000080 RID: 128
public const int LINE_STRIP = 2;
}
}