|
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.
|
inlineoverridevirtual |
Implements blender::draw::image_engine::BaseTextureMethod.
Definition at line 167 of file image_drawing_mode.hh.
References blender::draw::image_engine::ScreenTileTextures< Divisions >::gpu_texture_size(), blender::draw::image_engine::BaseTextureMethod::instance_data, and blender::draw::image_engine::IMAGE_InstanceData::texture_infos.
|
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, blender::draw::image_engine::IMAGE_InstanceData::texture_infos, and blender::draw::image_engine::ScreenTileTextures< Divisions >::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 blender::draw::image_engine::ScreenTileTextures< Divisions >::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::draw::image_engine::IMAGE_InstanceData::ss_to_texture, blender::math::transform_point(), 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 blender::draw::image_engine::ScreenTileTextures< Divisions >::ensure_texture_infos().
|
static |
Definition at line 107 of file image_drawing_mode.hh.