C# Class MonoMac.OpenGL.GL

OpenGL bindings for .NET, implementing the full OpenGL API, including extensions.

This class contains all OpenGL enums and functions defined in the latest OpenGL specification. The official .spec files can be found at: http://opengl.org/registry/.

A valid OpenGL context must be created before calling any OpenGL function.

Use the GL.Load and GL.LoadAll methods to prepare function entry points prior to use. To maintain cross-platform compatibility, this must be done for both core and extension functions. The GameWindow and the GLControl class will take care of this automatically.

You can use the GL.SupportsExtension method to check whether any given category of extension functions exists in the current OpenGL context. Keep in mind that different OpenGL contexts may support different extensions, and under different entry points. Always check if all required extensions are still supported when changing visuals or pixel formats.

You may retrieve the entry point for an OpenGL function using the GL.GetDelegate method.

Mostrar archivo Open project: kangaroo/monomac

Public Methods

Method Description
BlendColor ( Color4 color ) : void
BlendColor ( MonoMac color ) : void
BlendColor ( System color ) : void
ClearColor ( Color4 color ) : void
ClearColor ( MonoMac color ) : void
ClearColor ( System color ) : void
Color3 ( MonoMac color ) : void
Color3 ( System color ) : void
Color3 ( System.Vector3 color ) : void
Color4 ( Color4 color ) : void
Color4 ( MonoMac color ) : void
Color4 ( System color ) : void
Color4 ( System.Vector4 color ) : void
ColorPointer ( int size, ColorPointerType type, int stride, int offset ) : void
DeleteTexture ( int id ) : void
DrawElements ( BeginMode mode, int count, DrawElementsType type, int offset ) : void
EdgeFlagPointer ( int stride, int offset ) : void
FogCoordPointer ( FogPointerType type, int stride, int offset ) : void
GenTexture ( ) : int
GetActiveAttrib ( int program, int index, int &size, ActiveAttribType &type ) : string
GetActiveUniform ( int program, int uniformIndex, int &size, ActiveUniformType &type ) : string
GetDouble ( GetPName pname, System.Matrix4d &matrix ) : void
GetDouble ( GetPName pname, Vector2d &vector ) : void
GetDouble ( GetPName pname, Vector3d &vector ) : void
GetDouble ( GetPName pname, Vector4d &vector ) : void
GetFloat ( GetPName pname, Matrix4 &matrix ) : void
GetFloat ( GetPName pname, System.Vector2 &vector ) : void
GetFloat ( GetPName pname, System.Vector3 &vector ) : void
GetFloat ( GetPName pname, System.Vector4 &vector ) : void
GetProgramInfoLog ( Int32 program ) : string
GetProgramInfoLog ( Int32 program, string &info ) : void
GetShaderInfoLog ( Int32 shader ) : string
GetShaderInfoLog ( Int32 shader, string &info ) : void
IndexPointer ( IndexPointerType type, int stride, int offset ) : void
Light ( LightName name, LightParameter pname, Color4 @params ) : void
Light ( LightName name, LightParameter pname, System.Vector4 @params ) : void
LoadMatrix ( Matrix4 &mat ) : void
LoadMatrix ( System.Matrix4d &mat ) : void
LoadTransposeMatrix ( Matrix4 &mat ) : void
LoadTransposeMatrix ( System.Matrix4d &mat ) : void
Material ( MaterialFace face, MaterialParameter pname, Color4 @params ) : void
Material ( MaterialFace face, MaterialParameter pname, System.Vector4 @params ) : void
MultMatrix ( Matrix4 &mat ) : void
MultMatrix ( System.Matrix4d &mat ) : void
MultTransposeMatrix ( Matrix4 &mat ) : void
MultTransposeMatrix ( System.Matrix4d &mat ) : void
MultiTexCoord2 ( TextureUnit target, System.Vector2 &v ) : void
MultiTexCoord2 ( TextureUnit target, Vector2d &v ) : void
MultiTexCoord3 ( TextureUnit target, System.Vector3 &v ) : void
MultiTexCoord3 ( TextureUnit target, Vector3d &v ) : void
MultiTexCoord4 ( TextureUnit target, System.Vector4 &v ) : void
MultiTexCoord4 ( TextureUnit target, Vector4d &v ) : void
Normal3 ( System.Vector3 normal ) : void
Normal3 ( Vector3d normal ) : void
NormalPointer ( NormalPointerType type, int stride, int offset ) : void
PointParameter ( PointSpriteCoordOriginParameter param ) : void

