Blender V5.0
blender::draw::ResourceIndexRange Struct Reference

#include <draw_handle.hh>

Public Member Functions

 ResourceIndexRange ()=default
 ResourceIndexRange (ResourceIndex index)
 ResourceIndexRange (ResourceIndex index, uint len)
bool has_inverted_handedness () const
IndexRange index_range () const

Public Attributes

ResourceIndex first = 0
uint32_t count = 1

Detailed Description

Refers to a range of contiguous indices in the Draw Manager resource arrays. Typically used to render instances of an object, but can represent a single instance too. The associated objects must share handedness and state so they can be rendered together.

Definition at line 83 of file draw_handle.hh.

Constructor & Destructor Documentation

◆ ResourceIndexRange() [1/3]

blender::draw::ResourceIndexRange::ResourceIndexRange ( )
default

◆ ResourceIndexRange() [2/3]

blender::draw::ResourceIndexRange::ResourceIndexRange ( ResourceIndex index)
inline

Definition at line 90 of file draw_handle.hh.

References count, and first.

◆ ResourceIndexRange() [3/3]

blender::draw::ResourceIndexRange::ResourceIndexRange ( ResourceIndex index,
uint len )
inline

Definition at line 91 of file draw_handle.hh.

References count, first, and len.

Member Function Documentation

◆ has_inverted_handedness()

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

Definition at line 93 of file draw_handle.hh.

References first.

Referenced by blender::draw::command::DrawMultiBuf::append_draw().

◆ index_range()

IndexRange blender::draw::ResourceIndexRange::index_range ( ) const
inline

Member Data Documentation

◆ count

uint32_t blender::draw::ResourceIndexRange::count = 1

Definition at line 87 of file draw_handle.hh.

Referenced by index_range(), ResourceIndexRange(), and ResourceIndexRange().

◆ first

ResourceIndex blender::draw::ResourceIndexRange::first = 0

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