Blender  V3.3
Public Member Functions | Public Attributes | List of all members
TextureInfo Struct Reference

#include <image_texture_info.hh>

Public Member Functions

 ~TextureInfo ()
 

Public Attributes

bool visible: 1
 Is the texture clipped. More...
 
bool dirty: 1
 does this texture need a full update. More...
 
rctf clipping_bounds
 area of the texture in screen space. More...
 
rctf clipping_uv_bounds
 uv area of the texture in screen space. More...
 
GPUBatchbatch
 Batch to draw the associated text on the screen. More...
 
GPUTexturetexture
 GPU Texture for a partial region of the image editor. More...
 
float2 last_viewport_size = float2(0.0f, 0.0f)
 
uint64_t data
 
uint data_type
 
uint interpolation
 
uint extension
 
uint width
 
uint height
 
uint depth
 
uint use_transform_3d
 
Transform transform_3d
 

Detailed Description

Definition at line 15 of file image_texture_info.hh.

Constructor & Destructor Documentation

◆ ~TextureInfo()

TextureInfo::~TextureInfo ( )
inline

Definition at line 51 of file image_texture_info.hh.

References batch, GPU_batch_discard(), GPU_texture_free(), and texture.

Member Data Documentation

◆ batch

GPUBatch* TextureInfo::batch

Batch to draw the associated text on the screen.

Contains a VBO with pos and uv. pos (2xF32) is relative to the origin of the space. uv (2xF32) reflect the uv bounds.

Definition at line 42 of file image_texture_info.hh.

Referenced by BatchUpdater::discard_batch(), and ~TextureInfo().

◆ clipping_bounds

rctf TextureInfo::clipping_bounds

area of the texture in screen space.

Definition at line 31 of file image_texture_info.hh.

Referenced by blender::draw::image_engine::OneTextureMethod::update_screen_space_bounds().

◆ clipping_uv_bounds

rctf TextureInfo::clipping_uv_bounds

uv area of the texture in screen space.

Definition at line 33 of file image_texture_info.hh.

Referenced by blender::draw::image_engine::OneTextureMethod::update_screen_uv_bounds().

◆ data

uint64_t TextureInfo::data

◆ data_type

uint TextureInfo::data_type

◆ depth

uint TextureInfo::depth

◆ dirty

bool TextureInfo::dirty

does this texture need a full update.

When set to false the texture can be updated using a partial update.

Definition at line 28 of file image_texture_info.hh.

Referenced by IMAGE_InstanceData::update_batches(), IMAGE_InstanceData::update_gpu_texture_allocations(), and blender::draw::image_engine::OneTextureMethod::update_screen_uv_bounds().

◆ extension

uint TextureInfo::extension

◆ height

uint TextureInfo::height

◆ interpolation

uint TextureInfo::interpolation

◆ last_viewport_size

float2 TextureInfo::last_viewport_size = float2(0.0f, 0.0f)

◆ texture

GPUTexture* TextureInfo::texture

GPU Texture for a partial region of the image editor.

Definition at line 47 of file image_texture_info.hh.

Referenced by IMAGE_InstanceData::update_gpu_texture_allocations(), and ~TextureInfo().

◆ transform_3d

Transform TextureInfo::transform_3d

◆ use_transform_3d

uint TextureInfo::use_transform_3d

◆ visible

bool TextureInfo::visible

Is the texture clipped.

Resources of clipped textures are freed and ignored when performing partial updates.

Definition at line 21 of file image_texture_info.hh.

Referenced by IMAGE_InstanceData::update_gpu_texture_allocations(), and blender::draw::image_engine::OneTextureMethod::update_screen_space_bounds().

◆ width

uint TextureInfo::width

The documentation for this struct was generated from the following files: