Module vrSHLChunkPtr :: Class vrSHLChunkPtr
[frames] | no frames]

Class vrSHLChunkPtr

 object --+        
          |        
??.instance --+    
              |    
    SHLChunkPtr --+
                  |
                 vrSHLChunkPtr

Deprecated. Use API v2 vrdGLSLShaderChunk and vrdGLSLShaderParameter types instead.

The SHLChunkPtr class provides direct access to all data of an OpenGL Shader Chunk.

Instance Methods
 
__init__(source)
The constructor of the vrSHLChunkPtr class.
 
fields()
Returns the field access.
unsigned integer
getID()
Returns the node id.
SHLChunkPtr
getPtr()
Returns the OpenSG SHLChunkPtr.
bool
isValid()
Returns true when the node is valid.
 
setUniformParameterInt(name, v)
Sets an OpenGL Shading Language integer parameter.
 
setUniformParameterReal(name, v)
Sets an OpenGL Shading Language real parameter.
 
setUniformParameterVec2f(name, x, y)
Sets an OpenGL Shading Language vec2f parameter.
 
setUniformParameterVec3f(name, x, y, z)
Sets an OpenGL Shading Language vec3f parameter.
 
setUniformParameterVec4f(name, x, y, z, w)
Sets an OpenGL Shading Language vec4f parameter.

Inherited from SHLChunkPtr: __reduce__

Inherited from unreachable.instance: __new__

Class Variables
  __instance_size__ = 64
Method Details

__init__(source)
(Constructor)

 

The constructor of the vrSHLChunkPtr class. There are four valid versions:

vrSHLChunkPtr() Creates a vrTextureChunkPtr object.

vrSHLChunkPtr(source) Creates a vrTextureChunkPtr object from an unsigned int.

vrSHLChunkPtr(source) Creates a vrTextureChunkPtr object from a StateChunkPtr.

vrSHLChunkPtr(source) Creates a vrTextureChunkPtr object from a SHLChunkPtr.

Parameters:
  • source (unsigned int or StateChunkPtr or SHLChunkPtr) - The source (Optional).
Overrides: SHLChunkPtr.__init__

fields()

 

Returns the field access.

Returns:
The field access.

getID()

 

Returns the node id.

Returns: unsigned integer
The node id.

getPtr()

 

Returns the OpenSG SHLChunkPtr.

Returns: SHLChunkPtr
The node pointer.

isValid()

 

Returns true when the node is valid. Should be called for sanity reasons after searching a material with findMaterial.

Returns: bool
True if the node is valid, false otherwise.

setUniformParameterInt(name, v)

 

Sets an OpenGL Shading Language integer parameter.

Parameters:
  • name (string) - The name of the parameter.
  • v (integer) - The value.

setUniformParameterReal(name, v)

 

Sets an OpenGL Shading Language real parameter.

Parameters:
  • name (string) - The name of the parameter.
  • v (float) - The value.

setUniformParameterVec2f(name, x, y)

 

Sets an OpenGL Shading Language vec2f parameter.

Parameters:
  • name (string) - The name of the parameter.
  • x (float) - The x value.
  • y (float) - The y value.

setUniformParameterVec3f(name, x, y, z)

 

Sets an OpenGL Shading Language vec3f parameter.

Parameters:
  • name (string) - The name of the parameter.
  • x (float) - The x value.
  • y (float) - The y value.
  • z (float) - The z value.

setUniformParameterVec4f(name, x, y, z, w)

 

Sets an OpenGL Shading Language vec4f parameter.

Parameters:
  • name (string) - The name of the parameter.
  • x (float) - The x value.
  • y (float) - The y value.
  • z (float) - The z value.
  • w (float) - The w value.