UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
FAQ
Программирование
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin

Unigine::Shader Class

Header: #include <UnigineShader.h>

Interface for shader manipulation. Shader is an interface for loading shaders, setting parameter values, binding graphic context.

To get loaded shader programs, use special methods for corresponding Direct3D11 shaders or use getGLProgramID() to get the OpenGL shaders.

Shader class provides a lot of methods to set parameters (or arrays of parameters) to shader programs.

Shader Class

Members


Shader ( ) #

Default shader constructor.

Shader ( const char * name ) #

Shader constructor. Loads all existing shaders with given name.

Arguments

  • const char * name - Shader name.

Shader ( const char * name, const char * defines ) #

Shader constructor. Loads all existing shaders with given name.

Arguments

  • const char * name - Shader name.
  • const char * defines - Shader defines.

Shader ( const char * vertex, const char * fragment, const char * defines ) #

Shader constructor. Loads only vertex and fragment shaders with given names.

Arguments

  • const char * vertex - Vertex shader name or source.
  • const char * fragment - Fragment shader name or source.
  • const char * defines - Shader defines.

void * getD3D11ComputeShader ( ) #

Returns Direct3D11 compute shader.

void * getD3D11ControlShader ( ) #

Returns Direct3D11 control shader.

void * getD3D11EvaluateShader ( ) #

Returns Direct3D11 evaluate shader.

void * getD3D11FragmentShader ( ) #

Returns Direct3D11 fragment shader.

void * getD3D11GeometryShader ( ) #

Returns Direct3D11 geometry shader.

void * getD3D11VertexShader ( ) #

Returns Direct3D11 vertex shader.

int getGLProgramID ( ) #

Returns OpenGL program identifier.

void bind ( ) #

Binds shader.

void clear ( ) #

Clears shader.

bool compile ( ) #

Compiles shader.

Return value

1 if the shader compiled successfully; otherwise, 0.

void destroy ( ) #

Destroys shader.

int findParameter ( int fast_id ) #

Finds shader parameter.

Arguments

  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]

Return value

Parameter identifier, if found; otherwise, -1.

int findParameter ( const char * name ) #

Finds shader parameter.

Arguments

  • const char * name - Fast identifier.

Return value

Parameter identifier, if found; otherwise, -1.

int findParameter ( const char * name, int fast_id ) #

Finds shader parameter.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]

Return value

Parameter identifier, if found; otherwise, -1.

void flushParameters ( ) #

Flushes shader parameters.

bool loadCompute ( const char * name, const char * defines ) #

Loads compute shader.

Arguments

  • const char * name - Compute shader name or source.
  • const char * defines - Shader defines.

Return value

1 if the compute shader was loaded successfully; otherwise, 0.

bool loadControl ( const char * name, const char * defines ) #

Loads control shader.

Arguments

  • const char * name - Control shader name or source.
  • const char * defines - Shader defines.

Return value

1 if the control shader was loaded successfully; otherwise, 0.

bool loadEvaluate ( const char * name, const char * defines ) #

Loads evaluate shader.

Arguments

  • const char * name - Evaluate shader name or source.
  • const char * defines - Shader defines.

Return value

1 if the evaluate shader was loaded successfully; otherwise, 0.

bool loadFragment ( const char * name, const char * defines ) #

Loads fragment shader.

Arguments

  • const char * name - Fragment shader name or source.
  • const char * defines - Shader defines.

Return value

1 if the fragment shader was loaded successfully; otherwise, 0.

bool loadGeometry ( const char * name, const char * defines ) #

Loads geometry shader.

Arguments

  • const char * name - Geometry shader name or source.
  • const char * defines - Shader defines.

Return value

1 if the geometry shader was loaded successfully; otherwise, 0.

bool loadVertex ( const char * name, const char * defines ) #

Loads vertex shader.

Arguments

  • const char * name - Vertex shader name or source.
  • const char * defines - Shader defines.

Return value

1 if the vertex shader was loaded successfully; otherwise, 0.

void unbind ( ) #

Unbinds shader.

void setParameterFloat ( int id, float value ) #

Sets shader float parameter value by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • float value - Parameter value to be set.

void setParameterFloat ( const char * name, float value ) #

Sets shader float parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • float value - Parameter value to be set.

void setParameterFloat ( const char * name, int fast_id, float value ) #

Sets a shader parameter value for the float variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • float value - Parameter value to be set.

void setParameterFloat2 ( int id, const Math::vec2 & value ) #

Sets a shader parameter value for the float2 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::vec2 & value - Parameter value to be set.

void setParameterFloat2 ( const char * name, const Math::vec2 & value ) #

Sets a shader parameter value for the float2 variable.

Arguments

  • const char * name - Parameter name.
  • const Math::vec2 & value - Parameter value to be set.

void setParameterFloat2 ( const char * name, int fast_id, const Math::vec2 & value ) #

Sets a shader parameter value for the float2 variable.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::vec2 & value - Parameter value to be set.

void setParameterFloat3 ( int id, const Math::vec3 & value ) #

Sets a shader parameter value for the float3 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::vec3 & value - Parameter value to be set.

void setParameterFloat3 ( const char * name, const Math::vec3 & value ) #

Sets a shader parameter value for the float3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::vec3 & value - Parameter value to be set.

void setParameterFloat3 ( const char * name, int fast_id, const Math::vec3 & value ) #

Sets a shader parameter value for the float3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::vec3 & value - Parameter value to be set.

void setParameterFloat4 ( int id, const Math::vec4 & value ) #

Sets a shader parameter value for the float4 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::vec4 & value - Parameter value to be set.

void setParameterFloat4 ( const char * name, const Math::vec4 & value ) #

Sets a shader parameter value for the float4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::vec4 & value - Parameter value to be set.

void setParameterFloat4 ( const char * name, int fast_id, const Math::vec4 & value ) #

Sets a shader parameter value for the float4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::vec4 & value - Parameter value to be set.

void setParameterFloat3x3 ( int id, const Math::mat3 & value ) #

Sets a shader parameter value for the float3x3 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::mat3 & value - Parameter value to be set.

void setParameterFloat3x3 ( const char * name, const Math::mat3 & value ) #

Sets a shader parameter value for the float3x3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::mat3 & value - Parameter value to be set.

void setParameterFloat3x3 ( const char * name, int fast_id, const Math::mat3 & value ) #

Sets a shader parameter value for the float3x3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::mat3 & value - Parameter value to be set.

void setParameterFloat4x4 ( int id, const Math::mat4 & value ) #

Sets a shader parameter value for the float4x4 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::mat4 & value - Parameter value to be set.

void setParameterFloat4x4 ( const char * name, const Math::mat4 & value ) #

Sets a shader parameter value for the float4x4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::mat4 & value - Parameter value to be set.

void setParameterFloat4x4 ( const char * name, int fast_id, const Math::mat4 & value ) #

Sets a shader parameter value for the float4x4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::mat4 & value - Parameter value to be set.

void setParameterInt ( int id, int value ) #

Sets a shader parameter value for the int variable.

Arguments

  • int id - Parameter identifier.
  • int value - Parameter value to be set.

void setParameterInt ( const char * name, int value ) #

Sets a shader parameter value for the int variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int value - Parameter value to be set.

void setParameterInt ( const char * name, int fast_id, int value ) #

Sets a shader parameter value for the int variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • int value - Parameter value to be set.

void setParameterInt2 ( int id, const Math::ivec2 & value ) #

Sets a shader parameter value for the int2 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::ivec2 & value - Parameter value to be set.

void setParameterInt2 ( const char * name, const Math::ivec2 & value ) #

Sets a shader parameter value for the int2 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::ivec2 & value - Parameter value to be set.

void setParameterInt2 ( const char * name, int fast_id, const Math::ivec2 & value ) #

Sets a shader parameter value for the int2 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::ivec2 & value - Parameter value to be set.

void setParameterInt3 ( int id, const Math::ivec3 & value ) #

Sets a shader parameter value for the int3 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::ivec3 & value - Parameter value to be set.

void setParameterInt3 ( const char * name, const Math::ivec3 & value ) #

Sets a shader parameter value for the int3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::ivec3 & value - Parameter value to be set.

void setParameterInt3 ( const char * name, int fast_id, const Math::ivec3 & value ) #

Sets a shader parameter value for the int3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::ivec3 & value - Parameter value to be set.

void setParameterInt4 ( int id, const Math::ivec4 & value ) #

Sets a shader parameter value for the int4 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::ivec4 & value - Parameter value to be set.

void setParameterInt4 ( const char * name, const Math::ivec4 & value ) #

Sets a shader parameter value for the int4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::ivec4 & value - Parameter value to be set.

void setParameterInt4 ( const char * name, int fast_id, const Math::ivec4 & value ) #

Sets a shader parameter value for the int4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::ivec4 & value - Parameter value to be set.

void setParameterDouble ( int id, double value ) #

Sets a shader parameter value for the double variable.

Arguments

  • int id - Parameter identifier.
  • double value - Parameter value to be set.

void setParameterDouble ( const char * name, double value ) #

Sets a shader parameter value for the double variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • double value - Parameter value to be set.

void setParameterDouble ( const char * name, int fast_id, double value ) #

Sets a shader parameter value for the double1 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • double value - Parameter value to be set.

void setParameterDouble2 ( int id, const Math::dvec2 & value ) #

Sets a shader parameter value for the double2 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::dvec2 & value - Parameter value to be set.

void setParameterDouble2 ( const char * name, const Math::dvec2 & value ) #

Sets a shader parameter value for the double2 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::dvec2 & value - Parameter value to be set.

void setParameterDouble2 ( const char * name, int fast_id, const Math::dvec2 & value ) #

Sets a shader parameter value for the double2 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::dvec2 & value - Parameter value to be set.

void setParameterDouble3 ( int id, const Math::dvec3 & value ) #

Sets a shader parameter value for the double3 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::dvec3 & value - Parameter value to be set.

void setParameterDouble3 ( const char * name, const Math::dvec3 & value ) #

Sets a shader parameter value for the double3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::dvec3 & value - Parameter value to be set.

void setParameterDouble3 ( const char * name, int fast_id, const Math::dvec3 & value ) #

Sets a shader parameter value for the double3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::dvec3 & value - Parameter value to be set.

void setParameterDouble4 ( int id, const Math::dvec4 & value ) #

Sets a shader parameter value for the double4 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::dvec4 & value - Parameter value to be set.

void setParameterDouble4 ( const char * name, const Math::dvec4 & value ) #

Sets a shader parameter value for the double4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::dvec4 & value - Parameter value to be set.

void setParameterDouble4 ( const char * name, int fast_id, const Math::dvec4 & value ) #

Sets a shader parameter value for the double4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::dvec4 & value - Parameter value to be set.

void setParameterDouble4x4 ( int id, const Math::dmat4 & value ) #

Sets a shader parameter value for the double4x4 variable.

Arguments

  • int id - Parameter identifier.
  • const Math::dmat4 & value - Parameter value to be set.

void setParameterDouble4x4 ( const char * name, const Math::dmat4 & value ) #

Sets a shader parameter value for the double4x4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::dmat4 & value - Parameter value to be set.

void setParameterDouble4x4 ( const char * name, int fast_id, const Math::dmat4 & value ) #

Sets a shader parameter value for the double4x4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::dmat4 & value - Parameter value to be set.

void setParameterScalar ( int id, Math::Scalar value ) #

Sets a shader parameter value for the scalar variable using the parameter id.

Arguments

  • int id - Parameter identifier.
  • Math::Scalar value - Parameter value to be set.

void setParameterScalar ( const char * name, Math::Scalar value ) #

Sets a shader parameter value for the scalar variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • Math::Scalar value - Parameter value to be set.

void setParameterScalar ( const char * name, int fast_id, Math::Scalar value ) #

Sets a shader parameter value for the scalar variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • Math::Scalar value - Parameter value to be set.

void setParameterScalar2 ( int id, const Math::Vec2 & value ) #

Sets a shader parameter value for the scalar2 variable using the parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::Vec2 & value - Parameter value to be set.

void setParameterScalar2 ( const char * name, const Math::Vec2 & value ) #

Sets a shader parameter value for the scalar2 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::Vec2 & value - Parameter value to be set.

void setParameterScalar2 ( const char * name, int fast_id, const Math::Vec2 & value ) #

Sets a shader parameter value for the scalar2 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::Vec2 & value - Parameter value to be set.

void setParameterScalar3 ( int id, const Math::Vec3 & value ) #

Sets a shader parameter value for the scalar3 variable using the parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::Vec3 & value - Parameter value to be set.

void setParameterScalar3 ( const char * name, const Math::Vec3 & value ) #

Sets a shader parameter value for the scalar3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::Vec3 & value - Parameter value to be set.

void setParameterScalar3 ( const char * name, int fast_id, const Math::Vec3 & value ) #

Sets a shader parameter value for the scalar3 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::Vec3 & value - Parameter value to be set.

void setParameterScalar4 ( int id, const Math::Vec4 & value ) #

Sets a shader parameter value for the scalar4 variable using the parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::Vec4 & value - Parameter value to be set.

void setParameterScalar4 ( const char * name, const Math::Vec4 & value ) #

Sets a shader parameter value for the scalar4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::Vec4 & value - Parameter value to be set.

void setParameterScalar4 ( const char * name, int fast_id, const Math::Vec4 & value ) #

Sets a shader parameter value for the scalar4 variable using the parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::Vec4 & value - Parameter value to be set.

void setParameterArrayFloat ( int id, const float * value, int num_elements ) #

Sets shader float array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const float * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat ( const char * name, const float * value, int num_elements ) #

Sets shader float array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const float * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat ( const char * name, int fast_id, const float * value, int num_elements ) #

Sets shader float array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const float * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat ( int id, const Vector< float > & value ) #

Sets shader float array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< float > & value - Parameter value to be set.

void setParameterArrayFloat ( const char * name, const Vector< float > & value ) #

Sets shader float array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< float > & value - Parameter value to be set.

void setParameterArrayFloat ( const char * name, int fast_id, const Vector< float > & value ) #

Sets shader float array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< float > & value - Parameter value to be set.

void setParameterArrayFloat2 ( int id, const Math::vec2 * value, int num_elements ) #

Sets shader float2 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::vec2 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat2 ( const char * name, const Math::vec2 * value, int num_elements ) #

Sets shader float2 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::vec2 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat2 ( const char * name, int fast_id, const Math::vec2 * value, int num_elements ) #

Sets shader float2 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::vec2 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat2 ( int id, const Vector< Math::vec2 > & value ) #

Sets shader float2 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< Math::vec2 > & value - Parameter value to be set.

void setParameterArrayFloat2 ( const char * name, const Vector< Math::vec2 > & value ) #

Sets shader float2 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< Math::vec2 > & value - Parameter value to be set.

void setParameterArrayFloat2 ( const char * name, int fast_id, const Vector< Math::vec2 > & value ) #

Sets shader float2 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< Math::vec2 > & value - Parameter value to be set.

void setParameterArrayFloat4 ( int id, const Math::vec4 * value, int num_elements ) #

Sets shader float4 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::vec4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat4 ( const char * name, const Math::vec4 * value, int num_elements ) #

Sets shader float4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::vec4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat4 ( const char * name, int fast_id, const Math::vec4 * value, int num_elements ) #

Sets shader float4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::vec4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat4 ( int id, const Vector< Math::vec4 > & value ) #

Sets shader float4 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< Math::vec4 > & value - Parameter value to be set.

void setParameterArrayFloat4 ( const char * name, const Vector< Math::vec4 > & value ) #

Sets shader float4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< Math::vec4 > & value - Parameter value to be set.

void setParameterArrayFloat4 ( const char * name, int fast_id, const Vector< Math::vec4 > & value ) #

Sets shader float4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< Math::vec4 > & value - Parameter value to be set.

void setParameterArrayFloat4x4 ( int id, const Math::mat4 * value, int num_elements ) #

Sets shader float4x4 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::mat4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat4x4 ( const char * name, const Math::mat4 * value, int num_elements ) #

Sets shader float4x4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::mat4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat4x4 ( const char * name, int fast_id, const Math::mat4 * value, int num_elements ) #

Sets shader float4x4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::mat4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayFloat4x4 ( int id, const Vector< Math::mat4 > & value ) #

Sets shader float4x4 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< Math::mat4 > & value - Parameter value to be set.

void setParameterArrayFloat4x4 ( const char * name, const Vector< Math::mat4 > & value ) #

Sets shader float4x4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< Math::mat4 > & value - Parameter value to be set.

void setParameterArrayFloat4x4 ( const char * name, int fast_id, const Vector< Math::mat4 > & value ) #

Sets shader float4x4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< Math::mat4 > & value - Parameter value to be set.

void setParameterArrayInt ( int id, const int * value, int num_elements ) #

Sets shader integer array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const int * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayInt ( const char * name, const int * value, int num_elements ) #

Sets shader integer array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const int * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayInt ( const char * name, int fast_id, const int * value, int num_elements ) #

Sets shader integer array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const int * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayInt ( int id, const Vector< int > & value ) #

Sets shader integer array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< int > & value - Parameter value to be set.

void setParameterArrayInt ( const char * name, const Vector< int > & value ) #

Sets shader integer array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< int > & value - Parameter value to be set.

void setParameterArrayInt ( const char * name, int fast_id, const Vector< int > & value ) #

Sets shader integer array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< int > & value - Parameter value to be set.

void setParameterArrayInt2 ( int id, const Math::ivec2 * value, int num_elements ) #

Sets shader int2 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::ivec2 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayInt2 ( const char * name, const Math::ivec2 * value, int num_elements ) #

Sets shader int2 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::ivec2 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayInt2 ( const char * name, int fast_id, const Math::ivec2 * value, int num_elements ) #

Sets shader int2 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::ivec2 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayInt2 ( int id, const Vector< Math::ivec2 > & value ) #

