C# Class CSharpGL.OpenGL

Exibir arquivo Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Properties

Property Type Description
FOG_SPECULAR_TEXTURE_WIN uint

Public Methods

Method Description
BindImageTexture ( uint unit, uint texture, int level, bool layered, int layer, uint access, uint format ) : void

bind a level of a texture to an image unit(a uniform image2D in compute shader).

for more information check http://www.unix.com/man-page/debian/3g/GLBINDIMAGETEXTURE/

BindSampler ( uint target, uint sampler ) : void

Clear ( ClearBufferMask mask ) : void

This function clears the buffers specified by mask.

DeleteBuffers ( int n, uint buffers ) : void

This function deletes a set of vertex buffer objects.

DeleteFramebuffers ( uint n, uint framebuffers ) : void

This function deletes a set of Texture objects.

DeleteRenderbuffers ( uint n, uint renderbuffers ) : void

This function deletes a set of Texture objects.

DeleteTextures ( int n, uint textures ) : void

This function deletes a set of Texture objects.

GenSamplers ( int n, uint textures ) : void

GenerateMipmap ( MipmapTarget target ) : void

SamplerParameteri ( uint sampler, uint pname, int param ) : void

Private Methods

Method Description
Accum ( uint op, float value ) : void
AlphaFunc ( uint func, float ref_notkeword ) : void
AreTexturesResident ( int n, uint textures, byte residences ) : byte
ArrayElement ( int i ) : void
Begin ( uint mode ) : void
BindTexture ( uint target, uint texture ) : void
Bitmap ( int width, int height, float xorig, float yorig, float xmove, float ymove, byte bitmap ) : void
BlendFunc ( uint sfactor, uint dfactor ) : void
CallList ( uint list ) : void
CallLists ( int n, uint type, IntPtr lists ) : void
CallLists ( int n, uint type, byte lists ) : void
CallLists ( int n, uint type, uint lists ) : void
Clear ( uint mask ) : void
ClearAccum ( float red, float green, float blue, float alpha ) : void
ClearDepth ( double depth ) : void
ClearIndex ( float c ) : void
ClearStencil ( int s ) : void
ClipPlane ( uint plane, double equation ) : void
Color3b ( byte red, byte green, byte blue ) : void
Color3bv ( byte v ) : void
Color3d ( double red, double green, double blue ) : void
Color3dv ( double v ) : void
Color3f ( float red, float green, float blue ) : void
Color3fv ( float v ) : void
Color3i ( int red, int green, int blue ) : void
Color3iv ( int v ) : void
Color3s ( short red, short green, short blue ) : void
Color3sv ( short v ) : void
Color3ub ( byte red, byte green, byte blue ) : void
Color3ubv ( byte v ) : void
Color3ui ( uint red, uint green, uint blue ) : void
Color3uiv ( uint v ) : void
Color3us ( ushort red, ushort green, ushort blue ) : void
Color3usv ( ushort v ) : void
Color4b ( byte red, byte green, byte blue, byte alpha ) : void
Color4bv ( byte v ) : void
Color4d ( double red, double green, double blue, double alpha ) : void
Color4dv ( double v ) : void
Color4f ( float red, float green, float blue, float alpha ) : void
Color4fv ( float v ) : void
Color4i ( int red, int green, int blue, int alpha ) : void
Color4iv ( int v ) : void
Color4s ( short red, short green, short blue, short alpha ) : void
Color4sv ( short v ) : void
Color4ub ( byte red, byte green, byte blue, byte alpha ) : void
Color4ubv ( byte v ) : void
Color4ui ( uint red, uint green, uint blue, uint alpha ) : void
Color4uiv ( uint v ) : void
Color4us ( ushort red, ushort green, ushort blue, ushort alpha ) : void
Color4usv ( ushort v ) : void
ColorMask ( bool redWritable, bool greenWritable, bool blueWritable, bool alphaWritable ) : void
ColorMaterial ( uint face, uint mode ) : void
ColorPointer ( int size, uint type, int stride, IntPtr pointer ) : void
CopyPixels ( int x, int y, int width, int height, uint type ) : void
CopyTexImage1D ( uint target, int level, uint internalFormat, int x, int y, int width, int border ) : void
CopyTexImage2D ( uint target, int level, uint internalFormat, int x, int y, int width, int height, int border ) : void
CopyTexSubImage1D ( uint target, int level, int xoffset, int x, int y, int width ) : void
CopyTexSubImage2D ( uint target, int level, int xoffset, int yoffset, int x, int y, int width, int height ) : void
CullFace ( uint mode ) : void
DeleteLists ( uint list, int range ) : void
DepthFunc ( uint func ) : void
DepthMask ( bool writable ) : void
DepthRange ( double zNear, double zFar ) : void
Disable ( uint cap ) : void
DrawArrays ( uint mode, int first, int count ) : void
DrawBuffer ( uint mode ) : void
DrawElements ( uint mode, int count, uint type, IntPtr indices ) : void
DrawElements ( uint mode, int count, uint type, uint indices ) : void
DrawPixels ( int width, int height, uint format, uint type, IntPtr pixels ) : void
DrawPixels ( int width, int height, uint format, uint type, byte pixels ) : void
DrawPixels ( int width, int height, uint format, uint type, float pixels ) : void
DrawPixels ( int width, int height, uint format, uint type, uint pixels ) : void
DrawPixels ( int width, int height, uint format, uint type, ushort pixels ) : void
EdgeFlag ( byte flag ) : void
EdgeFlagPointer ( int stride, int pointer ) : void
EdgeFlagv ( byte flag ) : void
Enable ( uint cap ) : void
EnableClientState ( uint array ) : void
End ( ) : void
EndList ( ) : void
EvalCoord1d ( double u ) : void
EvalCoord1dv ( double u ) : void
EvalCoord1f ( float u ) : void
EvalCoord1fv ( float u ) : void
EvalCoord2d ( double u, double v ) : void
EvalCoord2dv ( double u ) : void
EvalCoord2f ( float u, float v ) : void
EvalCoord2fv ( float u ) : void
EvalMesh1 ( uint mode, int i1, int i2 ) : void
EvalMesh2 ( uint mode, int i1, int i2, int j1, int j2 ) : void
EvalPoint1 ( int i ) : void
EvalPoint2 ( int i, int j ) : void
FeedbackBuffer ( int size, uint type, float buffer ) : void
Finish ( ) : void
Flush ( ) : void
Fogf ( uint pname, float param ) : void
Fogfv ( uint pname, float parameters ) : void
Fogi ( uint pname, int param ) : void
Fogiv ( uint pname, int parameters ) : void
FrontFace ( uint mode ) : void
Frustum ( double left, double right, double bottom, double top, double zNear, double zFar ) : void
GenLists ( int range ) : uint
GenTextures ( int n, uint textures ) : void
GetBooleanv ( uint pname, byte parameters ) : void
GetClipPlane ( uint plane, double equation ) : void
GetDoublev ( uint pname, double parameters ) : void
GetError ( ) : uint
GetFloatv ( uint pname, float parameters ) : void
GetIntegerv ( uint pname, int parameters ) : void
GetLightfv ( uint light, uint pname, float parameters ) : void
GetLightiv ( uint light, uint pname, int parameters ) : void
GetMapdv ( uint target, uint query, double v ) : void
GetMapfv ( uint target, uint query, float v ) : void
GetMapiv ( uint target, uint query, int v ) : void
GetMaterialfv ( uint face, uint pname, float parameters ) : void
GetMaterialiv ( uint face, uint pname, int parameters ) : void
GetPixelMapfv ( uint map, float values ) : void
GetPixelMapuiv ( uint map, uint values ) : void
GetPixelMapusv ( uint map, ushort values ) : void
GetPointerv ( uint pname, int parameters ) : void
GetPolygonStipple ( byte mask ) : void
GetTexEnvfv ( uint target, uint pname, float parameters ) : void
GetTexEnviv ( uint target, uint pname, int parameters ) : void
GetTexGendv ( uint coord, uint pname, double parameters ) : void
GetTexGenfv ( uint coord, uint pname, float parameters ) : void
GetTexGeniv ( uint coord, uint pname, int parameters ) : void
GetTexImage ( uint target, int level, uint format, uint type, IntPtr pixels ) : void
GetTexLevelParameterfv ( uint target, int level, uint pname, float parameters ) : void
GetTexLevelParameteriv ( uint target, int level, uint pname, int parameters ) : void
GetTexParameterfv ( uint target, uint pname, float parameters ) : void
GetTexParameteriv ( uint target, uint pname, int parameters ) : void
Hint ( uint target, uint mode ) : void
IndexMask ( uint mask ) : void
IndexPointer ( uint type, int stride, int pointer ) : void
Indexd ( double c ) : void
Indexdv ( double c ) : void
Indexf ( float c ) : void
Indexfv ( float c ) : void
Indexi ( int c ) : void
Indexiv ( int c ) : void
Indexs ( short c ) : void
Indexsv ( short c ) : void
Indexub ( byte c ) : void
Indexubv ( byte c ) : void
InitNames ( ) : void
InterleavedArrays ( uint format, int stride, int pointer ) : void
IsEnabled ( uint cap ) : byte
IsList ( uint list ) : byte
IsTexture ( uint texture ) : byte
LightModelf ( uint pname, float param ) : void
LightModelfv ( uint pname, float parameters ) : void
LightModeli ( uint pname, int param ) : void
LightModeliv ( uint pname, int parameters ) : void
Lightf ( uint light, uint pname, float param ) : void
Lightfv ( uint light, uint pname, float parameters ) : void
Lighti ( uint light, uint pname, int param ) : void
Lightiv ( uint light, uint pname, int parameters ) : void
LineStipple ( int factor, ushort pattern ) : void
LineWidth ( float width ) : void
ListBase ( uint listbase ) : void
LoadIdentity ( ) : void
LoadMatrixd ( double m ) : void
LoadMatrixf ( float m ) : void
LoadName ( uint name ) : void
LogicOp ( uint opcode ) : void
Map1d ( uint target, double u1, double u2, int stride, int order, IntPtr points ) : void
Map1f ( uint target, float u1, float u2, int stride, int order, IntPtr points ) : void
Map2d ( uint target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, IntPtr points ) : void
Map2f ( uint target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, IntPtr points ) : void
MapGrid1d ( int un, double u1, double u2 ) : void
MapGrid1f ( int un, float u1, float u2 ) : void
MapGrid2d ( int un, double u1, double u2, int vn, double v1, double v2 ) : void
MapGrid2f ( int un, float u1, float u2, int vn, float v1, float v2 ) : void
Materialf ( uint face, uint pname, float param ) : void
Materialfv ( uint face, uint pname, float parameters ) : void
Materiali ( uint face, uint pname, int param ) : void
Materialiv ( uint face, uint pname, int parameters ) : void
MatrixMode ( uint mode ) : void
MultMatrixd ( double m ) : void
MultMatrixf ( float m ) : void
NewList ( uint list, uint mode ) : void
Normal3b ( byte nx, byte ny, byte nz ) : void
Normal3bv ( byte v ) : void
Normal3d ( double nx, double ny, double nz ) : void
Normal3dv ( double v ) : void
Normal3f ( float nx, float ny, float nz ) : void
Normal3fv ( float v ) : void
Normal3i ( int nx, int ny, int nz ) : void
Normal3iv ( int v ) : void
Normal3s ( short nx, short ny, short nz ) : void
Normal3sv ( short v ) : void
NormalPointer ( uint type, int stride, IntPtr pointer ) : void
NormalPointer ( uint type, int stride, float pointer ) : void
Ortho ( double left, double right, double bottom, double top, double zNear, double zFar ) : void
PassThrough ( float token ) : void
PixelMapfv ( uint map, int mapsize, float values ) : void
PixelMapuiv ( uint map, int mapsize, uint values ) : void
PixelMapusv ( uint map, int mapsize, ushort values ) : void
PixelStoref ( uint pname, float param ) : void
PixelStorei ( uint pname, int param ) : void
PixelTransferf ( uint pname, float param ) : void
PixelTransferi ( uint pname, int param ) : void
PixelZoom ( float xfactor, float yfactor ) : void
PointSize ( float size ) : void
PolygonMode ( uint face, uint mode ) : void
PolygonOffset ( float factor, float units ) : void
PolygonStipple ( byte mask ) : void
PopAttrib ( ) : void
PopClientAttrib ( ) : void
PopMatrix ( ) : void
PopName ( ) : void
PrioritizeTextures ( int n, uint textures, float priorities ) : void
PushAttrib ( uint mask ) : void
PushClientAttrib ( uint mask ) : void
PushMatrix ( ) : void
PushName ( uint name ) : void
RasterPos2d ( double x, double y ) : void
RasterPos2dv ( double v ) : void
RasterPos2f ( float x, float y ) : void
RasterPos2fv ( float v ) : void
RasterPos2i ( int x, int y ) : void
RasterPos2iv ( int v ) : void
RasterPos2s ( short x, short y ) : void
RasterPos2sv ( short v ) : void
RasterPos3d ( double x, double y, double z ) : void
RasterPos3dv ( double v ) : void
RasterPos3f ( float x, float y, float z ) : void
RasterPos3fv ( float v ) : void
RasterPos3i ( int x, int y, int z ) : void
RasterPos3iv ( int v ) : void
RasterPos3s ( short x, short y, short z ) : void
RasterPos3sv ( short v ) : void
RasterPos4d ( double x, double y, double z, double w ) : void
RasterPos4dv ( double v ) : void
RasterPos4f ( float x, float y, float z, float w ) : void
RasterPos4fv ( float v ) : void
RasterPos4i ( int x, int y, int z, int w ) : void
RasterPos4iv ( int v ) : void
RasterPos4s ( short x, short y, short z, short w ) : void
RasterPos4sv ( short v ) : void
ReadBuffer ( uint mode ) : void
ReadPixels ( int x, int y, int width, int height, uint format, uint type, IntPtr pixels ) : void
ReadPixels ( int x, int y, int width, int height, uint format, uint type, byte pixels ) : void
Rectd ( double x1, double y1, double x2, double y2 ) : void
Rectdv ( double v1, double v2 ) : void
Rectf ( float x1, float y1, float x2, float y2 ) : void
Rectfv ( float v1, float v2 ) : void
Recti ( int x1, int y1, int x2, int y2 ) : void
Rectiv ( int v1, int v2 ) : void
Rects ( short x1, short y1, short x2, short y2 ) : void
Rectsv ( short v1, short v2 ) : void
RenderMode ( uint mode ) : int
Rotated ( double angle, double x, double y, double z ) : void
Rotatef ( float angle, float x, float y, float z ) : void
Scaled ( double x, double y, double z ) : void
Scalef ( float x, float y, float z ) : void
Scissor ( int x, int y, int width, int height ) : void
SelectBuffer ( int size, uint buffer ) : void
ShadeModel ( uint mode ) : void
StencilFunc ( uint func, int reference, uint mask ) : void
StencilMask ( uint mask ) : void
StencilOp ( uint fail, uint zfail, uint zpass ) : void
TexCoord1d ( double s ) : void
TexCoord1dv ( double v ) : void
TexCoord1f ( float s ) : void
TexCoord1fv ( float v ) : void
TexCoord1i ( int s ) : void
TexCoord1iv ( int v ) : void
TexCoord1s ( short s ) : void
TexCoord1sv ( short v ) : void
TexCoord2d ( double s, double t ) : void
TexCoord2dv ( double v ) : void
TexCoord2f ( float s, float t ) : void
TexCoord2fv ( float v ) : void
TexCoord2i ( int s, int t ) : void
TexCoord2iv ( int v ) : void
TexCoord2s ( short s, short t ) : void
TexCoord2sv ( short v ) : void
TexCoord3d ( double s, double t, double r ) : void
TexCoord3dv ( double v ) : void
TexCoord3f ( float s, float t, float r ) : void
TexCoord3fv ( float v ) : void
TexCoord3i ( int s, int t, int r ) : void
TexCoord3iv ( int v ) : void
TexCoord3s ( short s, short t, short r ) : void
TexCoord3sv ( short v ) : void
TexCoord4d ( double s, double t, double r, double q ) : void
TexCoord4dv ( double v ) : void
TexCoord4f ( float s, float t, float r, float q ) : void
TexCoord4fv ( float v ) : void
TexCoord4i ( int s, int t, int r, int q ) : void
TexCoord4iv ( int v ) : void
TexCoord4s ( short s, short t, short r, short q ) : void
TexCoord4sv ( short v ) : void
TexCoordPointer ( int size, uint type, int stride, IntPtr pointer ) : void
TexCoordPointer ( int size, uint type, int stride, float pointer ) : void
TexEnvf ( uint target, uint pname, float param ) : void
TexEnvfv ( uint target, uint pname, float parameters ) : void
TexEnvi ( uint target, uint pname, int param ) : void
TexEnviv ( uint target, uint pname, int parameters ) : void
TexGend ( uint coord, uint pname, double param ) : void
TexGendv ( uint coord, uint pname, double parameters ) : void
TexGenf ( uint coord, uint pname, float param ) : void
TexGenfv ( uint coord, uint pname, float parameters ) : void
TexGeni ( uint coord, uint pname, int param ) : void
TexGeniv ( uint coord, uint pname, int parameters ) : void
TexImage1D ( uint target, int level, uint internalformat, int width, int border, uint format, uint type, IntPtr pixels ) : void
TexImage1D ( uint target, int level, uint internalformat, int width, int border, uint format, uint type, byte pixels ) : void
TexImage2D ( uint target, int level, uint internalformat, int width, int height, int border, uint format, uint type, IntPtr pixels ) : void
TexParameterf ( uint target, uint pname, float param ) : void
TexParameterfv ( uint target, uint pname, float parameters ) : void
TexParameteri ( uint target, uint pname, int param ) : void
TexParameteriv ( uint target, uint pname, int parameters ) : void
TexSubImage1D ( uint target, int level, int xoffset, int width, uint format, uint type, IntPtr pixels ) : void
TexSubImage1D ( uint target, int level, int xoffset, int width, uint format, uint type, int pixels ) : void
TexSubImage2D ( uint target, int level, int xoffset, int yoffset, int width, int height, uint format, uint type, IntPtr pixels ) : void
TexSubImage2D ( uint target, int level, int xoffset, int yoffset, int width, int height, uint format, uint type, int pixels ) : void
Translated ( double x, double y, double z ) : void
Translatef ( float x, float y, float z ) : void
Vertex2d ( double x, double y ) : void
Vertex2dv ( double v ) : void
Vertex2f ( float x, float y ) : void
Vertex2fv ( float v ) : void
Vertex2i ( int x, int y ) : void
Vertex2iv ( int v ) : void
Vertex2s ( short x, short y ) : void
Vertex2sv ( short v ) : void
Vertex3d ( double x, double y, double z ) : void
Vertex3dv ( double v ) : void
Vertex3f ( float x, float y, float z ) : void
Vertex3fv ( float v ) : void
Vertex3i ( int x, int y, int z ) : void
Vertex3iv ( int v ) : void
Vertex3s ( short x, short y, short z ) : void
Vertex3sv ( short v ) : void
Vertex4d ( double x, double y, double z, double w ) : void
Vertex4dv ( double v ) : void
Vertex4f ( float x, float y, float z, float w ) : void
Vertex4fv ( float v ) : void
Vertex4i ( int x, int y, int z, int w ) : void
Vertex4iv ( int v ) : void
Vertex4s ( short x, short y, short z, short w ) : void
Vertex4sv ( short v ) : void
VertexPointer ( int size, uint type, int stride, IntPtr pointer ) : void
VertexPointer ( int size, uint type, int stride, double pointer ) : void
VertexPointer ( int size, uint type, int stride, float pointer ) : void
VertexPointer ( int size, uint type, int stride, int pointer ) : void
VertexPointer ( int size, uint type, int stride, short pointer ) : void
Viewport ( int x, int y, int width, int height ) : void
glClearColor ( float red, float green, float blue, float alpha ) : void
glDeleteTextures ( int n, uint textures ) : void
glGetString ( uint name ) : sbyte*

