Blender
V3.3
|
Screen space method using a single texture spawning the whole screen. More...
#include <image_drawing_mode.hh>
Public Member Functions | |
OneTextureMethod (IMAGE_InstanceData *instance_data) | |
void | update_screen_space_bounds (const ARegion *region) |
Update the texture slot uv and screen space bounds. More... | |
void | update_screen_uv_bounds () |
void | update_screen_uv_bounds (TextureInfo &info) |
Public Attributes | |
IMAGE_InstanceData * | instance_data |
Screen space method using a single texture spawning the whole screen.
Definition at line 27 of file image_drawing_mode.hh.
|
inline |
Definition at line 30 of file image_drawing_mode.hh.
|
inline |
Update the texture slot uv and screen space bounds.
Definition at line 35 of file image_drawing_mode.hh.
References BLI_rctf_init(), BLI_rctf_init_minmax(), TextureInfo::clipping_bounds, instance_data, SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN, IMAGE_InstanceData::texture_infos, TextureInfo::visible, ARegion::winx, and ARegion::winy.
|
inline |
Definition at line 49 of file image_drawing_mode.hh.
References instance_data, SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN, and IMAGE_InstanceData::texture_infos.
|
inline |
Definition at line 56 of file image_drawing_mode.hh.
References BLI_rctf_compare(), BLI_rctf_init(), TextureInfo::clipping_uv_bounds, TextureInfo::dirty, blender::draw::image_engine::EPSILON_UV_BOUNDS, instance_data, blender::float4x4::inverted(), and IMAGE_InstanceData::ss_to_texture.
IMAGE_InstanceData* blender::draw::image_engine::OneTextureMethod::instance_data |
Definition at line 28 of file image_drawing_mode.hh.
Referenced by update_screen_space_bounds(), and update_screen_uv_bounds().