nw::gfx::ShaderProgram Class

Syntax

class ShaderProgram : public nw::gfx::GfxObject

Description

Executable shader program that can link combinations of multiple shader types.

Member Functions

Set/Get
ActivateDescription Activates detailed settings.
ActivateShaderProgramMode Sets the geometry shader mode.
DeactivateDescription Deactivates detailed settings.
GetActiveDescription Gets the resource.
IsParticleShader Determines whether the input is a particle shader.
Vertex attribute
GetVertexAttributeIndex Gets the index of the vertex attribute.
Shader Constants
SetProjection Sets the projection matrix.
SetViewMatrix Sets the view matrix.
SetWorldMatrix Sets the world matrix.
SetModelNormalMatrix Sets the model normal matrix.
NW_DEPRECATED_FUNCTION Sets the flag that specifies that bones should use normal matrices. Deprecated.
SetUniversal Sets the value of the universal register.
SetUserVertexUniform Sets parameters in the user vertex shader.
SetUserGeometryUniform Sets parameters for the user geometry register.
SetVertexUniformBool Sets a bool value.
SetGeometryUniformBool Sets a bool value.
SetVertexUniformInt Sets values for int types.
SetGeometryUniformInt Sets values for int types.
FlushUniform Flushes the VertexUniform and GeometryUniform states to commands.
Create/Destroy
Destroy Destroys an object.(Derived from GfxObject.)
Other
ShaderProgram Constructor.

Class Hierarchy

nw::gfx::GfxObject
  nw::gfx::ShaderProgram


CONFIDENTIAL