Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::utilgl Namespace Reference

Classes

struct  Activate
 
class  ActivateFBO
 A FrameBufferObject activation RAII utility, will store the current FBO and restore that in the destructor. More...
 
struct  BlendModeEquationState
 RAII object for OpenGL blend equation. More...
 
struct  BlendModeState
 RAII object for OpenGL blending and blend mode, enables blending if source mode is different from GL_NONE. More...
 
struct  ClearColor
 RAII object for OpenGL clear color used when calling glClear(GL_COLOR_BUFFER_BIT) More...
 
struct  ClearDepth
 RAII object for OpenGL clear depth used when calling glClear(GL_DEPTH_BUFFER_BIT) More...
 
struct  ColorMask
 representation of the OpenGL color write mask More...
 
struct  ColorMaski
 representation of the OpenGL color write mask of a specific buffer More...
 
struct  ColorMaskiState
 RAII object for OpenGL color mask state, sets the color mask for a specific draw buffer. More...
 
struct  ColorMaskState
 RAII object for OpenGL color mask state, sets the color mask for all draw buffers. More...
 
struct  CullFaceState
 RAII object for OpenGL cull face state, which enables GL_CULL_FACE if mode is different from GL_NONE. More...
 
class  DataMinMaxGL
 Utility class for computing min and max values using OpenGL. More...
 
struct  Enable
 
struct  GlBoolState
 RAII object for OpenGL bool states. More...
 
struct  PolygonModeState
 RAII object for OpenGL polygon mode as well as line width and point size Will set the polygon mode for GL_FRONT_AND_BACK since this is the only mode supported by the OpenGL core profile. More...
 
struct  ScissorBox
 representation of an OpenGL viewport with setter and getter More...
 
struct  ScissorState
 RAII object for OpenGL scissor state. More...
 
struct  SimpleState
 
struct  TexEnv
 RAII object for texture environments of a texture bound to a given texture unit. More...
 
struct  TexParameter
 RAII object for texture parameters of a texture bound to a given texture unit. More...
 
struct  Viewport
 representation of an OpenGL viewport with setter and getter More...
 
struct  ViewportState
 RAII object for OpenGL viewports. More...
 

Typedefs

using DepthFuncState = SimpleState<GLint, GLenum, GL_DEPTH_FUNC, glGetIntegerv, glDepthFunc>
 RAII object for OpenGL depth func state.
 
using DepthMaskState
 RAII object for OpenGL depth mask to enable/disable writing depth.
 
using PointSizeState = SimpleState<GLfloat, GLfloat, GL_POINT_SIZE, glGetFloatv, glPointSize>
 RAII object for OpenGL point size.
 

Enumerations

enum class  Normalization : char { None , Normalized , SignNormalized }
 

Functions

IVW_MODULE_BASEGL_API void addShaderDefines (Shader &shader, const StipplingProperty &property)
 
IVW_MODULE_BASEGL_API void addShaderDefines (Shader &shader, const StipplingProperty::Mode &mode)
 
IVW_MODULE_BASEGL_API void setShaderUniforms (Shader &shader, const StipplingProperty &property, const std::string &name)
 
IVW_MODULE_OPENGL_API std::string_view framebufferStatusToString (GLenum status)
 Convert the return value of glCheckFramebufferStatus to a human readable string.
 
IVW_MODULE_OPENGL_API void handleOpenGLDebugModeChange (debug::Mode mode, debug::Severity severity)
 
IVW_MODULE_OPENGL_API void handleOpenGLDebugMode (Canvas::ContextID context)
 
IVW_MODULE_OPENGL_API bool setOpenGLDebugMode (debug::Mode mode, debug::Severity severity)
 
IVW_MODULE_OPENGL_API void handleOpenGLDebugMessagesChange (utilgl::debug::Severity severity)
 
IVW_MODULE_OPENGL_API bool configureOpenGLDebugMessages (utilgl::debug::Severity severity)
 
