ActiViz .NET
5.8.0
|
vtkGLSLShader - GLSL Shader More...
Public Member Functions | |
vtkGLSLShader (IntPtr rawCppThis, bool callDisposalMethod, bool strong) | |
Automatically generated constructor - called from generated code. DO NOT call directly. | |
vtkGLSLShader () | |
Undocumented Block. | |
override int | Compile () |
Called to compile the shader code. The subclasses must only compile the code in this method. Returns if the compile was successful. Subclasses should compile the code only if it was not already compiled. | |
uint | GetHandle () |
The vtkGLSLShaderProgram needs the shader handle for attaching. | |
virtual uint | GetProgram () |
The Shader needs the id of the ShaderProgram to obtain uniform variable locations. This is set by vtkGLSLShaderProgram. | |
override int | IsA (string type) |
Undocumented Block. | |
new vtkGLSLShader | NewInstance () |
Undocumented Block. | |
override void | ReleaseGraphicsResources (vtkWindow arg0) |
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release. | |
virtual void | SetProgram (uint _arg) |
The Shader needs the id of the ShaderProgram to obtain uniform variable locations. This is set by vtkGLSLShaderProgram. | |
Static Public Member Functions | |
static new vtkGLSLShader | New () |
Undocumented Block. | |
static new int | IsTypeOf (string type) |
Undocumented Block. | |
static new vtkGLSLShader | SafeDownCast (vtkObjectBase o) |
Undocumented Block. | |
Public Attributes | |
new const string | MRFullTypeName = "Kitware.VTK.vtkGLSLShader" |
Automatically generated type registration mechanics. | |
Static Public Attributes | |
static new readonly string | MRClassNameKey = "13vtkGLSLShader" |
Automatically generated type registration mechanics. | |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly. | |
Private Member Functions | |
static internal IntPtr | vtkGLSLShader_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount) |
static internal int | vtkGLSLShader_Compile_01 (HandleRef pThis) |
static internal uint | vtkGLSLShader_GetHandle_02 (HandleRef pThis) |
static internal uint | vtkGLSLShader_GetProgram_03 (HandleRef pThis) |
static internal int | vtkGLSLShader_IsA_04 (HandleRef pThis, string type) |
static internal int | vtkGLSLShader_IsTypeOf_05 (string type) |
static internal IntPtr | vtkGLSLShader_NewInstance_07 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount) |
static internal void | vtkGLSLShader_ReleaseGraphicsResources_08 (HandleRef pThis, HandleRef arg0) |
static internal IntPtr | vtkGLSLShader_SafeDownCast_09 (HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount) |
static internal void | vtkGLSLShader_SetProgram_10 (HandleRef pThis, uint _arg) |
Static Private Member Functions | |
static | vtkGLSLShader () |
Automatically generated type registration mechanics. |
vtkGLSLShader - GLSL Shader
Description vtkGLSLShader is a concrete class that creates and compiles hardware shaders written in the OpenGL Shadering Language (GLSL, OpenGL2.0). While step linking a vertex and a fragment shader is performed by vtkGLSLShaderProgram, all shader parameters are initialized in this class.
.Section vtkOpenGLExtensionManager All OpenGL calls are made through vtkOpenGLExtensionManager.
.Section Supported Basic Shader Types:
Scalar Types uniform float uniform int uniform int -- boolean scalar not yet tested
Vector Types: uniform vec{2|3|4} uniform ivec{2|3|4} uniform bvec{2|3|4} -- boolean vector not yet tested
Matrix Types: uniform mat{2|3|4}
Texture Samplers: sample1D -- Not yet implemented in this cless. sample2D -- Not yet implemented in this class. sample3D -- Not yet implemented in this class. sampler1DShadow -- Not yet implemented in this class. sampler1DShadow -- Not yet implemented in this class.
User-Defined structures: uniform struct NOTE: these must be defined and declared outside of the 'main' shader function.
Thanks Shader support in VTK includes key contributions by Gary Templet at Sandia National Labs.
static Kitware.VTK.vtkGLSLShader.vtkGLSLShader | ( | ) | [static, private] |
Automatically generated type registration mechanics.
Kitware.VTK.vtkGLSLShader.vtkGLSLShader | ( | IntPtr | rawCppThis, |
bool | callDisposalMethod, | ||
bool | strong | ||
) |
Automatically generated constructor - called from generated code. DO NOT call directly.
Undocumented Block.
override int Kitware.VTK.vtkGLSLShader.Compile | ( | ) | [virtual] |
Called to compile the shader code. The subclasses must only compile the code in this method. Returns if the compile was successful. Subclasses should compile the code only if it was not already compiled.
Reimplemented from Kitware.VTK.vtkShader.
override void Kitware.VTK.vtkGLSLShader.Dispose | ( | bool | disposing | ) | [protected] |
Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.
Reimplemented from Kitware.VTK.vtkShader.
uint Kitware.VTK.vtkGLSLShader.GetHandle | ( | ) |
The vtkGLSLShaderProgram needs the shader handle for attaching.
virtual uint Kitware.VTK.vtkGLSLShader.GetProgram | ( | ) | [virtual] |
The Shader needs the id of the ShaderProgram to obtain uniform variable locations. This is set by vtkGLSLShaderProgram.
override int Kitware.VTK.vtkGLSLShader.IsA | ( | string | type | ) | [virtual] |
Undocumented Block.
Reimplemented from Kitware.VTK.vtkShader.
static new int Kitware.VTK.vtkGLSLShader.IsTypeOf | ( | string | type | ) | [static] |
Undocumented Block.
Reimplemented from Kitware.VTK.vtkShader.
static new vtkGLSLShader Kitware.VTK.vtkGLSLShader.New | ( | ) | [static] |
Undocumented Block.
Reimplemented from Kitware.VTK.vtkObject.
Undocumented Block.
Reimplemented from Kitware.VTK.vtkShader.
override void Kitware.VTK.vtkGLSLShader.ReleaseGraphicsResources | ( | vtkWindow | arg0 | ) | [virtual] |
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.
Reimplemented from Kitware.VTK.vtkShader.
static new vtkGLSLShader Kitware.VTK.vtkGLSLShader.SafeDownCast | ( | vtkObjectBase | o | ) | [static] |
Undocumented Block.
Reimplemented from Kitware.VTK.vtkShader.
virtual void Kitware.VTK.vtkGLSLShader.SetProgram | ( | uint | _arg | ) | [virtual] |
The Shader needs the id of the ShaderProgram to obtain uniform variable locations. This is set by vtkGLSLShaderProgram.
static internal int Kitware.VTK.vtkGLSLShader.vtkGLSLShader_Compile_01 | ( | HandleRef | pThis | ) | [private] |
static internal uint Kitware.VTK.vtkGLSLShader.vtkGLSLShader_GetHandle_02 | ( | HandleRef | pThis | ) | [private] |
static internal uint Kitware.VTK.vtkGLSLShader.vtkGLSLShader_GetProgram_03 | ( | HandleRef | pThis | ) | [private] |
static internal int Kitware.VTK.vtkGLSLShader.vtkGLSLShader_IsA_04 | ( | HandleRef | pThis, |
string | type | ||
) | [private] |
static internal int Kitware.VTK.vtkGLSLShader.vtkGLSLShader_IsTypeOf_05 | ( | string | type | ) | [private] |
static internal IntPtr Kitware.VTK.vtkGLSLShader.vtkGLSLShader_New | ( | ref uint | mteStatus, |
ref uint | mteIndex, | ||
ref uint | rawRefCount | ||
) | [private] |
static internal IntPtr Kitware.VTK.vtkGLSLShader.vtkGLSLShader_NewInstance_07 | ( | HandleRef | pThis, |
ref uint | mteStatus, | ||
ref uint | mteIndex, | ||
ref uint | rawRefCount | ||
) | [private] |
static internal void Kitware.VTK.vtkGLSLShader.vtkGLSLShader_ReleaseGraphicsResources_08 | ( | HandleRef | pThis, |
HandleRef | arg0 | ||
) | [private] |
static internal IntPtr Kitware.VTK.vtkGLSLShader.vtkGLSLShader_SafeDownCast_09 | ( | HandleRef | o, |
ref uint | mteStatus, | ||
ref uint | mteIndex, | ||
ref uint | rawRefCount | ||
) | [private] |
static internal void Kitware.VTK.vtkGLSLShader.vtkGLSLShader_SetProgram_10 | ( | HandleRef | pThis, |
uint | _arg | ||
) | [private] |
new readonly string Kitware.VTK.vtkGLSLShader.MRClassNameKey = "13vtkGLSLShader" [static] |
Automatically generated type registration mechanics.
Reimplemented from Kitware.VTK.vtkShader.
new const string Kitware.VTK.vtkGLSLShader.MRFullTypeName = "Kitware.VTK.vtkGLSLShader" |
Automatically generated type registration mechanics.
Reimplemented from Kitware.VTK.vtkShader.