Blender V4.3
blender::draw::image_engine Namespace Reference

Classes

class  AbstractDrawingMode
 
class  AbstractSpaceAccessor
 
class  BaseTextureMethod
 
class  BatchUpdater
 Create gpu::Batch for a IMAGE_ScreenSpaceTextureInfo. More...
 
struct  FloatBufferCache
 Float buffer cache for image buffers. More...
 
struct  FloatImageBuffer
 
struct  IMAGE_Data
 
struct  IMAGE_InstanceData
 
struct  IMAGE_Shaders
 
class  ImageEngine
 
struct  ImageUsage
 
class  OneTexture
 
class  ScreenSpaceDrawingMode
 
class  ScreenTileTextures
 Screen space method using a multiple textures covering the region. More...
 
struct  ShaderParameters
 
class  SpaceImageAccessor
 
class  SpaceNodeAccessor
 
struct  TextureInfo
 

Enumerations

enum class  ImageDrawFlags {
  Default = 0 , ShowAlpha = (1 << 0) , ApplyAlpha = (1 << 1) , Shuffling = (1 << 2) ,
  Depth = (1 << 3)
}
 

Functions

static std::unique_ptr< AbstractSpaceAccessorspace_accessor_from_context (const DRWContextState *draw_ctx)
 
 ENUM_OPERATORS (ImageDrawFlags, ImageDrawFlags::Depth)
 
GPUShaderIMAGE_shader_image_get ()
 
GPUShaderIMAGE_shader_depth_get ()
 
void IMAGE_shader_free ()
 
Engine Callbacks
static void IMAGE_engine_init (void *ved)
 
static void IMAGE_cache_init (void *vedata)
 
static void IMAGE_cache_populate (void *, Object *)
 
static void IMAGE_draw_scene (void *vedata)
 
static void IMAGE_engine_free ()
 
static void IMAGE_instance_free (void *_instance_data)
 

Variables

constexpr float EPSILON_UV_BOUNDS = 0.00001f
 
static const DrawEngineDataSize IMAGE_data_size = DRW_VIEWPORT_DATA_SIZE(IMAGE_Data)
 
struct { 
 
   IMAGE_Shaders   blender::draw::image_engine::shaders 
 
e_data = {{nullptr}} 
 

Enumeration Type Documentation

◆ ImageDrawFlags

Enumerator
Default 
ShowAlpha 
ApplyAlpha 
Shuffling 
Depth 

Definition at line 16 of file image_enums.hh.

Function Documentation

◆ ENUM_OPERATORS()

blender::draw::image_engine::ENUM_OPERATORS ( ImageDrawFlags ,
ImageDrawFlags::Depth  )

◆ IMAGE_cache_init()

static void blender::draw::image_engine::IMAGE_cache_init ( void * vedata)
static

◆ IMAGE_cache_populate()

static void blender::draw::image_engine::IMAGE_cache_populate ( void * ,
Object *  )
static

Definition at line 156 of file image_engine.cc.

◆ IMAGE_draw_scene()

static void blender::draw::image_engine::IMAGE_draw_scene ( void * vedata)
static

◆ IMAGE_engine_free()

static void blender::draw::image_engine::IMAGE_engine_free ( )
static

Definition at line 169 of file image_engine.cc.

References IMAGE_shader_free().

◆ IMAGE_engine_init()

static void blender::draw::image_engine::IMAGE_engine_init ( void * ved)
static

◆ IMAGE_instance_free()

static void blender::draw::image_engine::IMAGE_instance_free ( void * _instance_data)
static

Definition at line 174 of file image_engine.cc.

◆ IMAGE_shader_depth_get()

GPUShader * blender::draw::image_engine::IMAGE_shader_depth_get ( )

Definition at line 38 of file image_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

◆ IMAGE_shader_free()

void blender::draw::image_engine::IMAGE_shader_free ( )

Definition at line 47 of file image_shader.cc.

References DRW_SHADER_FREE_SAFE, and e_data.

Referenced by IMAGE_engine_free().

◆ IMAGE_shader_image_get()

GPUShader * blender::draw::image_engine::IMAGE_shader_image_get ( )

Definition at line 29 of file image_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

◆ space_accessor_from_context()

static std::unique_ptr< AbstractSpaceAccessor > blender::draw::image_engine::space_accessor_from_context ( const DRWContextState * draw_ctx)
static

Variable Documentation

◆ [struct]

struct { ... } blender::draw::image_engine::e_data

◆ EPSILON_UV_BOUNDS

float blender::draw::image_engine::EPSILON_UV_BOUNDS = 0.00001f
constexpr

Definition at line 24 of file image_drawing_mode.hh.

◆ IMAGE_data_size

const DrawEngineDataSize blender::draw::image_engine::IMAGE_data_size = DRW_VIEWPORT_DATA_SIZE(IMAGE_Data)
static

Definition at line 182 of file image_engine.cc.

◆ shaders

IMAGE_Shaders blender::draw::image_engine::shaders

Definition at line 26 of file image_shader.cc.