IVW_MODULE_OPENGL_API std::array< GLint, 4 > convertSwizzleMaskToGL (const SwizzleMask &mask)
 
IVW_MODULE_OPENGL_API SwizzleMask convertSwizzleMaskFromGL (const std::array< GLint, 4 > &maskGL)
 
IVW_MODULE_OPENGL_API GLenum convertInterpolationToGL (InterpolationType interpolation)
 
IVW_MODULE_OPENGL_API InterpolationType convertInterpolationFromGL (GLenum interpolation)
 
IVW_MODULE_OPENGL_API GLenum convertWrappingToGL (Wrapping wrap)
 
template<size_t N>
std::array< GLenum, N > convertWrappingToGL (const std::array< Wrapping, N > &wrapping)
 
IVW_MODULE_OPENGL_API Wrapping convertWrappingFromGL (GLenum wrap)
 
template<size_t N>
std::array< Wrapping, N > convertWrappingFromGL (const std::array< GLenum, N > &wrapping)
 
template<typename T >
passThrough (T x)
 
IVW_MODULE_OPENGL_API GLfloat validateLineWidth (GLfloat width)
 
template<typename T >
constexpr std::string_view glslTypeName ()
 
IVW_MODULE_OPENGL_API void parseShaderSource (std::string_view key, std::string_view source, std::ostream &output, LineNumberResolver &lnr, std::unordered_map< typename ShaderSegment::Placeholder, std::vector< ShaderSegment > > replacements, std::function< std::optional< std::pair< std::string, std::string > >(std::string_view)> getSource)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const DataMapper &dataMapper, const DataFormatBase *format, std::string_view name)
 
template<typename T >
void setShaderUniforms (Shader &shader, const TemplateProperty< T > &property, std::string_view name)
 
template<typename T >
void setShaderUniforms (Shader &shader, const TemplateProperty< T > &property)
 
IVW_MODULE_OPENGL_API void addShaderDefines (Shader &shader, const SimpleLightingProperty &property)
 
IVW_MODULE_OPENGL_API void addShaderDefines (Shader &shader, const LightingState &state)
 
IVW_MODULE_OPENGL_API void addShaderDefines (Shader &shader, const ShadingMode &mode)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const SimpleLightingProperty &property, std::string_view name)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const LightingState &state, std::string_view name)
 
IVW_MODULE_OPENGL_API void addShaderDefines (Shader &shader, const CameraProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const CameraProperty &property, std::string_view name)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const Camera &camera, std::string_view name)
 
IVW_MODULE_OPENGL_API void addShaderDefines (Shader &shader, const RaycastingProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const RaycastingProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const RaycastingProperty &property, std::string_view name)
 
IVW_MODULE_OPENGL_API void setShaderDefines (Shader &shader, const OptionProperty< RaycastingProperty::GradientComputation > &property, bool voxelClassification=false)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const SpatialEntity &object, std::string_view name)
 
IVW_MODULE_OPENGL_API void addShaderDefines (Shader &shader, const SimpleRaycastingProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const SimpleRaycastingProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const SimpleRaycastingProperty &property, std::string_view name)
 
IVW_MODULE_OPENGL_API void addShaderDefines (Shader &shader, const IsoValueProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const IsoValueProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const IsoValueProperty &property, std::string_view name)
 
IVW_MODULE_OPENGL_API void addShaderDefines (Shader &shader, const IsoTFProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const IsoTFProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const IsoTFProperty &property, std::string_view name)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const SelectionColorProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const SelectionColorProperty &property, std::string_view name)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const SelectionColorState &state, std::string_view name)
 
IVW_MODULE_OPENGL_API void addShaderDefinesBGPort (Shader &shader, const ImageInport &port)
 
IVW_MODULE_OPENGL_API void addShaderDefines (Shader &shader, const VolumeIndicatorProperty &property)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const VolumeIndicatorProperty &property, std::string_view name)
 
