Blender  V3.3
Public Attributes | List of all members
DRWManager Struct Reference

#include <draw_manager.h>

Public Attributes

DRWDatavmempool
 
struct DRWViewDataview_data_active
 
DRWResourceHandle ob_handle
 
bool ob_state_obinfo_init
 
DRWResourceHandle resource_handle
 
DRWResourceHandle pass_handle
 
struct DupliObjectdupli_source
 
struct Objectdupli_parent
 
struct Objectdupli_origin
 
struct IDdupli_origin_data
 
struct GHashdupli_ghash
 
DRWInstanceDataobject_instance_data [MAX_INSTANCE_DATA_SIZE]
 
void ** dupli_datas
 
GPUShadershader
 
GPUBatchbatch
 
DRWState state
 
DRWState state_lock
 
GPUViewportviewport
 
struct GPUFrameBufferdefault_framebuffer
 
float size [2]
 
float inv_size [2]
 
float screenvecs [2][3]
 
float pixsize
 
struct {
   uint   is_select: 1
 
   uint   is_material_select: 1
 
   uint   is_depth: 1
 
   uint   is_image_render: 1
 
   uint   is_scene_render: 1
 
   uint   draw_background: 1
 
   uint   draw_text: 1
 
options
 
DRWContextState draw_ctx
 
struct DRWTextStore ** text_store_p
 
bool buffer_finish_called
 
DRWViewview_default
 
DRWViewview_active
 
DRWViewview_previous
 
uint primary_view_num
 
ViewInfos view_storage_cpy
 
uint select_id
 
struct TaskGraphtask_graph
 
struct GSetdelayed_extraction
 
voidgl_context
 
GPUContextgpu_context
 
TicketMutexgl_context_mutex
 
GPUDrawListdraw_list
 
struct {
   DRWDebugLine *   lines
 