Helper function that defines the coordinate origin of the Point Sprite.

RasterPos2 ( System.Vector2 pos ) : void
RasterPos2 ( Vector2d pos ) : void
RasterPos3 ( System.Vector3 pos ) : void
RasterPos3 ( Vector3d pos ) : void
RasterPos4 ( System.Vector4 pos ) : void
RasterPos4 ( Vector4d pos ) : void
Rect ( System rect ) : void
Rotate ( System.Single angle, System.Vector3 axis ) : void
Rotate ( double angle, Vector3d axis ) : void
Scale ( System.Vector3 scale ) : void
Scale ( Vector3d scale ) : void
ShaderSource ( Int32 shader, System @string ) : void
TexCoord2 ( System.Vector2 v ) : void
TexCoord2 ( Vector2d v ) : void
TexCoord3 ( System.Vector3 v ) : void
TexCoord3 ( Vector3d v ) : void
TexCoord4 ( System.Vector4 v ) : void
TexCoord4 ( Vector4d v ) : void
TexCoordPointer ( int size, TexCoordPointerType type, int stride, int offset ) : void
TexEnv ( TextureEnvTarget target, TextureEnvParameter pname, Color4 color ) : void
TexEnv ( TextureEnvTarget target, TextureEnvParameter pname, System color ) : void
Translate ( System.Vector3 trans ) : void
Translate ( Vector3d trans ) : void
Uniform4 ( int location, Color4 color ) : void
Uniform4 ( int location, Quaternion quaternion ) : void
UniformMatrix4 ( int location, bool transpose, Matrix4 &matrix ) : void
Vertex2 ( System.Vector2 v ) : void
Vertex2 ( Vector2d v ) : void
Vertex3 ( System.Vector3 v ) : void
Vertex3 ( Vector3d v ) : void
Vertex4 ( System.Vector4 v ) : void
Vertex4 ( Vector4d v ) : void
VertexAttribPointer ( int index, int size, VertexAttribPointerType type, bool normalized, int stride, int offset ) : void
VertexPointer ( int size, VertexPointerType type, int stride, int offset ) : void
Viewport ( OpenTK rectangle ) : void
Viewport ( OpenTK location, OpenTK size ) : void
Viewport ( System size ) : void
Viewport ( System location, System size ) : void

Private Methods

Method Description
DeleteTexture ( uint id ) : void
GL ( ) : System
Uniform2 ( int location, System.Vector2 &vector ) : void
Uniform3 ( int location, System.Vector3 &vector ) : void
Uniform4 ( int location, System.Vector4 &vector ) : void
VertexAttrib2 ( Int32 index, System.Vector2 &v ) : void
VertexAttrib2 ( Int32 index, Vector2d &v ) : void
VertexAttrib3 ( Int32 index, System.Vector3 &v ) : void
VertexAttrib3 ( Int32 index, Vector3d &v ) : void
VertexAttrib4 ( Int32 index, System.Vector4 &v ) : void
VertexAttrib4 ( Int32 index, Vector4d &v ) : void

Method Details

BlendColor() public static method

public static BlendColor ( Color4 color ) : void
color Color4
return void

BlendColor() public static method

public static BlendColor ( MonoMac color ) : void
color MonoMac
return void

BlendColor() public static method

public static BlendColor ( System color ) : void
color System
return void

ClearColor() public static method

public static ClearColor ( Color4 color ) : void
color Color4
return void

ClearColor() public static method

public static ClearColor ( MonoMac color ) : void
color MonoMac
return void

