|
Blender V5.0
|
#include <image_texture_info.hh>
Inherits blender::NonCopyable.
Public Member Functions | |
| TextureInfo ()=default | |
| TextureInfo (TextureInfo &&other)=default | |
| ~TextureInfo () | |
| int2 | offset () const |
| return the offset of the texture with the area. | |
| void | ensure_gpu_texture (int2 texture_size) |
| Public Member Functions inherited from blender::NonCopyable | |
| NonCopyable (const NonCopyable &other)=delete | |
| NonCopyable & | operator= (const NonCopyable &other)=delete |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable &&other)=default | |
| NonCopyable & | operator= (NonCopyable &&other)=default |
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. | |
| Texture | texture = {"Image.Tile"} |
| GPU Texture for a partial region of the image editor. | |
| int2 | last_texture_size = int2(0) |
Definition at line 23 of file image_texture_info.hh.
|
default |
Referenced by TextureInfo().
|
default |
References TextureInfo().
|
inline |
Definition at line 59 of file image_texture_info.hh.
References batch, and GPU_batch_discard().
|
inline |
Definition at line 78 of file image_texture_info.hh.
References blender::assign_if_different(), GPU_TEXTURE_USAGE_SHADER_READ, last_texture_size, need_full_update, and texture.
Referenced by blender::image_engine::OneTexture::ensure_gpu_textures_allocation(), and blender::image_engine::ScreenTileTextures< Divisions >::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 73 of file image_texture_info.hh.
References clipping_bounds.
| gpu::Batch* blender::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 47 of file image_texture_info.hh.
Referenced by ~TextureInfo().
| rcti blender::image_engine::TextureInfo::clipping_bounds |
area of the texture in screen space.
Definition at line 32 of file image_texture_info.hh.
Referenced by blender::image_engine::OneTexture::ensure_gpu_textures_allocation(), offset(), and blender::image_engine::OneTexture::update_bounds().
| rctf blender::image_engine::TextureInfo::clipping_uv_bounds |
uv area of the texture in screen space.
Definition at line 34 of file image_texture_info.hh.
Referenced by blender::image_engine::OneTexture::update_bounds().
Definition at line 54 of file image_texture_info.hh.
Referenced by ensure_gpu_texture().
| bool blender::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 29 of file image_texture_info.hh.
Referenced by ensure_gpu_texture(), and blender::image_engine::OneTexture::update_bounds().
| Texture blender::image_engine::TextureInfo::texture = {"Image.Tile"} |
GPU Texture for a partial region of the image editor.
Definition at line 52 of file image_texture_info.hh.
Referenced by ensure_gpu_texture().
| int2 blender::image_engine::TextureInfo::tile_id |
Definition at line 38 of file image_texture_info.hh.
Referenced by blender::image_engine::OneTexture::update_bounds().