template<typename T >
void setShaderUniforms (Shader &shader, const OrdinalProperty< T > &property, std::string_view name)
 
template<typename T >
void setShaderUniforms (Shader &shader, const OrdinalProperty< T > &property)
 
template<typename T >
void setShaderUniforms (Shader &shader, const OptionProperty< T > &property, std::string_view name)
 
template<typename T >
void setShaderUniforms (Shader &shader, const MinMaxProperty< T > &property, std::string_view name)
 
template<typename T , typename std::enable_if< std::is_base_of< Property, T >::value, int >::type = 0>
void setShaderUniforms (Shader &shader, const T &property)
 
template<typename... Ts>
void addDefines (Shader &shader, const Ts &... elements)
 
template<typename... Ts>
void setUniforms (Shader &shader, const Ts &... elements)
 
IVW_MODULE_OPENGL_API int getLogLineNumber (std::string_view compileLogLine)
 
IVW_MODULE_OPENGL_API std::string getShaderInfoLog (GLuint id)
 
IVW_MODULE_OPENGL_API std::string getProgramInfoLog (GLuint id)
 
IVW_MODULE_OPENGL_API std::shared_ptr< const ShaderResourcefindShaderResource (std::string_view fileName)
 
IVW_MODULE_OPENGL_API std::vector< std::pair< ShaderType, std::shared_ptr< const ShaderResource > > > toShaderResources (const std::vector< std::pair< ShaderType, std::string > > &items)
 
IVW_MODULE_OPENGL_API std::string getGLSLTypeName (const DataFormatBase *format)
 
IVW_MODULE_OPENGL_API std::pair< ShaderType, std::shared_ptr< const ShaderResource > > imgIdentityVert ()
 
IVW_MODULE_OPENGL_API std::pair< ShaderType, std::shared_ptr< const ShaderResource > > imgQuadVert ()
 
IVW_MODULE_OPENGL_API std::pair< ShaderType, std::shared_ptr< const ShaderResource > > imgQuadFrag ()
 
template<typename... Ts>
void bind (TextureUnitContainer &cont, Ts &... elements)
 
