Kanzi 3.9.10
kanzi::GlBlendModeRenderValue Class Reference

Custom blend mode render value implementation. More...

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

Inheritance diagram for kanzi::GlBlendModeRenderValue:
[legend]

Public Member Functions

optional< intget () const
 Gets the blend mode value.
 
 GlBlendModeRenderValue ()
 Empty constructor.
 
 GlBlendModeRenderValue (GlBlendModeRenderValue &&other)=default
 Move constructor.
 
GlBlendModeRenderValueoperator= (GlBlendModeRenderValue &&other)=default
 Move operator.
 
void set (optional< int > blendMode)
 Sets the blend mode.
 
- 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

Custom blend mode render value implementation.

Since
Kanzi 3.9.1

Constructor & Destructor Documentation

◆ GlBlendModeRenderValue() [1/2]

kanzi::GlBlendModeRenderValue::GlBlendModeRenderValue ( )
inlineexplicit

Empty constructor.

◆ GlBlendModeRenderValue() [2/2]

kanzi::GlBlendModeRenderValue::GlBlendModeRenderValue ( GlBlendModeRenderValue && other)
default

Move constructor.

Parameters
otherSource object.

Member Function Documentation

◆ get()

optional< int > kanzi::GlBlendModeRenderValue::get ( ) const
inline

Gets the blend mode value.

Returns
Contained value.

◆ set()

void kanzi::GlBlendModeRenderValue::set ( optional< int > blendMode)
inline

Sets the blend mode.

Parameters
blendModeBlend mode value.

◆ operator=()

GlBlendModeRenderValue & kanzi::GlBlendModeRenderValue::operator= ( GlBlendModeRenderValue && other)
default

Move operator.

Parameters
otherSource object.
Returns
Reference to this object.

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