Blender V5.0
blender::draw::ResourceHandle Class Reference

#include <draw_handle.hh>

Public Member Functions

 ResourceHandle ()=default
bool is_valid () const
bool has_inverted_handedness () const
uint resource_index () const
 operator ResourceIndex () const

Friends

class Manager
class ResourceHandleRange

Detailed Description

Safety wrapper around ResourceIndex, meant to be used by engine code. Valid handles can only be created by the Draw Manager.

NOTE: This class is deprecated. Some Draw Manager functions can't work with ranged synchronization and returns ResourceHandles for clarity, but engine code should always use ResourceHandleRange.

Definition at line 114 of file draw_handle.hh.

Constructor & Destructor Documentation

◆ ResourceHandle()

blender::draw::ResourceHandle::ResourceHandle ( )
default

Member Function Documentation

◆ has_inverted_handedness()

bool blender::draw::ResourceHandle::has_inverted_handedness ( ) const
inline

Definition at line 131 of file draw_handle.hh.

◆ is_valid()

bool blender::draw::ResourceHandle::is_valid ( ) const
inline

Definition at line 126 of file draw_handle.hh.

Referenced by operator ResourceIndex().

◆ operator ResourceIndex()

blender::draw::ResourceHandle::operator ResourceIndex ( ) const
inline

Definition at line 141 of file draw_handle.hh.

References BLI_assert, and is_valid().

◆ resource_index()

◆ Manager

friend class Manager
friend

Definition at line 115 of file draw_handle.hh.

References Manager.

Referenced by Manager.

◆ ResourceHandleRange

friend class ResourceHandleRange
friend

Definition at line 116 of file draw_handle.hh.

References ResourceHandleRange.

Referenced by ResourceHandleRange.


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