Click or drag to resize
Shader Class
Encapsulates a single OpenGL shader, for example, a fragment shader or vertex shader.
Inheritance Hierarchy
SystemObject
  (Default Namespace)Shader

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public sealed class Shader : IDisposable

The Shader type exposes the following members.

Constructors
  NameDescription
Public methodShader
Compile and return a shader object of the specified type using the specified shader code.
Top
Methods
  NameDescription
Public methodStatic memberCreateShader
Compile and return a shader object using the provided ShaderShaderCode object.
Public methodDispose
Release the resources associated with this shader, including the OpenGL shader identified by Handle.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyHandle
Return the internal handle that uniquely identifies this shader to OpenGL.
Top
See Also