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

#include <draw_handle.hh>

Public Member Functions

 ResourceHandle ()=default
bool is_valid () const
bool has_inverted_handedness () const
uint raw () const
uint index () const
 operator ResourceID () const

Friends

class Manager
class ResourceHandleRange

Detailed Description

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

ResourceHandleRange is usually preferred over this class. ResourceHandle should only be used in paths where handling objects in batches is not possible.

Definition at line 117 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 134 of file draw_handle.hh.

◆ index()

◆ is_valid()

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

◆ operator ResourceID()

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

Definition at line 149 of file draw_handle.hh.

References blender::BLI_assert(), and is_valid().

◆ raw()

uint blender::draw::ResourceHandle::raw ( ) const
inline

◆ Manager

friend class Manager
friend

Definition at line 118 of file draw_handle.hh.

References Manager.

Referenced by Manager.

◆ ResourceHandleRange

friend class ResourceHandleRange
friend

Definition at line 119 of file draw_handle.hh.

References ResourceHandleRange.

Referenced by ResourceHandleRange.


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