Class GL
Provides access to OpenGL ES 2.0 methods.
Inheritance
System.Object
GL
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: cs.temp.dll.dll
Syntax
public sealed class GL : GraphicsBindingsBase
Constructors
GL()
Constructs a new instance.
Declaration
Properties
SyncRoot
Returns a synchronization token unique for the GL class.
Declaration
protected override object SyncRoot { get; }
Property Value
Type |
Description |
System.Object |
|
Overrides
Methods
BlendColor(Color)
Declaration
public static void BlendColor(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
BlendColor(Color4)
Declaration
public static void BlendColor(Color4 color)
Parameters
Type |
Name |
Description |
Color4 |
color |
|
ClearColor(Color)
Declaration
public static void ClearColor(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
ClearColor(Color4)
Declaration
public static void ClearColor(Color4 color)
Parameters
Type |
Name |
Description |
Color4 |
color |
|
DrawElements(BeginMode, Int32, DrawElementsType, Int32)
Declaration
public static void DrawElements(BeginMode mode, int count, DrawElementsType type, int offset)
Parameters
Type |
Name |
Description |
BeginMode |
mode |
|
System.Int32 |
count |
|
DrawElementsType |
type |
|
System.Int32 |
offset |
|
GetActiveAttrib(Int32, Int32, out Int32, out ActiveAttribType)
Declaration
public static string GetActiveAttrib(int program, int index, out int size, out ActiveAttribType type)
Parameters
Type |
Name |
Description |
System.Int32 |
program |
|
System.Int32 |
index |
|
System.Int32 |
size |
|
ActiveAttribType |
type |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string GetActiveUniform(int program, int uniformIndex, out int size, out ActiveUniformType type)
Parameters
Type |
Name |
Description |
System.Int32 |
program |
|
System.Int32 |
uniformIndex |
|
System.Int32 |
size |
|
ActiveUniformType |
type |
|
Returns
Type |
Description |
System.String |
|
GetFloat(GetPName, out Matrix4)
Declaration
public static void GetFloat(GetPName pname, out Matrix4 matrix)
Parameters
Type |
Name |
Description |
GetPName |
pname |
|
Matrix4 |
matrix |
|
GetFloat(GetPName, out Vector2)
Declaration
public static void GetFloat(GetPName pname, out Vector2 vector)
Parameters
Type |
Name |
Description |
GetPName |
pname |
|
Vector2 |
vector |
|
GetFloat(GetPName, out Vector3)
Declaration
public static void GetFloat(GetPName pname, out Vector3 vector)
Parameters
Type |
Name |
Description |
GetPName |
pname |
|
Vector3 |
vector |
|
GetFloat(GetPName, out Vector4)
Declaration
public static void GetFloat(GetPName pname, out Vector4 vector)
Parameters
Type |
Name |
Description |
GetPName |
pname |
|
Vector4 |
vector |
|
GetProgramInfoLog(Int32)
Declaration
public static string GetProgramInfoLog(int program)
Parameters
Type |
Name |
Description |
System.Int32 |
program |
|
Returns
Type |
Description |
System.String |
|
GetProgramInfoLog(Int32, out String)
Declaration
public static void GetProgramInfoLog(int program, out string info)
Parameters
Type |
Name |
Description |
System.Int32 |
program |
|
System.String |
info |
|
GetShaderInfoLog(Int32)
Declaration
public static string GetShaderInfoLog(int shader)
Parameters
Type |
Name |
Description |
System.Int32 |
shader |
|
Returns
Type |
Description |
System.String |
|
GetShaderInfoLog(Int32, out String)
Declaration
public static void GetShaderInfoLog(int shader, out string info)
Parameters
Type |
Name |
Description |
System.Int32 |
shader |
|
System.String |
info |
|
ShaderSource(Int32, String)
Declaration
public static void ShaderSource(int shader, string string)
Parameters
Type |
Name |
Description |
System.Int32 |
shader |
|
System.String |
string |
|
Declaration
public static void Uniform2(int location, Vector2 vector)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
Vector2 |
vector |
|
Declaration
[CLSCompliant(false)]
public static void Uniform2(int location, ref Vector2 vector)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
Vector2 |
vector |
|
Declaration
public static void Uniform3(int location, Vector3 vector)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
Vector3 |
vector |
|
Declaration
[CLSCompliant(false)]
public static void Uniform3(int location, ref Vector3 vector)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
Vector3 |
vector |
|
Declaration
public static void Uniform4(int location, Color4 color)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
Color4 |
color |
|
Declaration
public static void Uniform4(int location, Quaternion quaternion)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
Quaternion |
quaternion |
|
Declaration
public static void Uniform4(int location, Vector4 vector)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
Vector4 |
vector |
|
Declaration
[CLSCompliant(false)]
public static void Uniform4(int location, ref Vector4 vector)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
Vector4 |
vector |
|
Declaration
public static void UniformMatrix2(int location, bool transpose, ref Matrix2 matrix)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
System.Boolean |
transpose |
|
Matrix2 |
matrix |
|
Declaration
public static void UniformMatrix3(int location, bool transpose, ref Matrix3 matrix)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
System.Boolean |
transpose |
|
Matrix3 |
matrix |
|
Declaration
public static void UniformMatrix4(int location, bool transpose, ref Matrix4 matrix)
Parameters
Type |
Name |
Description |
System.Int32 |
location |
|
System.Boolean |
transpose |
|
Matrix4 |
matrix |
|
VertexAttrib2(Int32, Vector2)
Declaration
public static void VertexAttrib2(int index, Vector2 v)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Vector2 |
v |
|
VertexAttrib2(Int32, ref Vector2)
Declaration
[CLSCompliant(false)]
public static void VertexAttrib2(int index, ref Vector2 v)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Vector2 |
v |
|
VertexAttrib3(Int32, Vector3)
Declaration
public static void VertexAttrib3(int index, Vector3 v)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Vector3 |
v |
|
VertexAttrib3(Int32, ref Vector3)
Declaration
[CLSCompliant(false)]
public static void VertexAttrib3(int index, ref Vector3 v)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Vector3 |
v |
|
VertexAttrib4(Int32, Vector4)
Declaration
public static void VertexAttrib4(int index, Vector4 v)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Vector4 |
v |
|
VertexAttrib4(Int32, ref Vector4)
Declaration
[CLSCompliant(false)]
public static void VertexAttrib4(int index, ref Vector4 v)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Vector4 |
v |
|
VertexAttribPointer(Int32, Int32, VertexAttribPointerType, Boolean, Int32, Int32)
Declaration
public static void VertexAttribPointer(int index, int size, VertexAttribPointerType type, bool normalized, int stride, int offset)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Int32 |
size |
|
VertexAttribPointerType |
type |
|
System.Boolean |
normalized |
|
System.Int32 |
stride |
|
System.Int32 |
offset |
|
VertexAttribPointer(UInt32, Int32, VertexAttribPointerType, Boolean, Int32, Int32)
Declaration
[CLSCompliant(false)]
public static void VertexAttribPointer(uint index, int size, VertexAttribPointerType type, bool normalized, int stride, int offset)
Parameters
Type |
Name |
Description |
System.UInt32 |
index |
|
System.Int32 |
size |
|
VertexAttribPointerType |
type |
|
System.Boolean |
normalized |
|
System.Int32 |
stride |
|
System.Int32 |
offset |
|
Viewport(Point, Size)
Declaration
public static void Viewport(Point location, Size size)
Parameters
Type |
Name |
Description |
Point |
location |
|
Size |
size |
|
Viewport(Rectangle)
Declaration
public static void Viewport(Rectangle rectangle)
Parameters
Type |
Name |
Description |
Rectangle |
rectangle |
|
Viewport(Size)
Declaration
public static void Viewport(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|