Kanzi 3.9.10
kanzi::GlRenderState::TextureRenderValue Struct Reference

Container for texture render value and the width/height uniforms. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/gl_render_state.hpp>

Inheritance diagram for kanzi::GlRenderState::TextureRenderValue:
[legend]

Public Member Functions

HandleType getHeightHandle () const
 Gets the height uniform handle.
 
HandleType getSizeHandle () const
 Gets the size uniform handle.
 
HandleType getWidthHandle () const
 Gets the width uniform handle.
 
TextureRenderValueoperator= (TextureRenderValue &&other)=default
 Move operator.
 
 TextureRenderValue (int uniformLocation, string_view name, HandleType widthHandle, HandleType heightHandle, HandleType sizeHandle)
 Constructor.
 
 TextureRenderValue (TextureRenderValue &&other)=default
 Move constructor.
 
- Public Member Functions inherited from kanzi::GlRenderValue< TextureSharedPtr >
TextureSharedPtr get () const
 Get a shared pointer to the texture contained in this object.
 
 GlRenderValue ()=default
 Empty constructor.
 
 GlRenderValue (GlRenderValue &&other)=default
 Move constructor.
 
 GlRenderValue (int uniformLocation, string_view name)
 Constructor.
 
 GlRenderValue (Material &material, string_view name)
 Constructor.
 
GlRenderValueoperator= (GlRenderValue &&other)=default
 Move operator.
 
void set (const TextureSharedPtr &value)
 Set the weak pointer to the texture resource.
 
- Public Member Functions inherited from kanzi::GlRenderValueBase
const chargetName () const
 Access name.
 
int getUniformLocation () const
 Gets uniform location.
 
 GlRenderValueBase ()=default
 Constructor.
 
 GlRenderValueBase (GlRenderValueBase &&other)=default
 Move constructor.
 
 GlRenderValueBase (int uniformLocation, string_view name)
 Constructor.
 
 GlRenderValueBase (Material &material, string_view name)
 Constructor.
 
bool isDirty () const
 Tells if this value is dirty.
 
bool isNamed (string_view name) const
 Tells if the render value has given name.
 
bool isValid () const
 Tells if this value information is valid.
 
GlRenderValueBaseoperator= (GlRenderValueBase &&other)=default
 Move operator.
 
void setDirty (bool enabled)
 Sets dirty status.
 
void setUniformLocation (int uniformLocation)
 Sets uniform location.
 

Additional Inherited Members

- Protected Attributes inherited from kanzi::GlRenderValueBase
bool m_dirty
 Is this value dirty and needs updating?
 
ImmutableString m_name
 Name of the render value.
 
int m_uniformLocation
 Uniform location.
 

Detailed Description

Container for texture render value and the width/height uniforms.

Texture render values require also the handles for width and

Constructor & Destructor Documentation

◆ TextureRenderValue() [1/2]

kanzi::GlRenderState::TextureRenderValue::TextureRenderValue ( int uniformLocation,
string_view name,
HandleType widthHandle,
HandleType heightHandle,
HandleType sizeHandle )
inlineexplicit

Constructor.

Parameters
uniformLocationUniform location already acquired from shader.
nameName of the render value.
widthHandleTexture width uniform handle.
heightHandleTexture height uniform handle.
sizeHandleTexture size uniform handle.

◆ TextureRenderValue() [2/2]

kanzi::GlRenderState::TextureRenderValue::TextureRenderValue ( TextureRenderValue && other)
default

Move constructor.

Parameters
otherSource object.

Member Function Documentation

◆ operator=()

TextureRenderValue & kanzi::GlRenderState::TextureRenderValue::operator= ( TextureRenderValue && other)
default

Move operator.

Parameters
otherSource object.
Returns
This.

◆ getWidthHandle()

HandleType kanzi::GlRenderState::TextureRenderValue::getWidthHandle ( ) const
inline

Gets the width uniform handle.

Returns
Handle to width value.

◆ getHeightHandle()

HandleType kanzi::GlRenderState::TextureRenderValue::getHeightHandle ( ) const
inline

Gets the height uniform handle.

Returns
Handle to height value.

◆ getSizeHandle()

HandleType kanzi::GlRenderState::TextureRenderValue::getSizeHandle ( ) const
inline

Gets the size uniform handle.

Returns
Handle to size value.

The documentation for this struct was generated from the following file: