VVISF & VVGL
VVISF::ISFPassTarget Class Reference

Describes the target of a render pass for an ISF file, stores a number of properties and values specific to this render pass. More...

#include <ISFPassTarget.hpp>

Public Member Functions

void setTargetWidthString (const string &n)
 Sets the receiver's target width string to the passed value. This string will be evaluated using the exprtk lib, and the resulting value will be used to determine the width at which this pass renders.
 
const string targetWidthString ()
 Gets the receiver's target width string.
 
void setTargetHeightString (const string &n)
 Sets the receiver's target height string to the passed value. This string will be evaluated using the exprtk lib, and the resulting value will be used to determine the height at which this pass renders.
 
const string targetHeightString ()
 Gets the receiver's target height string.
 
void setFloatFlag (const bool &n)
 Sets the float flag for this pass- if true, this pass needs to render to a high-bitdepth texture.
 
bool floatFlag () const
 Gets the float flag for this pass- if true, this pass needs to render to a high-bitdepth texture.
 
void clearBuffer ()
 Deletes any GL resources that might presently be cached by this pass.
 
string & name ()
 Returns the receiver's name.
 
VVGL::GLBufferRef & buffer ()
 Returns the GLBuffer currently cached with this pass, or null.
 
void setBuffer (const VVGL::GLBufferRef &n)
 Sets the GLBuffer currently cached with this pass.
 
VVGL::Size targetSize ()
 Returns the last-calculated target size for this pass.
 

Related Functions

(Note that these are not member functions.)

using ISFPassTargetRef = shared_ptr< ISFPassTarget >
 ISFPassTargetRef is a shared pointer around an ISFPassTarget instance.
 

Detailed Description

Describes the target of a render pass for an ISF file, stores a number of properties and values specific to this render pass.

Stores the GLBuffer (the GL resource) which this pass will render into, as well as the expressions that determine the width/height (both the raw string as well as the evaluated expression, capable of being executed with substitutions for variables) and the evaluated value. Also caches the uniform locations for this target buffer's attributes in the compiled GLSL program.


The documentation for this class was generated from the following files: