C# Class DotNetWebToolkit.WebGL.WebGLRenderingContext

Inheritance: CanvasRenderingContext
显示文件 Open project: chrisdunelm/DotNetWebToolkit Class Usage Examples

Public Methods

Method Description
ActiveTexture ( TextureUnit texture ) : void
AttachShader ( WebGLProgram program, WebGLShader shader ) : void
BindBuffer ( BufferTarget target, WebGLBuffer buffer ) : void
BindTexture ( TextureTarget target, WebGLTexture texture ) : void
BufferData ( BufferTarget target, ArrayBufferView data, BufferUsage usage ) : void
Clear ( ClearBufferMask mask ) : void
ClearColor ( float red, float green, float blue, float alpha ) : void
CompileShader ( WebGLShader shader ) : void
CreateBuffer ( ) : WebGLBuffer
CreateProgram ( ) : WebGLProgram
CreateShader ( ShaderType type ) : WebGLShader
CreateTexture ( ) : WebGLTexture
DrawArrays ( BeginMode mode, int first, int count ) : void
DrawElements ( BeginMode mode, int size, DataType type, int offset ) : void
Enable ( EnableCap cap ) : void
EnableVertexAttribArray ( uint index ) : void
GetAttribLocation ( WebGLProgram program, string name ) : uint
GetProgramParameter ( WebGLProgram program, ProgramParameter pname ) : object
GetShaderInfoLog ( WebGLShader shader ) : string
GetShaderParameter ( WebGLShader shader, ShaderParameter pname ) : object
GetUniformLocation ( WebGLProgram program, string name ) : WebGLUniformLocation
LinkProgram ( WebGLProgram program ) : void
PixelStorei ( PixelStoreParameter pname, int param ) : void
ShaderSource ( WebGLShader shader, string source ) : void
TexImage2D ( TextureTarget target, int level, PixelFormat internalFormat, PixelFormat format, DataType type, CanvasElement image ) : void
TexImage2D ( TextureTarget target, int level, PixelFormat internalFormat, PixelFormat format, DataType type, ImageElement image ) : void
TexImage2D ( TextureTarget target, int level, PixelFormat internalFormat, PixelFormat format, DataType type, VideoElement image ) : void
TexParameteri ( TextureTarget target, TextureParameterName pname, TextureMagFilter param ) : void
TexParameteri ( TextureTarget target, TextureParameterName pname, TextureMinFilter param ) : void
TexParameteri ( TextureTarget target, TextureParameterName pname, TextureWrapMode param ) : void
TexParameteri ( TextureTarget target, TextureParameterName pname, int param ) : void
Uniform1i ( WebGLUniformLocation location, int x ) : void
UniformMatrix4fv ( WebGLUniformLocation location, bool transpose, Float32Array v ) : void
UniformMatrix4fv ( WebGLUniformLocation location, bool transpose, float v ) : void
UseProgram ( WebGLProgram program ) : void
VertexAttribPointer ( uint index, int size, DataType type, bool normalized, int stride, int offset ) : void
Viewport ( int x, int y, int width, int height ) : void

Private Methods

Method Description
WebGLRenderingContext ( ) : System

Method Details

ActiveTexture() public method

public ActiveTexture ( TextureUnit texture ) : void
texture TextureUnit
return void

AttachShader() public method

public AttachShader ( WebGLProgram program, WebGLShader shader ) : void
program WebGLProgram
shader WebGLShader
return void

BindBuffer() public method

public BindBuffer ( BufferTarget target, WebGLBuffer buffer ) : void
target BufferTarget
buffer WebGLBuffer
return void

BindTexture() public method

public BindTexture ( TextureTarget target, WebGLTexture texture ) : void
target TextureTarget
texture WebGLTexture
return void

BufferData() public method

public BufferData ( BufferTarget target, ArrayBufferView data, BufferUsage usage ) : void
target BufferTarget
data DotNetWebToolkit.Web.ArrayBufferView
usage BufferUsage
return void

Clear() public method

public Clear ( ClearBufferMask mask ) : void
mask ClearBufferMask
return void

ClearColor() public method

public ClearColor ( float red, float green, float blue, float alpha ) : void
red float
green float
blue float
alpha float
return void

CompileShader() public method

public CompileShader ( WebGLShader shader ) : void
shader WebGLShader
return void

CreateBuffer() public method

public CreateBuffer ( ) : WebGLBuffer
return WebGLBuffer

CreateProgram() public method

