|
Blender V4.3
|
#include <image_texture_info.hh>
Public Member Functions | |
| ~TextureInfo () | |
| int2 | offset () const |
| return the offset of the texture with the area. | |
| void | ensure_gpu_texture (int2 texture_size) |
Public Attributes | |
| bool | need_full_update: 1 |
| does this texture need a full update. | |
| rcti | clipping_bounds |
| area of the texture in screen space. | |
| rctf | clipping_uv_bounds |
| uv area of the texture in screen space. | |
| int2 | tile_id |
| gpu::Batch * | batch = nullptr |
| Batch to draw the associated text on the screen. | |
| GPUTexture * | texture = nullptr |
| GPU Texture for a partial region of the image editor. | |
| int2 | last_texture_size = int2(0) |
Definition at line 19 of file image_texture_info.hh.
|
inline |
Definition at line 52 of file image_texture_info.hh.
References batch, GPU_batch_discard(), and GPU_texture_free().
|
inline |
Definition at line 76 of file image_texture_info.hh.
References blender::assign_if_different(), DRW_texture_create_2d_ex(), GPU_RGBA16F, GPU_texture_free(), GPU_TEXTURE_USAGE_GENERAL, last_texture_size, need_full_update, and UNPACK2.
Referenced by blender::draw::image_engine::OneTexture::ensure_gpu_textures_allocation().
|
inline |
return the offset of the texture with the area.
A texture covers only a part of the area. The offset if the offset in screen coordinates between the area and the part that the texture covers.
Definition at line 71 of file image_texture_info.hh.
References clipping_bounds, rcti::xmin, and rcti::ymin.
| gpu::Batch* blender::draw::image_engine::TextureInfo::batch = nullptr |
Batch to draw the associated text on the screen.
Contains a VBO with pos and uv. pos (2xI32) is relative to the origin of the space. uv (2xF32) reflect the uv bounds.
Definition at line 43 of file image_texture_info.hh.
Referenced by ~TextureInfo().
| rcti blender::draw::image_engine::TextureInfo::clipping_bounds |
area of the texture in screen space.
Definition at line 28 of file image_texture_info.hh.
Referenced by blender::draw::image_engine::OneTexture::ensure_gpu_textures_allocation(), offset(), and blender::draw::image_engine::OneTexture::update_bounds().
| rctf blender::draw::image_engine::TextureInfo::clipping_uv_bounds |
uv area of the texture in screen space.
Definition at line 30 of file image_texture_info.hh.
Referenced by blender::draw::image_engine::OneTexture::update_bounds().
Definition at line 50 of file image_texture_info.hh.
Referenced by ensure_gpu_texture().
| bool blender::draw::image_engine::TextureInfo::need_full_update |
does this texture need a full update.
When set to false the texture can be updated using a partial update.
Definition at line 25 of file image_texture_info.hh.
Referenced by ensure_gpu_texture(), and blender::draw::image_engine::OneTexture::update_bounds().
| GPUTexture* blender::draw::image_engine::TextureInfo::texture = nullptr |
GPU Texture for a partial region of the image editor.
Definition at line 48 of file image_texture_info.hh.
| int2 blender::draw::image_engine::TextureInfo::tile_id |
Definition at line 34 of file image_texture_info.hh.
Referenced by blender::draw::image_engine::OneTexture::update_bounds().