Kanzi 3.9.10
kanzi::GlRenderValue< TextureSharedPtr > Class Reference

Specialization of GlRenderValue. More...

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

Inheritance diagram for kanzi::GlRenderValue< TextureSharedPtr >:
[legend]

Public Member Functions

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

Specialization of GlRenderValue.

Since
Kanzi 3.9.1 changed to use KANZI_COREUI_TEMPLATE_API.

Constructor & Destructor Documentation

◆ GlRenderValue() [1/4]

kanzi::GlRenderValue< TextureSharedPtr >::GlRenderValue ( )
explicitdefault

Empty constructor.

◆ GlRenderValue() [2/4]

kanzi::GlRenderValue< TextureSharedPtr >::GlRenderValue ( Material & material,
string_view name )
inlineexplicit

Constructor.

Parameters
materialMaterial to acquire uniform location from.
nameName of the render value.

◆ GlRenderValue() [3/4]

kanzi::GlRenderValue< TextureSharedPtr >::GlRenderValue ( int uniformLocation,
string_view name )
inlineexplicit

Constructor.

Parameters
uniformLocationUniform location already acquired from shader.
nameName of the render value.

◆ GlRenderValue() [4/4]

kanzi::GlRenderValue< TextureSharedPtr >::GlRenderValue ( GlRenderValue< TextureSharedPtr > && other)
default

Move constructor.

Parameters
otherSource object.

Member Function Documentation

◆ get()

Get a shared pointer to the texture contained in this object.

Returns
Texture shared pointer.

◆ set()

Set the weak pointer to the texture resource.

Parameters
valueShared pointer to the texture resource.

◆ operator=()

Move operator.

Parameters
otherSource object.
Returns
This.

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