The ShaderProgram type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ShaderProgram |
Ctor.
|
Methods
| Name | Description | |
|---|---|---|
| Dispose |
disposes the program and all associated shaders.
(Overrides GLObject..::..Dispose()()()().) | |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetUniform(String, Matrix4%) |
Sets the value of a shader variable. Enables this program as a side effect.
| |
| SetUniform(String, Vector2%) |
Sets the value of a shader variable. Enables this program as a side effect.
| |
| SetUniform(String, Vector3%) |
Sets the value of a shader variable. Enables this program as a side effect.
| |
| SetUniform(String, Vector4%) |
Sets the value of a shader variable. Enables this program as a side effect.
| |
| SetUniform(String, Boolean) |
Sets the value of a shader variable. Enables this program as a side effect.
| |
| SetUniform(String, Int32) |
Sets the value of a shader variable. Enables this program as a side effect.
| |
| SetUniform(String, Single) |
Sets the value of a shader variable. Enables this program as a side effect.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Use |
Enables the program.
|
Properties
| Name | Description | |
|---|---|---|
| Disposed |
Gets whether this object was disposed.
(Inherited from GLObject.) | |
| Error |
Gets or sets (protected) the last GL error that occured (or NoError) while working with this object.
(Inherited from GLObject.) | |
| Handle |
Gets or sets (protected) the bandle to the (primary) GL resource encapsulated by this object.
(Inherited from GLObject.) | |
| Shaders |
Gets all shaders that are part of this program. The client must not change the data.
|