Method Details

BindImageTexture() public static method

bind a level of a texture to an image unit(a uniform image2D in compute shader).

for more information check http://www.unix.com/man-page/debian/3g/GLBINDIMAGETEXTURE/

public static BindImageTexture ( uint unit, uint texture, int level, bool layered, int layer, uint access, uint format ) : void
unit uint Specifies the index of the image unit to which to bind the texture.a uniform image2D variable's location.
texture uint Specifies the name of the texture to bind to the image unit.texture's id from glGenTexture().
level int Specifies the level of the texture that is to be bound.
layered bool Specifies whether a layered texture binding is to be established.
layer int If ​ is false, specifies the layer of texture​ to be bound to the image unit. Ignored otherwise.
access uint Specifies a token indicating the type of access that will be performed on the image.OpenGL.GL_READ_ONLY, OpenGL.GL_WRITE_ONLY, OpenGL.GL_READ_WRITE etc.
format uint Specifies the format that the elements of the image will be treated as for the purposes of formatted stores.OpenGL.GL_RGBA32F etc.
return void

BindSampler() public static method

public static BindSampler ( uint target, uint sampler ) : void
target uint
sampler uint
return void

Clear() public static method

This function clears the buffers specified by mask.
public static Clear ( ClearBufferMask mask ) : void
mask ClearBufferMask Which buffers to clear.
return void