   DRWDebugSphere *   spheres
 
debug
 

Detailed Description

Definition at line 558 of file draw_manager.h.

Member Data Documentation

◆ batch

GPUBatch* DRWManager::batch

◆ buffer_finish_called

bool DRWManager::buffer_finish_called

◆ 

struct { ... } DRWManager::debug

◆ default_framebuffer

struct GPUFrameBuffer* DRWManager::default_framebuffer

◆ delayed_extraction

struct GSet* DRWManager::delayed_extraction

◆ draw_background

uint DRWManager::draw_background

◆ draw_ctx

DRWContextState DRWManager::draw_ctx

◆ draw_list

GPUDrawList* DRWManager::draw_list

◆ draw_text

uint DRWManager::draw_text

Definition at line 612 of file draw_manager.h.

Referenced by DRW_draw_view(), and DRW_state_show_text().

◆ dupli_datas

void** DRWManager::dupli_datas

Definition at line 587 of file draw_manager.h.

Referenced by DRW_duplidata_get(), and drw_duplidata_load().

◆ dupli_ghash

struct GHash* DRWManager::dupli_ghash

Hash-map: DupliKey -> void pointer for each enabled engine.

Definition at line 583 of file draw_manager.h.

Referenced by drw_duplidata_free(), and drw_duplidata_load().

◆ dupli_origin

struct Object* DRWManager::dupli_origin

Object referenced by the current dupli object.

Definition at line 579 of file draw_manager.h.

Referenced by DRW_draw_depth_loop(), DRW_draw_render_loop_ex(), DRW_draw_select_loop(), drw_duplidata_load(), and DRW_render_object_iter().

◆ dupli_origin_data

struct ID* DRWManager::dupli_origin_data

Object-data referenced by the current dupli object.

Definition at line 581 of file draw_manager.h.

Referenced by DRW_draw_depth_loop(), DRW_draw_render_loop_ex(), DRW_draw_select_loop(), drw_duplidata_load(), and DRW_render_object_iter().

◆ dupli_parent

struct Object* DRWManager::dupli_parent

Object that created the dupli-list the current object is part of.

Definition at line 577 of file draw_manager.h.

Referenced by DRW_draw_depth_loop(), DRW_draw_render_loop_ex(), DRW_draw_select_loop(), DRW_object_get_dupli_parent(), DRW_render_object_iter(), and drw_resource_handle().

◆ dupli_source

struct DupliObject* DRWManager::dupli_source

◆ gl_context

void* DRWManager::gl_context

◆ gl_context_mutex

TicketMutex* DRWManager::gl_context_mutex

◆ gpu_context

GPUContext* DRWManager::gpu_context

◆ inv_size

float DRWManager::inv_size[2]

◆ is_depth

uint DRWManager::is_depth

Definition at line 608 of file draw_manager.h.

Referenced by DRW_draw_depth_loop(), DRW_state_is_depth(), and DRW_state_show_text().

◆ is_image_render

uint DRWManager::is_image_render

◆ is_material_select

uint DRWManager::is_material_select

Definition at line 607 of file draw_manager.h.

Referenced by DRW_draw_select_loop(), and DRW_state_is_material_select().

◆ is_scene_render

uint DRWManager::is_scene_render

◆ is_select

uint DRWManager::is_select

Definition at line 606 of file draw_manager.h.

Referenced by DRW_draw_select_loop(), DRW_state_is_select(), and DRW_state_show_text().

◆ lines

DRWDebugLine* DRWManager::lines

Definition at line 653 of file draw_manager.h.

Referenced by drw_debug_draw_lines(), and DRW_debug_line_v3v3().

◆ ob_handle

DRWResourceHandle DRWManager::ob_handle

◆ ob_state_obinfo_init

bool DRWManager::ob_state_obinfo_init

True if current DST.ob_state has its matching DRWObjectInfos init.

Definition at line 568 of file draw_manager.h.

Referenced by drw_resource_handle().

◆ object_instance_data

DRWInstanceData* DRWManager::object_instance_data[MAX_INSTANCE_DATA_SIZE]

TODO(@fclem): try to remove usage of this.

Definition at line 585 of file draw_manager.h.

Referenced by DRW_drawdata_ensure(), and drw_manager_init().

◆ 

struct { ... } DRWManager::options

◆ pass_handle

DRWResourceHandle DRWManager::pass_handle

Handle of next DRWPass to be allocated.

Definition at line 572 of file draw_manager.h.

Referenced by drw_manager_init(), and DRW_pass_create().

◆ pixsize

float DRWManager::pixsize

Definition at line 603 of file draw_manager.h.

Referenced by drw_manager_init(), and DRW_viewport_pixelsize_get().

◆ primary_view_num

uint DRWManager::primary_view_num

Definition at line 626 of file draw_manager.h.

Referenced by drw_manager_init(), and DRW_view_create().

◆ resource_handle

DRWResourceHandle DRWManager::resource_handle

Handle of current object resource in object resource arrays (DRWObjectMatrices/Infos).

Definition at line 570 of file draw_manager.h.

Referenced by draw_unit_state_create(), drw_manager_init(), DRW_object_resource_id_get(), drw_resource_buffer_finish(), and drw_resource_handle_new().

◆ screenvecs

float DRWManager::screenvecs[2][3]

Definition at line 602 of file draw_manager.h.

Referenced by drw_manager_init(), and DRW_viewport_screenvecs_get().

◆ select_id

uint DRWManager::select_id

◆ shader

GPUShader* DRWManager::shader

Definition at line 590 of file draw_manager.h.

Referenced by draw_call_resource_bind(), draw_shgroup(), and drw_draw_pass_ex().

◆ size

float DRWManager::size[2]

◆ spheres

DRWDebugSphere* DRWManager::spheres

Definition at line 654 of file draw_manager.h.

Referenced by drw_debug_draw_spheres(), and DRW_debug_sphere().

◆ state

DRWState DRWManager::state

◆ state_lock

DRWState DRWManager::state_lock

Definition at line 595 of file draw_manager.h.

Referenced by DRW_state_lock(), and drw_state_set().

◆ task_graph

struct TaskGraph* DRWManager::task_graph

◆ text_store_p

struct DRWTextStore** DRWManager::text_store_p

Definition at line 619 of file draw_manager.h.

Referenced by drw_engines_cache_init(), and DRW_text_cache_ensure().

◆ view_active

DRWView* DRWManager::view_active

◆ view_data_active

struct DRWViewData* DRWManager::view_data_active

◆ view_default

DRWView* DRWManager::view_default

◆ view_previous

DRWView* DRWManager::view_previous

Definition at line 625 of file draw_manager.h.

Referenced by drw_draw_pass_ex(), drw_manager_init(), and DRW_view_reset().

◆ view_storage_cpy

ViewInfos DRWManager::view_storage_cpy

TODO(@fclem): Remove this. Only here to support shaders without common_view_lib.glsl

Definition at line 629 of file draw_manager.h.

Referenced by drw_update_view().

◆ viewport

GPUViewport* DRWManager::viewport

◆ vmempool

DRWData* DRWManager::vmempool

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