|
Blender V5.0
|
Screen space method using a multiple textures covering the region. More...
#include <image_drawing_mode.hh>
Inherits blender::image_engine::BaseTextureMethod.
Public Member Functions | |
| ScreenTileTextures (State *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::image_engine::BaseTextureMethod | |
| BaseTextureMethod (State *instance_data) | |
| Protected Attributes inherited from blender::image_engine::BaseTextureMethod | |
| State * | 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 104 of file image_drawing_mode.hh.
|
inline |
Definition at line 122 of file image_drawing_mode.hh.
References blender::image_engine::BaseTextureMethod::BaseTextureMethod(), and blender::image_engine::BaseTextureMethod::instance_data.
|
inlineoverridevirtual |
Implements blender::image_engine::BaseTextureMethod.
Definition at line 168 of file image_drawing_mode.hh.
References blender::image_engine::TextureInfo::ensure_gpu_texture(), gpu_texture_size(), and blender::image_engine::BaseTextureMethod::instance_data.
|
inlineoverridevirtual |
Ensure enough texture infos are allocated in instance_data.
Implements blender::image_engine::BaseTextureMethod.
Definition at line 127 of file image_drawing_mode.hh.
References blender::image_engine::BaseTextureMethod::instance_data, and TexturesRequired.
|
inline |
Get the texture size of a single texture for the current settings.
Definition at line 161 of file image_drawing_mode.hh.
References blender::math::ceil(), ceil, DRW_context_get(), and DRWContext::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::image_engine::BaseTextureMethod.
Definition at line 135 of file image_drawing_mode.hh.
References BLI_rctf_init(), blender::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 106 of file image_drawing_mode.hh.
|
static |
Definition at line 107 of file image_drawing_mode.hh.
Referenced by ensure_texture_infos().
|
static |
Definition at line 108 of file image_drawing_mode.hh.