ClearColor() public static method

public static ClearColor ( System color ) : void
color System
return void

Color3() public static method

public static Color3 ( MonoMac color ) : void
color MonoMac
return void

Color3() public static method

public static Color3 ( System color ) : void
color System
return void

Color3() public static method

public static Color3 ( System.Vector3 color ) : void
color System.Vector3
return void

Color4() public static method

public static Color4 ( Color4 color ) : void
color Color4
return void

Color4() public static method

public static Color4 ( MonoMac color ) : void
color MonoMac
return void

Color4() public static method

public static Color4 ( System color ) : void
color System
return void

Color4() public static method

public static Color4 ( System.Vector4 color ) : void
color System.Vector4
return void

ColorPointer() public static method

public static ColorPointer ( int size, ColorPointerType type, int stride, int offset ) : void
size int
type ColorPointerType
stride int
offset int
return void

DeleteTexture() public static method

public static DeleteTexture ( int id ) : void
id int
return void

DrawElements() public static method

public static DrawElements ( BeginMode mode, int count, DrawElementsType type, int offset ) : void
mode BeginMode
count int
type DrawElementsType
offset int
return void

EdgeFlagPointer() public static method

public static EdgeFlagPointer ( int stride, int offset ) : void
stride int
offset int
return void

FogCoordPointer() public static method

public static FogCoordPointer ( FogPointerType type, int stride, int offset ) : void
type FogPointerType
stride int
offset int
return void

GenTexture() public static method

public static GenTexture ( ) : int
return int

GetActiveAttrib() public static method

public static GetActiveAttrib ( int program, int index, int &size, ActiveAttribType &type ) : string
program int
index int
size int
type ActiveAttribType
return string

GetActiveUniform() public static method

public static GetActiveUniform ( int program, int uniformIndex, int &size, ActiveUniformType &type ) : string
program int
uniformIndex int
size int
type ActiveUniformType
return string

GetDouble() public static method

public static GetDouble ( GetPName pname, System.Matrix4d &matrix ) : void
pname GetPName
matrix System.Matrix4d
return void

GetDouble() public static method

public static GetDouble ( GetPName pname, Vector2d &vector ) : void
pname GetPName
vector Vector2d
return void

GetDouble() public static method

public static GetDouble ( GetPName pname, Vector3d &vector ) : void
pname GetPName
vector Vector3d
return void

GetDouble() public static method

public static GetDouble ( GetPName pname, Vector4d &vector ) : void
pname GetPName
vector Vector4d
return void

GetFloat() public static method

public static GetFloat ( GetPName pname, Matrix4 &matrix ) : void
pname GetPName
matrix Matrix4
return void

GetFloat() public static method

public static GetFloat ( GetPName pname, System.Vector2 &vector ) : void
pname GetPName
vector System.Vector2
return void

GetFloat() public static method

public static GetFloat ( GetPName pname, System.Vector3 &vector ) : void
pname GetPName
vector System.Vector3
return void

GetFloat() public static method

public static GetFloat ( GetPName pname, System.Vector4 &vector ) : void
pname GetPName
vector System.Vector4
return void

GetProgramInfoLog() public static method

public static GetProgramInfoLog ( Int32 program ) : string
program System.Int32
return string

GetProgramInfoLog() public static method

public static GetProgramInfoLog ( Int32 program, string &info ) : void
program System.Int32
info string
return void

GetShaderInfoLog() public static method

public static GetShaderInfoLog ( Int32 shader ) : string
shader System.Int32
return string

GetShaderInfoLog() public static method

public static GetShaderInfoLog ( Int32 shader, string &info ) : void
shader System.Int32
info string
return void

IndexPointer() public static method

public static IndexPointer ( IndexPointerType type, int stride, int offset ) : void
type IndexPointerType
stride int
offset int
return void

Light() public static method

public static Light ( LightName name, LightParameter pname, Color4 @params ) : void
name LightName
pname LightParameter
@params Color4
return void

Light() public static method

public static Light ( LightName name, LightParameter pname, System.Vector4 @params ) : void
name LightName
pname LightParameter
@params System.Vector4
return void

LoadMatrix() public static method

public static LoadMatrix ( Matrix4 &mat ) : void
mat Matrix4
return void

LoadMatrix() public static method

public static LoadMatrix ( System.Matrix4d &mat ) : void
mat System.Matrix4d
return void

LoadTransposeMatrix() public static method

public static LoadTransposeMatrix ( Matrix4 &mat ) : void
mat Matrix4
return void

LoadTransposeMatrix() public static method

public static LoadTransposeMatrix ( System.Matrix4d &mat ) : void
mat System.Matrix4d
return void

Material() public static method

public static Material ( MaterialFace face, MaterialParameter pname, Color4 @params ) : void
face MaterialFace
pname MaterialParameter
@params Color4
return void

Material() public static method

public static Material ( MaterialFace face, MaterialParameter pname, System.Vector4 @params ) : void
face MaterialFace
pname MaterialParameter
@params System.Vector4
return void

MultMatrix() public static method

public static MultMatrix ( Matrix4 &mat ) : void
mat Matrix4
return void

MultMatrix() public static method

public static MultMatrix ( System.Matrix4d &mat ) : void
mat System.Matrix4d
return void

MultTransposeMatrix() public static method

public static MultTransposeMatrix ( Matrix4 &mat ) : void
mat Matrix4
return void

MultTransposeMatrix() public static method

public static MultTransposeMatrix ( System.Matrix4d &mat ) : void
mat System.Matrix4d
return void

MultiTexCoord2() public static method

public static MultiTexCoord2 ( TextureUnit target, System.Vector2 &v ) : void
target TextureUnit
v System.Vector2
return void

MultiTexCoord2() public static method

public static MultiTexCoord2 ( TextureUnit target, Vector2d &v ) : void
target TextureUnit
v Vector2d
return void

MultiTexCoord3() public static method

public static MultiTexCoord3 ( TextureUnit target, System.Vector3 &v ) : void
target TextureUnit
v System.Vector3
return void

MultiTexCoord3() public static method

public static MultiTexCoord3 ( TextureUnit target, Vector3d &v ) : void
target TextureUnit
v Vector3d
return void

MultiTexCoord4() public static method

public static MultiTexCoord4 ( TextureUnit target, System.Vector4 &v ) : void
target TextureUnit
v System.Vector4
return void

MultiTexCoord4() public static method

public static MultiTexCoord4 ( TextureUnit target, Vector4d &v ) : void
target TextureUnit
v Vector4d
return void

Normal3() public static method

public static Normal3 ( System.Vector3 normal ) : void
normal System.Vector3
return void

Normal3() public static method

public static Normal3 ( Vector3d normal ) : void
normal Vector3d
return void

NormalPointer() public static method

public static NormalPointer ( NormalPointerType type, int stride, int offset ) : void
type NormalPointerType
stride int
offset int
return void

PointParameter() public static method

Helper function that defines the coordinate origin of the Point Sprite.
public static PointParameter ( PointSpriteCoordOriginParameter param ) : void
param PointSpriteCoordOriginParameter /// A MonoMac.OpenGL.GL.PointSpriteCoordOriginParameter token, /// denoting the origin of the Point Sprite. ///
return void

RasterPos2() public static method

public static RasterPos2 ( System.Vector2 pos ) : void
pos System.Vector2
return void

RasterPos2() public static method

public static RasterPos2 ( Vector2d pos ) : void
pos Vector2d
return void

RasterPos3() public static method

public static RasterPos3 ( System.Vector3 pos ) : void
pos System.Vector3
return void

RasterPos3() public static method

public static RasterPos3 ( Vector3d pos ) : void
pos Vector3d
return void

RasterPos4() public static method

public static RasterPos4 ( System.Vector4 pos ) : void
pos System.Vector4
return void

RasterPos4() public static method

public static RasterPos4 ( Vector4d pos ) : void
pos Vector4d
return void

Rect() public static method

