Class WebGLProgram
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).
[Value("WebGLProgram")]
public class WebGLProgram : WebGLObject
- Inheritance
-
WebGLProgram
- Inherited Members
Remarks
To create a WebGLProgram, call the GL context's WebGLRenderingContext.CreateProgram function. After attaching the shader programs using WebGLRenderingContext.AttachShader, you link them into a usable program. This is shown in the code below.
See WebGLShader for information on creating the vertexShader and fragmentShader in the above example.
-WebGLShader
-WebGLRenderingContext.AttachShader
-WebGLRenderingContext.CompileShader
-WebGLRenderingContext.CreateProgram
-WebGLRenderingContext.CreateShader
-WebGLRenderingContext.DeleteProgram
-WebGLRenderingContext.DeleteShader
-WebGLRenderingContext.DetachShader
-WebGLRenderingContext.GetAttachedShaders
-WebGLRenderingContext.GetProgramParameter
-WebGLRenderingContext.GetProgramInfoLog
-WebGLRenderingContext.GetShaderParameter
-WebGLRenderingContext.GetShaderPrecisionFormat
-WebGLRenderingContext.GetShaderInfoLog
-WebGLRenderingContext.GetShaderSource
-WebGLRenderingContext.IsProgram
-WebGLRenderingContext.IsShader
-WebGLRenderingContext.LinkProgram
-WebGLRenderingContext.ShaderSource
-WebGLRenderingContext.UseProgram
-WebGLRenderingContext.ValidateProgram
Constructors
WebGLProgram()
public WebGLProgram()