IVW_MODULE_OPENGL_API void activateTarget (Image &targetImage, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void activateTarget (ImageOutport &targetOutport, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void activateAndClearTarget (Image &targetImage, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void activateAndClearTarget (ImageOutport &targetOutport, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void activateTargetAndCopySource (Image &targetImage, const Image &sourceImage, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void activateTargetAndCopySource (ImageOutport &targetOutport, const Image &sourceImage, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void activateTargetAndCopySource (Image &targetImage, const ImageInport &sourceInport, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void activateTargetAndCopySource (ImageOutport &targetOutport, const ImageInport &sourceInport, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void activateTargetAndClearOrCopySource (Image &targetImage, const ImageInport &sourceInport, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void activateTargetAndClearOrCopySource (ImageOutport &targetOutport, const ImageInport &sourceInport, ImageType type=ImageType::AllLayers)
 
IVW_MODULE_OPENGL_API void clearCurrentTarget ()
 
IVW_MODULE_OPENGL_API void deactivateCurrentTarget ()
 
IVW_MODULE_OPENGL_API void updateAndActivateTarget (ImageOutport &targetOutport, ImageInport &sourceInport)
 
IVW_MODULE_OPENGL_API void bindTexture (const Layer &layer, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindTexture (const LayerInport &inport, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindTexture (const LayerOutport &outport, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const Image &image, bool color, bool depth, bool picking, GLenum colorTexUnit, GLenum depthTexUnit, GLenum pickingTexUnit)
 
IVW_MODULE_OPENGL_API void bindColorTexture (const Image &image, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindColorTexture (const ImageInport &inport, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindColorTexture (const ImageOutport &outport, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindDepthTexture (const Image &image, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindDepthTexture (const ImageInport &inport, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindDepthTexture (const ImageOutport &outport, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindPickingTexture (const Image &image, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindPickingTexture (const ImageInport &inport, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindPickingTexture (const ImageOutport &outport, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const Image &image, GLenum colorTexUnit, GLenum depthTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const ImageInport &inport, GLenum colorTexUnit, GLenum depthTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const ImageOutport &outport, GLenum colorTexUnit, GLenum depthTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const Image &image, GLenum colorTexUnit, GLenum depthTexUnit, GLenum pickingTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const ImageInport &inport, GLenum colorTexUnit, GLenum depthTexUnit, GLenum pickingTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const ImageOutport &outport, GLenum colorTexUnit, GLenum depthTexUnit, GLenum pickingTexUnit)
 
IVW_MODULE_OPENGL_API void bindTexture (const Layer &layer, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindTexture (const LayerInport &inport, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindTexture (const LayerOutport &outport, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindColorTexture (const Image &image, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindColorTexture (const ImageInport &inport, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindColorTexture (const ImageOutport &outport, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindDepthTexture (const Image &image, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindDepthTexture (const ImageInport &inport, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindDepthTexture (const ImageOutport &outport, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindPickingTexture (const Image &image, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindPickingTexture (const ImageInport &inport, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindPickingTexture (const ImageOutport &outport, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const Image &image, const TextureUnit &colorTexUnit, const TextureUnit &depthTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const ImageInport &inport, const TextureUnit &colorTexUnit, const TextureUnit &depthTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const ImageOutport &outport, const TextureUnit &colorTexUnit, const TextureUnit &depthTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const Image &image, const TextureUnit &colorTexUnit, const TextureUnit &depthTexUnit, const TextureUnit &pickingTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const ImageInport &inport, const TextureUnit &colorTexUnit, const TextureUnit &depthTexUnit, const TextureUnit &pickingTexUnit)
 
IVW_MODULE_OPENGL_API void bindTextures (const ImageOutport &outport, const TextureUnit &colorTexUnit, const TextureUnit &depthTexUnit, const TextureUnit &pickingTexUnit)
 
IVW_MODULE_OPENGL_API void unbindTexture (const Layer &layer)
 
IVW_MODULE_OPENGL_API void unbindTexture (const LayerInport &inport)
 
IVW_MODULE_OPENGL_API void unbindTexture (const LayerOutport &outport)
 
IVW_MODULE_OPENGL_API void unbindTextures (const Image &image, bool color, bool depth, bool picking)
 
IVW_MODULE_OPENGL_API void unbindColorTexture (const ImageInport &inport)
 
IVW_MODULE_OPENGL_API void unbindColorTexture (const ImageOutport &outport)
 
IVW_MODULE_OPENGL_API void unbindDepthTexture (const ImageInport &inport)
 
IVW_MODULE_OPENGL_API void unbindDepthTexture (const ImageOutport &outport)
 
IVW_MODULE_OPENGL_API void unbindPickingTexture (const ImageInport &inport)
 
IVW_MODULE_OPENGL_API void unbindPickingTexture (const ImageOutport &outport)
 
IVW_MODULE_OPENGL_API void unbindTextures (const Image &image)
 
IVW_MODULE_OPENGL_API void unbindTextures (const ImageInport &inport)
 
IVW_MODULE_OPENGL_API void unbindTextures (const ImageOutport &outport)
 
IVW_MODULE_OPENGL_API void bindTexture (const TextureBase &texture, GLenum texUnit)
 
IVW_MODULE_OPENGL_API void bindTexture (const TextureBase &texture, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, const TextureBase &texture, std::string_view samplerID)
 
IVW_MODULE_OPENGL_API void bindTexture (TransferFunctionProperty &tf, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, TransferFunctionProperty &tf)
 
IVW_MODULE_OPENGL_API void bindTexture (IsoTFProperty &property, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, IsoTFProperty &property)
 
IVW_MODULE_OPENGL_API void bindTexture (const Volume &volume, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void bindTexture (const VolumeInport &inport, const TextureUnit &texUnit)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const Layer &layer, std::string_view samplerID)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const LayerInport &inport, std::string_view samplerID="")
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const LayerOutport &outport, std::string_view samplerID="")
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const Image &image, std::string_view samplerID)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const ImageInport &inport, std::string_view samplerID="")
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const ImageOutport &outport, std::string_view samplerID="")
 
IVW_MODULE_OPENGL_API std::unique_ptr< MeshplaneRect ()
 
IVW_MODULE_OPENGL_API void singleDrawImagePlaneRect ()
 
IVW_MODULE_OPENGL_API void multiDrawImagePlaneRect (int instances)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, const Layer &layer, std::string_view id)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, const LayerInport &inport)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, const LayerOutport &outport)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, const Image &image, std::string_view id, ImageType type)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, const ImageInport &image, ImageType type)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, const ImageOutport &image, ImageType type)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const Volume &volume, std::string_view samplerID)
 
IVW_MODULE_OPENGL_API void setShaderUniforms (Shader &shader, const VolumeInport &port, std::string_view samplerID)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, const VolumeInport &volume)
 
IVW_MODULE_OPENGL_API void bindAndSetUniforms (Shader &shader, TextureUnitContainer &cont, const Volume &volume, std::string_view samplerID)
 

Detailed Description

utilgl

Typedef Documentation

◆ DepthFuncState

using inviwo::utilgl::DepthFuncState = SimpleState<GLint, GLenum, GL_DEPTH_FUNC, glGetIntegerv, glDepthFunc>

RAII object for OpenGL depth func state.

See also
glDepthFunc, GL_DEPTH_FUNC

◆ DepthMaskState

Initial value:
SimpleState<GLboolean, GLboolean, GL_DEPTH_WRITEMASK, glGetBooleanv, glDepthMask>

RAII object for OpenGL depth mask to enable/disable writing depth.

See also
glDepthMask, GL_DEPTH_WRITEMASK

◆ PointSizeState

using inviwo::utilgl::PointSizeState = SimpleState<GLfloat, GLfloat, GL_POINT_SIZE, glGetFloatv, glPointSize>

RAII object for OpenGL point size.

See also
glPointSize, GL_POINT_SIZE

Function Documentation

◆ imgIdentityVert()

IVW_MODULE_OPENGL_API std::pair< ShaderType, std::shared_ptr< const ShaderResource > > inviwo::utilgl::imgIdentityVert ( )

Standard minimal vertex shader resource, used if no vertex shader exits in shader.h

◆ imgQuadFrag()

IVW_MODULE_OPENGL_API std::pair< ShaderType, std::shared_ptr< const ShaderResource > > inviwo::utilgl::imgQuadFrag ( )

Standard vertex shader resource for a quad

◆ imgQuadVert()

IVW_MODULE_OPENGL_API std::pair< ShaderType, std::shared_ptr< const ShaderResource > > inviwo::utilgl::imgQuadVert ( )

Standard vertex shader resource for a quad

◆ planeRect()

IVW_MODULE_OPENGL_API std::unique_ptr< Mesh > inviwo::utilgl::planeRect ( )

Creates an indexed triangle strip mesh with points and texture coordinates. (-1,1)-—(1, 1) | | (-1,1)-—(1,-1)

Returns
std::unique_ptr<Mesh>

◆ setShaderUniforms()

IVW_MODULE_OPENGL_API void inviwo::utilgl::setShaderUniforms ( Shader & shader,
const DataMapper & dataMapper,
const DataFormatBase * format,
std::string_view name )

Set the shader uniforms of shader related to format scaling based on dataMapper and the corresponding data format format using name as a base name, that is <name>.formatScaling etc. These uniforms are used in connection with sampler2d.glsl and sampler3d.glsl.