public static Rect ( System rect ) : void
rect System
return void

Rotate() public static method

public static Rotate ( System.Single angle, System.Vector3 axis ) : void
angle System.Single
axis System.Vector3
return void

Rotate() public static method

public static Rotate ( double angle, Vector3d axis ) : void
angle double
axis Vector3d
return void

Scale() public static method

public static Scale ( System.Vector3 scale ) : void
scale System.Vector3
return void

Scale() public static method

public static Scale ( Vector3d scale ) : void
scale Vector3d
return void

ShaderSource() public static method

public static ShaderSource ( Int32 shader, System @string ) : void
shader System.Int32
@string System
return void

TexCoord2() public static method

public static TexCoord2 ( System.Vector2 v ) : void
v System.Vector2
return void

TexCoord2() public static method

public static TexCoord2 ( Vector2d v ) : void
v Vector2d
return void

TexCoord3() public static method

public static TexCoord3 ( System.Vector3 v ) : void
v System.Vector3
return void

TexCoord3() public static method

public static TexCoord3 ( Vector3d v ) : void
v Vector3d
return void

TexCoord4() public static method

public static TexCoord4 ( System.Vector4 v ) : void
v System.Vector4
return void

TexCoord4() public static method

public static TexCoord4 ( Vector4d v ) : void
v Vector4d
return void

TexCoordPointer() public static method

public static TexCoordPointer ( int size, TexCoordPointerType type, int stride, int offset ) : void
size int
type TexCoordPointerType
stride int
offset int
return void

TexEnv() public static method

public static TexEnv ( TextureEnvTarget target, TextureEnvParameter pname, Color4 color ) : void
target TextureEnvTarget
pname TextureEnvParameter
color Color4
return void

TexEnv() public static method

public static TexEnv ( TextureEnvTarget target, TextureEnvParameter pname, System color ) : void
target TextureEnvTarget
pname TextureEnvParameter
color System
return void

Translate() public static method

public static Translate ( System.Vector3 trans ) : void
trans System.Vector3
return void

Translate() public static method

public static Translate ( Vector3d trans ) : void
trans Vector3d
return void

Uniform4() public static method

public static Uniform4 ( int location, Color4 color ) : void
location int
color Color4
return void

Uniform4() public static method

public static Uniform4 ( int location, Quaternion quaternion ) : void
location int
quaternion Quaternion
return void

UniformMatrix4() public static method

public static UniformMatrix4 ( int location, bool transpose, Matrix4 &matrix ) : void
location int
transpose bool
matrix Matrix4
return void

Vertex2() public static method

public static Vertex2 ( System.Vector2 v ) : void
v System.Vector2
return void

Vertex2() public static method

public static Vertex2 ( Vector2d v ) : void
v Vector2d
return void

Vertex3() public static method

public static Vertex3 ( System.Vector3 v ) : void
v System.Vector3
return void

Vertex3() public static method

public static Vertex3 ( Vector3d v ) : void
v Vector3d
return void

Vertex4() public static method

public static Vertex4 ( System.Vector4 v ) : void
v System.Vector4
return void

Vertex4() public static method

public static Vertex4 ( Vector4d v ) : void
v Vector4d
return void

VertexAttribPointer() public static method

public static VertexAttribPointer ( int index, int size, VertexAttribPointerType type, bool normalized, int stride, int offset ) : void
index int
size int
type VertexAttribPointerType
normalized bool
stride int
offset int
return void

VertexPointer() public static method

public static VertexPointer ( int size, VertexPointerType type, int stride, int offset ) : void
size int
type VertexPointerType
stride int
offset int
return void

Viewport() public static method

public static Viewport ( OpenTK rectangle ) : void
rectangle OpenTK
return void

Viewport() public static method

public static Viewport ( OpenTK location, OpenTK size ) : void
location OpenTK
size OpenTK
return void

Viewport() public static method

public static Viewport ( System size ) : void
size System
return void

Viewport() public static method

public static Viewport ( System location, System size ) : void
location System
size System
return void