Blender  V3.3
image_texture_info.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2022 Blender Foundation. */
3 
8 #pragma once
9 
10 #include "BLI_rect.h"
11 
12 #include "GPU_batch.h"
13 #include "GPU_texture.h"
14 
15 struct TextureInfo {
21  bool visible : 1;
22 
28  bool dirty : 1;
29 
34 
43 
48 
50 
52  {
53  if (batch != nullptr) {
55  batch = nullptr;
56  }
57 
58  if (texture != nullptr) {
60  texture = nullptr;
61  }
62  }
63 };
GPUBatch
Definition: GPU_batch.h:78
void GPU_batch_discard(GPUBatch *)
Definition: gpu_batch.cc:109
float float2[2]
struct GPUTexture GPUTexture
Definition: GPU_texture.h:17
void GPU_texture_free(GPUTexture *tex)
Definition: gpu_texture.cc:564
GPUTexture * texture
GPU Texture for a partial region of the image editor.
bool dirty
does this texture need a full update.
GPUBatch * batch
Batch to draw the associated text on the screen.
rctf clipping_uv_bounds
uv area of the texture in screen space.
float2 last_viewport_size
rctf clipping_bounds
area of the texture in screen space.
bool visible
Is the texture clipped.