|
Blender V4.3
|
Screen space method using a multiple textures covering the region. More...
#include <image_drawing_mode.hh>
Inherits blender::draw::image_engine::BaseTextureMethod.
Public Member Functions | |
| ScreenTileTextures (IMAGE_InstanceData *instance_data) | |
| void | ensure_texture_infos () override |
| Ensure enough texture infos are allocated in instance_data. | |
| void | update_bounds (const ARegion *region) override |
| Update the uv and region bounds of all texture_infos of instance_data. | |
| int2 | gpu_texture_size () const |
| void | ensure_gpu_textures_allocation () override |
Static Public Attributes | |
| static const size_t | TexturesPerDimension = Divisions + 1 |
| static const size_t | TexturesRequired = TexturesPerDimension * TexturesPerDimension |
| static const size_t | VerticesPerDimension = TexturesPerDimension + 1 |
Additional Inherited Members | |
| Protected Member Functions inherited from blender::draw::image_engine::BaseTextureMethod | |
| BaseTextureMethod (IMAGE_InstanceData *instance_data) | |
| Protected Attributes inherited from blender::draw::image_engine::BaseTextureMethod | |
| IMAGE_InstanceData * | instance_data |
Screen space method using a multiple textures covering the region.
This method improves panning speed, but has some drawing artifacts and therefore isn't selected.
Definition at line 103 of file image_drawing_mode.hh.
|
inline |
Definition at line 121 of file image_drawing_mode.hh.
References blender::draw::image_engine::BaseTextureMethod::BaseTextureMethod(), and blender::draw::image_engine::BaseTextureMethod::instance_data.
|
inlineoverridevirtual |
Implements blender::draw::image_engine::BaseTextureMethod.
Definition at line 167 of file image_drawing_mode.hh.
References blender::draw::image_engine::TextureInfo::ensure_gpu_texture(), gpu_texture_size(), and blender::draw::image_engine::BaseTextureMethod::instance_data.
|
inlineoverridevirtual |
Ensure enough texture infos are allocated in instance_data.
Implements blender::draw::image_engine::BaseTextureMethod.
Definition at line 126 of file image_drawing_mode.hh.
References blender::draw::image_engine::BaseTextureMethod::instance_data, and TexturesRequired.
|
inline |
Get the texture size of a single texture for the current settings.
Definition at line 160 of file image_drawing_mode.hh.
References blender::math::ceil(), and DRW_viewport_size_get().
Referenced by ensure_gpu_textures_allocation().
|
inlineoverridevirtual |
Update the uv and region bounds of all texture_infos of instance_data.
Implements blender::draw::image_engine::BaseTextureMethod.
Definition at line 134 of file image_drawing_mode.hh.
References BLI_rctf_init(), blender::draw::image_engine::BaseTextureMethod::instance_data, blender::math::invert(), blender::math::transform_point(), ARegion::winx, ARegion::winy, and blender::VecBase< T, Size >::xy().
|
static |
Definition at line 105 of file image_drawing_mode.hh.
|
static |
Definition at line 106 of file image_drawing_mode.hh.
Referenced by ensure_texture_infos().
|
static |
Definition at line 107 of file image_drawing_mode.hh.