Click or drag to resize
ShaderProgram Class
Encapsulates an OpenGL shader program including, for example, both vertex and fragment shaders
Inheritance Hierarchy
SystemObject
  (Default Namespace)ShaderProgram

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

The ShaderProgram type exposes the following members.

Constructors
  NameDescription
Public methodShaderProgram
Create a shader program that includes all the shaders (vertex and fragment shaders) necessary when rendering.
Top
Methods
  NameDescription
Public methodDispose
Releases resources associated with this ShaderProgram, including the internally referenced OpenGL program.
Public methodStatic memberDisposeShaderPrograms
Clean up all the pre-implemented shaders from memory.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetAttributeLocation
Uses the OpenGL glGetAttributeLocation function to determine how a particular attribute of a vertex can be located.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUniformLocation
Uses the OpenGL glGetUniformLocation function to determine how a uniform object declared in the code can be located.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUse
Make this shader program the currently active shader program, and apply the specified projection matrix.
Top
Properties
  NameDescription
Public propertyStatic memberFlatShader
This shader is used for drawing textured graphics that have no normal map associated.
Public propertyStatic memberNoLightShader
This shader is used for drawing textured graphics when lighting is disabled.
Public propertyStatic memberNormalMappedShader
This shader is used for drawing textured graphics that have a normal map associated.
Public propertyStatic memberSolidShader
This shader is used for drawing solid non-textured graphics such as lines and solid rectangles.
Top
See Also