Sets shader int2 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< Math::ivec2 > & value - Parameter value to be set.

void setParameterArrayInt2 ( const char * name, const Vector< Math::ivec2 > & value ) #

Sets shader int2 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< Math::ivec2 > & value - Parameter value to be set.

void setParameterArrayInt2 ( const char * name, int fast_id, const Vector< Math::ivec2 > & value ) #

Sets shader int2 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< Math::ivec2 > & value - Parameter value to be set.

void setParameterArrayInt4 ( int id, const Math::ivec4 * value, int num_elements ) #

Sets shader int4 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::ivec4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayInt4 ( const char * name, const Math::ivec4 * value, int num_elements ) #

Sets shader int4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::ivec4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayInt4 ( const char * name, int fast_id, const Math::ivec4 * value, int num_elements ) #

Sets shader int4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::ivec4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayInt4 ( int id, const Vector< Math::ivec4 > & value ) #

Sets shader int4 array parameter values by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< Math::ivec4 > & value - Parameter value to be set.

void setParameterArrayInt4 ( const char * name, const Vector< Math::ivec4 > & value ) #

Sets shader int4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< Math::ivec4 > & value - Parameter value to be set.

void setParameterArrayInt4 ( const char * name, int fast_id, const Vector< Math::ivec4 > & value ) #

Sets shader int4 array parameter values by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< Math::ivec4 > & value - Parameter value to be set.

void setParameterArrayDouble ( int id, const double * value, int num_elements ) #

Sets shader double parameter value by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const double * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayDouble ( const char * name, const double * value, int num_elements ) #

Sets shader double parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const double * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayDouble ( const char * name, int fast_id, const double * value, int num_elements ) #

Sets shader double parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const double * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayDouble ( int id, const Vector< double > & value ) #

Sets shader double parameter value by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< double > & value - Parameter value to be set.

void setParameterArrayDouble ( const char * name, const Vector< double > & value ) #

Sets shader double parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< double > & value - Parameter value to be set.

void setParameterArrayDouble ( const char * name, int fast_id, const Vector< double > & value ) #

Sets shader double parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< double > & value - Parameter value to be set.

void setParameterArrayDouble2 ( int id, const Math::dvec2 * value, int num_elements ) #

Sets shader double2 parameter value by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::dvec2 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayDouble2 ( const char * name, const Math::dvec2 * value, int num_elements ) #

Sets shader double2 parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::dvec2 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayDouble2 ( const char * name, int fast_id, const Math::dvec2 * value, int num_elements ) #

Sets shader double2 parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::dvec2 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayDouble2 ( int id, const Vector< Math::dvec2 > & value ) #

Sets shader double2 parameter value by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< Math::dvec2 > & value - Parameter value to be set.

void setParameterArrayDouble2 ( const char * name, const Vector< Math::dvec2 > & value ) #

Sets shader double2 parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< Math::dvec2 > & value - Parameter value to be set.

void setParameterArrayDouble2 ( const char * name, int fast_id, const Vector< Math::dvec2 > & value ) #

Sets shader double2 parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< Math::dvec2 > & value - Parameter value to be set.

void setParameterArrayDouble4 ( int id, const Math::dvec4 * value, int num_elements ) #

Sets shader double4 parameter value by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Math::dvec4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayDouble4 ( const char * name, const Math::dvec4 * value, int num_elements ) #

Sets shader double4 parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Math::dvec4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayDouble4 ( const char * name, int fast_id, const Math::dvec4 * value, int num_elements ) #

Sets shader double4 parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Math::dvec4 * value - Parameter value to be set.
  • int num_elements - The number of array elements.

void setParameterArrayDouble4 ( int id, const Vector< Math::dvec4 > & value ) #

Sets shader double4 parameter value by using given parameter id.

Arguments

  • int id - Parameter identifier.
  • const Vector< Math::dvec4 > & value - Parameter value to be set.

void setParameterArrayDouble4 ( const char * name, const Vector< Math::dvec4 > & value ) #

Sets shader double4 parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • const Vector< Math::dvec4 > & value - Parameter value to be set.

void setParameterArrayDouble4 ( const char * name, int fast_id, const Vector< Math::dvec4 > & value ) #

Sets shader double4 parameter value by using given parameter name.

Arguments

  • const char * name - Parameter name.
  • int fast_id - Parameter number in the user's auxiliary parameters cache. The value must be in the range [0; 512]
  • const Vector< Math::dvec4 > & value - Parameter value to be set.
Last update: 25.12.2019