C# Class DotNetWebToolkit.WebGL.WebGLRenderingContext

Inheritance: CanvasRenderingContext
Afficher le fichier Open project: chrisdunelm/DotNetWebToolkit Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
WebGLRenderingContext ( ) : System

Method Details

ActiveTexture() public méthode

public ActiveTexture ( TextureUnit texture ) : void
texture TextureUnit
Résultat void

AttachShader() public méthode

public AttachShader ( WebGLProgram program, WebGLShader shader ) : void
program WebGLProgram
shader WebGLShader
Résultat void

BindBuffer() public méthode

public BindBuffer ( BufferTarget target, WebGLBuffer buffer ) : void
target BufferTarget
buffer WebGLBuffer
Résultat void

BindTexture() public méthode

public BindTexture ( TextureTarget target, WebGLTexture texture ) : void
target TextureTarget
texture WebGLTexture
Résultat void

BufferData() public méthode

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

Clear() public méthode

public Clear ( ClearBufferMask mask ) : void
mask ClearBufferMask
Résultat void

ClearColor() public méthode

public ClearColor ( float red, float green, float blue, float alpha ) : void
red float
green float
blue float
alpha float
Résultat void

CompileShader() public méthode

public CompileShader ( WebGLShader shader ) : void
shader WebGLShader
Résultat void

CreateBuffer() public méthode

public CreateBuffer ( ) : WebGLBuffer
Résultat WebGLBuffer

CreateProgram() public méthode

public CreateProgram ( ) : WebGLProgram
Résultat WebGLProgram

CreateShader() public méthode

public CreateShader ( ShaderType type ) : WebGLShader
type ShaderType
Résultat WebGLShader

CreateTexture() public méthode

public CreateTexture ( ) : WebGLTexture
Résultat WebGLTexture

DrawArrays() public méthode

public DrawArrays ( BeginMode mode, int first, int count ) : void
mode BeginMode
first int
count int
Résultat void

DrawElements() public méthode

public DrawElements ( BeginMode mode, int size, DataType type, int offset ) : void
mode BeginMode
size int
type DataType
offset int
Résultat void

Enable() public méthode

public Enable ( EnableCap cap ) : void
cap EnableCap
Résultat void

EnableVertexAttribArray() public méthode

public EnableVertexAttribArray ( uint index ) : void
index uint
Résultat void

GetAttribLocation() public méthode

public GetAttribLocation ( WebGLProgram program, string name ) : uint
program WebGLProgram
name string
Résultat uint

GetProgramParameter() public méthode

public GetProgramParameter ( WebGLProgram program, ProgramParameter pname ) : object
program WebGLProgram
pname ProgramParameter
Résultat object

GetShaderInfoLog() public méthode

public GetShaderInfoLog ( WebGLShader shader ) : string
shader WebGLShader
Résultat string

GetShaderParameter() public méthode

public GetShaderParameter ( WebGLShader shader, ShaderParameter pname ) : object
shader WebGLShader
pname ShaderParameter
Résultat object

GetUniformLocation() public méthode

public GetUniformLocation ( WebGLProgram program, string name ) : WebGLUniformLocation
program WebGLProgram
name string
Résultat WebGLUniformLocation

LinkProgram() public méthode

public LinkProgram ( WebGLProgram program ) : void
program WebGLProgram
Résultat void

PixelStorei() public méthode

public PixelStorei ( PixelStoreParameter pname, int param ) : void
pname PixelStoreParameter
param int
Résultat void

ShaderSource() public méthode

public ShaderSource ( WebGLShader shader, string source ) : void
shader WebGLShader
source string
Résultat void

TexImage2D() public méthode

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
Résultat void

TexImage2D() public méthode

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
Résultat void

TexImage2D() public méthode

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
Résultat void

TexParameteri() public méthode

public TexParameteri ( TextureTarget target, TextureParameterName pname, TextureMagFilter param ) : void
target TextureTarget
pname TextureParameterName
param TextureMagFilter
Résultat void

TexParameteri() public méthode

public TexParameteri ( TextureTarget target, TextureParameterName pname, TextureMinFilter param ) : void
target TextureTarget
pname TextureParameterName
param TextureMinFilter
Résultat void

TexParameteri() public méthode

public TexParameteri ( TextureTarget target, TextureParameterName pname, TextureWrapMode param ) : void
target TextureTarget
pname TextureParameterName
param TextureWrapMode
Résultat void

TexParameteri() public méthode

public TexParameteri ( TextureTarget target, TextureParameterName pname, int param ) : void
target TextureTarget
pname TextureParameterName
param int
Résultat void

Uniform1i() public méthode

public Uniform1i ( WebGLUniformLocation location, int x ) : void
location WebGLUniformLocation
x int
Résultat void

UniformMatrix4fv() public méthode

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

UniformMatrix4fv() public méthode

public UniformMatrix4fv ( WebGLUniformLocation location, bool transpose, float v ) : void
location WebGLUniformLocation
transpose bool
v float
Résultat void

UseProgram() public méthode

public UseProgram ( WebGLProgram program ) : void
program WebGLProgram
Résultat void

VertexAttribPointer() public méthode

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
Résultat void

Viewport() public méthode

public Viewport ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
Résultat void