|
Blender V5.3
|
#include <image_instance.hh>
Inherits blender::DrawEngine.
Public Member Functions | |
| StringRefNull | name_get () final |
| void | init () final |
| std::unique_ptr< AbstractDrawingMode > | get_drawing_mode () |
| void | begin_sync () final |
| float3x3 | compute_screen_space_to_sampler_space_transformation (const float2 output_size, const float2 image_offset, const float2 image_size, const float2 pan_offset, const float zoom, const float aspect_ratio) const |
| void | image_sync () |
| void | object_sync (ObjectRef &, Manager &) final |
| void | end_sync () final |
| void | draw (Manager &) final |
| Public Member Functions inherited from blender::DrawEngine | |
| virtual | ~DrawEngine ()=default |
| virtual bool | uses_render_border () const |
Public Attributes | |
| const ARegion * | region |
| State | state |
| Manager * | manager = nullptr |
| Public Attributes inherited from blender::DrawEngine | |
| char | info [GPU_INFO_SIZE] = {'\0'} |
| bool | used = false |
Additional Inherited Members | |
| Static Public Attributes inherited from blender::DrawEngine | |
| static constexpr int | GPU_INFO_SIZE = 512 |
Definition at line 49 of file image_instance.hh.
|
inlinefinalvirtual |
Scene synchronization. Command buffers building.
Implements blender::DrawEngine.
Definition at line 129 of file image_instance.hh.
References final, blender::image_engine::State::float_buffers, get_drawing_mode(), blender::MatBase< float, 4, 4 >::identity(), blender::image_engine::State::image, image_sync(), blender::math::projection::orthographic(), region, blender::image_engine::FloatBufferCache::reset_usage_flags(), state, blender::ARegion::winx, and blender::ARegion::winy.
|
inline |
Definition at line 150 of file image_instance.hh.
References blender::math::from_loc_scale(), blender::math::from_location(), blender::math::from_scale(), blender::math::invert(), and blender::math::translate().
Referenced by image_sync().
|
inlinefinalvirtual |
Command Submission.
Implements blender::DrawEngine.
Definition at line 243 of file image_instance.hh.
References blender::DRW_context_get(), blender::DRW_submission_end(), blender::DRW_submission_start(), blender::image_engine::State::float_buffers, blender::GPU_framebuffer_clear_color_depth(), blender::image_engine::FloatBufferCache::remove_unused_buffers(), and state.
|
inlinefinalvirtual |
|
inline |
Definition at line 78 of file image_instance.hh.
References blender::BKE_image_acquire_gpu_material_texture(), blender::BKE_image_acquire_gpu_viewer_texture(), blender::BKE_image_acquire_ibuf_gpu(), blender::BKE_image_release_ibuf(), BLI_SCOPED_DEFER, blender::bke::image::ImageTileWrapper::get_tile_number(), blender::GPU_is_safe_texture_size(), blender::GPU_texture_size_with_limit(), blender::IMA_SRC_TILED, blender::image_engine::State::image, blender::ImageGPUTextures::texture, texture(), blender::ImageUser::tile, tile, blender::ImageGPUTextures::tile_mapping, blender::ImBuf::x, and blender::ImBuf::y.
Referenced by begin_sync().
|
inline |
Definition at line 197 of file image_instance.hh.
References blender::BKE_image_multilayer_index(), blender::BKE_image_multiview_index(), compute_screen_space_to_sampler_space_transformation(), blender::ImBuf::display_offset, blender::DRW_context_get(), blender::ImBuf::flags, blender::HasDisplayWindow, blender::IMA_SRC_TILED, lock, region, blender::DRWContext::scene, blender::eevee::Instance::scene, state, blender::ARegion::winx, blender::ARegion::winy, blender::ImBuf::x, and blender::ImBuf::y.
Referenced by begin_sync().
|
inlinefinalvirtual |
Init engine. Run first and for every redraw.
Implements blender::DrawEngine.
Definition at line 66 of file image_instance.hh.
References blender::CTX_data_main(), blender::DRW_context_get(), blender::DRW_manager_get(), blender::DRWContext::evil_C, final, manager, blender::DRWContext::region, region, blender::image_engine::space_accessor_from_space(), and blender::DRWContext::space_data.
|
inlinefinalvirtual |
Implements blender::DrawEngine.
Definition at line 239 of file image_instance.hh.
Definition at line 58 of file image_instance.hh.
Referenced by init().
| const ARegion* blender::image_engine::Instance::region |
Definition at line 56 of file image_instance.hh.
Referenced by begin_sync(), image_sync(), and init().
| State blender::image_engine::Instance::state |
Definition at line 57 of file image_instance.hh.
Referenced by begin_sync(), draw(), and image_sync().