Class GL
Assembly: UnityEngine.dll
Syntax
Fields
|
Improve this Doc
View Source
LINE_STRIP
Declaration
public const int LINE_STRIP = 2
Field Value
|
Improve this Doc
View Source
LINES
Declaration
public const int LINES = 1
Field Value
|
Improve this Doc
View Source
QUADS
Declaration
public const int QUADS = 7
Field Value
|
Improve this Doc
View Source
TRIANGLE_STRIP
Declaration
public const int TRIANGLE_STRIP = 5
Field Value
|
Improve this Doc
View Source
TRIANGLES
Declaration
public const int TRIANGLES = 4
Field Value
Properties
invertCulling
Declaration
public static bool invertCulling { get; set; }
Property Value
|
Improve this Doc
View Source
modelview
Declaration
public static Matrix4x4 modelview { get; set; }
Property Value
sRGBWrite
Declaration
public static bool sRGBWrite { get; set; }
Property Value
wireframe
Declaration
public static bool wireframe { get; set; }
Property Value
Methods
Begin(Int32)
Declaration
public static void Begin(int mode)
Parameters
Type |
Name |
Description |
Int32 |
mode |
|
|
Improve this Doc
View Source
Clear(Boolean, Boolean, Color)
Declaration
public static void Clear(bool clearDepth, bool clearColor, Color backgroundColor)
Parameters
|
Improve this Doc
View Source
Clear(Boolean, Boolean, Color, Single)
Declaration
public static void Clear(bool clearDepth, bool clearColor, Color backgroundColor, [DefaultValue("1.0f")] float depth)
Parameters
ClearWithSkybox(Boolean, Camera)
Declaration
public static void ClearWithSkybox(bool clearDepth, Camera camera)
Parameters
|
Improve this Doc
View Source
Color(Color)
Declaration
public static void Color(Color c)
Parameters
Type |
Name |
Description |
Color |
c |
|
End()
Declaration
Flush()
Declaration
public static void Flush()
GetGPUProjectionMatrix(Matrix4x4, Boolean)
Declaration
public static Matrix4x4 GetGPUProjectionMatrix(Matrix4x4 proj, bool renderIntoTexture)
Parameters
Returns
InvalidateState()
Declaration
public static void InvalidateState()
IssuePluginEvent(Int32)
Declaration
[Obsolete("IssuePluginEvent(eventID) is deprecated. Use IssuePluginEvent(callback, eventID) instead.", false)]
public static void IssuePluginEvent(int eventID)
Parameters
Type |
Name |
Description |
Int32 |
eventID |
|
|
Improve this Doc
View Source
IssuePluginEvent(IntPtr, Int32)
Declaration
public static void IssuePluginEvent(IntPtr callback, int eventID)
Parameters
LoadIdentity()
Declaration
public static void LoadIdentity()
LoadOrtho()
Declaration
public static void LoadOrtho()
LoadPixelMatrix()
Declaration
public static void LoadPixelMatrix()
|
Improve this Doc
View Source
LoadPixelMatrix(Single, Single, Single, Single)
Declaration
public static void LoadPixelMatrix(float left, float right, float bottom, float top)
Parameters
LoadProjectionMatrix(Matrix4x4)
Declaration
public static void LoadProjectionMatrix(Matrix4x4 mat)
Parameters
|
Improve this Doc
View Source
MultiTexCoord(Int32, Vector3)
Declaration
public static void MultiTexCoord(int unit, Vector3 v)
Parameters
|
Improve this Doc
View Source
MultiTexCoord2(Int32, Single, Single)
Declaration
public static void MultiTexCoord2(int unit, float x, float y)
Parameters
MultiTexCoord3(Int32, Single, Single, Single)
Declaration
public static void MultiTexCoord3(int unit, float x, float y, float z)
Parameters
MultMatrix(Matrix4x4)
Declaration
public static void MultMatrix(Matrix4x4 m)
Parameters
PopMatrix()
Declaration
public static void PopMatrix()
PushMatrix()
Declaration
public static void PushMatrix()
RenderTargetBarrier()
Declaration
public static void RenderTargetBarrier()
SetRevertBackfacing(Boolean)
Declaration
[Obsolete("SetRevertBackfacing(revertBackFaces) is deprecated. Use invertCulling property instead.", false)]
public static void SetRevertBackfacing(bool revertBackFaces)
Parameters
Type |
Name |
Description |
Boolean |
revertBackFaces |
|
|
Improve this Doc
View Source
TexCoord(Vector3)
Declaration
public static void TexCoord(Vector3 v)
Parameters
|
Improve this Doc
View Source
TexCoord2(Single, Single)
Declaration
public static void TexCoord2(float x, float y)
Parameters
TexCoord3(Single, Single, Single)
Declaration
public static void TexCoord3(float x, float y, float z)
Parameters
|
Improve this Doc
View Source
Vertex(Vector3)
Declaration
public static void Vertex(Vector3 v)
Parameters
Vertex3(Single, Single, Single)
Declaration
public static void Vertex3(float x, float y, float z)
Parameters
Viewport(Rect)
Declaration
public static void Viewport(Rect pixelRect)
Parameters
Type |
Name |
Description |
Rect |
pixelRect |
|
Extension Methods