The ShaderProgram type exposes the following members.

Constructors

  NameDescription
Public methodShaderProgram
Ctor.

Methods

  NameDescription
Public methodDispose
disposes the program and all associated shaders.
(Overrides GLObject..::..Dispose()()()().)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetUniform(String, Matrix4%)
Sets the value of a shader variable. Enables this program as a side effect.
Public methodSetUniform(String, Vector2%)
Sets the value of a shader variable. Enables this program as a side effect.
Public methodSetUniform(String, Vector3%)
Sets the value of a shader variable. Enables this program as a side effect.
Public methodSetUniform(String, Vector4%)
Sets the value of a shader variable. Enables this program as a side effect.
Public methodSetUniform(String, Boolean)
Sets the value of a shader variable. Enables this program as a side effect.
Public methodSetUniform(String, Int32)
Sets the value of a shader variable. Enables this program as a side effect.
Public methodSetUniform(String, Single)
Sets the value of a shader variable. Enables this program as a side effect.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUse
Enables the program.

Properties

  NameDescription
Public propertyDisposed
Gets whether this object was disposed.
(Inherited from GLObject.)
Public propertyError
Gets or sets (protected) the last GL error that occured (or NoError) while working with this object.
(Inherited from GLObject.)
Public propertyHandle
Gets or sets (protected) the bandle to the (primary) GL resource encapsulated by this object.
(Inherited from GLObject.)
Public propertyShaders
Gets all shaders that are part of this program. The client must not change the data.

See Also