DeleteBuffers() public static method

This function deletes a set of vertex buffer objects.
public static DeleteBuffers ( int n, uint buffers ) : void
n int Number of textures to delete.
buffers uint The array containing the names of the buffers to delete.
return void

DeleteFramebuffers() public static method

This function deletes a set of Texture objects.
public static DeleteFramebuffers ( uint n, uint framebuffers ) : void
n uint Number of textures to delete.
framebuffers uint The array containing the names of the textures to delete.
return void

DeleteRenderbuffers() public static method

This function deletes a set of Texture objects.
public static DeleteRenderbuffers ( uint n, uint renderbuffers ) : void
n uint Number of textures to delete.
renderbuffers uint The array containing the names of the textures to delete.
return void

DeleteTextures() public static method

This function deletes a set of Texture objects.
public static DeleteTextures ( int n, uint textures ) : void
n int Number of textures to delete.
textures uint The array containing the names of the textures to delete.
return void

GenSamplers() public static method

public static GenSamplers ( int n, uint textures ) : void
n int
textures uint
return void

GenerateMipmap() public static method

public static GenerateMipmap ( MipmapTarget target ) : void
target MipmapTarget
return void

SamplerParameteri() public static method

public static SamplerParameteri ( uint sampler, uint pname, int param ) : void
sampler uint
pname uint
param int
return void

Property Details

FOG_SPECULAR_TEXTURE_WIN public_oe static_oe property

public static uint FOG_SPECULAR_TEXTURE_WIN
return uint