public CreateProgram ( ) : WebGLProgram
return WebGLProgram

CreateShader() public method

public CreateShader ( ShaderType type ) : WebGLShader
type ShaderType
return WebGLShader

CreateTexture() public method

public CreateTexture ( ) : WebGLTexture
return WebGLTexture

DrawArrays() public method

public DrawArrays ( BeginMode mode, int first, int count ) : void
mode BeginMode
first int
count int
return void

DrawElements() public method

public DrawElements ( BeginMode mode, int size, DataType type, int offset ) : void
mode BeginMode
size int
type DataType
offset int
return void

Enable() public method

public Enable ( EnableCap cap ) : void
cap EnableCap
return void

EnableVertexAttribArray() public method

public EnableVertexAttribArray ( uint index ) : void
index uint
return void

GetAttribLocation() public method

public GetAttribLocation ( WebGLProgram program, string name ) : uint
program WebGLProgram
name string
return uint

GetProgramParameter() public method

public GetProgramParameter ( WebGLProgram program, ProgramParameter pname ) : object
program WebGLProgram
pname ProgramParameter
return object

GetShaderInfoLog() public method

public GetShaderInfoLog ( WebGLShader shader ) : string
shader WebGLShader
return string

GetShaderParameter() public method

public GetShaderParameter ( WebGLShader shader, ShaderParameter pname ) : object
shader WebGLShader
pname ShaderParameter
return object

GetUniformLocation() public method

public GetUniformLocation ( WebGLProgram program, string name ) : WebGLUniformLocation
program WebGLProgram
name string
return WebGLUniformLocation

LinkProgram() public method

public LinkProgram ( WebGLProgram program ) : void
program WebGLProgram
return void

PixelStorei() public method

public PixelStorei ( PixelStoreParameter pname, int param ) : void
pname PixelStoreParameter
param int
return void

ShaderSource() public method

public ShaderSource ( WebGLShader shader, string source ) : void
shader WebGLShader
source string
return void

TexImage2D() public method

public TexImage2D ( TextureTarget target, int level, PixelFormat internalFormat, PixelFormat format, DataType type, CanvasElement image ) : void
target TextureTarget
level int
internalFormat PixelFormat
format PixelFormat
type DataType
image DotNetWebToolkit.Web.CanvasElement
return void

TexImage2D() public method

public TexImage2D ( TextureTarget target, int level, PixelFormat internalFormat, PixelFormat format, DataType type, ImageElement image ) : void
target TextureTarget
level int
internalFormat PixelFormat
format PixelFormat
type DataType
image DotNetWebToolkit.Web.ImageElement
return void

TexImage2D() public method

public TexImage2D ( TextureTarget target, int level, PixelFormat internalFormat, PixelFormat format, DataType type, VideoElement image ) : void
target TextureTarget
level int
internalFormat PixelFormat
format PixelFormat
type DataType
image DotNetWebToolkit.Web.VideoElement
return void

TexParameteri() public method

public TexParameteri ( TextureTarget target, TextureParameterName pname, TextureMagFilter param ) : void
target TextureTarget
pname TextureParameterName
param TextureMagFilter
return void

TexParameteri() public method

public TexParameteri ( TextureTarget target, TextureParameterName pname, TextureMinFilter param ) : void
target TextureTarget
pname TextureParameterName
param TextureMinFilter
return void

TexParameteri() public method

public TexParameteri ( TextureTarget target, TextureParameterName pname, TextureWrapMode param ) : void
target TextureTarget
pname TextureParameterName
param TextureWrapMode
return void

TexParameteri() public method

public TexParameteri ( TextureTarget target, TextureParameterName pname, int param ) : void
target TextureTarget
pname TextureParameterName
param int
return void

Uniform1i() public method

public Uniform1i ( WebGLUniformLocation location, int x ) : void
location WebGLUniformLocation
x int
return void

UniformMatrix4fv() public method

public UniformMatrix4fv ( WebGLUniformLocation location, bool transpose, Float32Array v ) : void
location WebGLUniformLocation
transpose bool
v DotNetWebToolkit.Web.Float32Array
return void

UniformMatrix4fv() public method

public UniformMatrix4fv ( WebGLUniformLocation location, bool transpose, float v ) : void
location WebGLUniformLocation
transpose bool
v float
return void

UseProgram() public method

public UseProgram ( WebGLProgram program ) : void
program WebGLProgram
return void

VertexAttribPointer() public method

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

Viewport() public method

public Viewport ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
return void