Blender V4.3
draw_cache_impl_lattice.cc File Reference

Lattice API for render engines. More...

#include "MEM_guardedalloc.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "DNA_curve_types.h"
#include "DNA_lattice_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_userdef_types.h"
#include "BKE_deform.hh"
#include "BKE_lattice.hh"
#include "GPU_batch.hh"
#include "draw_cache_impl.hh"

Go to the source code of this file.

Classes

struct  blender::draw::LatticeRenderData
 
struct  blender::draw::LatticeBatchCache
 

Namespaces

namespace  blender
 
namespace  blender::draw
 

Macros

#define SELECT   1
 
#define LATT_INDEX(u, v, w)   ((((w) * rdata->dims.v_len + (v)) * rdata->dims.u_len) + (u))
 

Enumerations

enum  { blender::draw::LR_DATATYPE_VERT = 1 << 0 , blender::draw::LR_DATATYPE_EDGE = 1 << 1 , blender::draw::LR_DATATYPE_OVERLAY = 1 << 2 }
 

Functions

static void blender::draw::lattice_batch_cache_clear (Lattice *lt)
 
static int blender::draw::vert_len_calc (int u, int v, int w)
 
static int blender::draw::edge_len_calc (int u, int v, int w)
 
static int blender::draw::lattice_render_verts_len_get (Lattice *lt)
 
static int blender::draw::lattice_render_edges_len_get (Lattice *lt)
 
static LatticeRenderDatablender::draw::lattice_render_data_create (Lattice *lt, const int types)
 
static void blender::draw::lattice_render_data_free (LatticeRenderData *rdata)
 
static int blender::draw::lattice_render_data_verts_len_get (const LatticeRenderData *rdata)
 
static int blender::draw::lattice_render_data_edges_len_get (const LatticeRenderData *rdata)
 
static const BPointblender::draw::lattice_render_data_vert_bpoint (const LatticeRenderData *rdata, const int vert_idx)
 
static bool blender::draw::lattice_batch_cache_valid (Lattice *lt)
 
static void blender::draw::lattice_batch_cache_init (Lattice *lt)
 
static LatticeBatchCacheblender::draw::lattice_batch_cache_get (Lattice *lt)
 
static gpu::VertBufblender::draw::lattice_batch_cache_get_pos (LatticeRenderData *rdata, LatticeBatchCache *cache, bool use_weight, const int actdef)
 
static gpu::IndexBufblender::draw::lattice_batch_cache_get_edges (LatticeRenderData *rdata, LatticeBatchCache *cache)
 
static void blender::draw::lattice_batch_cache_create_overlay_batches (Lattice *lt)
 
Expose via BKE callbacks
void blender::draw::DRW_lattice_batch_cache_validate (Lattice *lt)
 
void blender::draw::DRW_lattice_batch_cache_dirty_tag (Lattice *lt, int mode)
 
void blender::draw::DRW_lattice_batch_cache_free (Lattice *lt)
 
Lattice
blender::gpu::Batch * blender::draw::DRW_lattice_batch_cache_get_all_edges (Lattice *lt, bool use_weight, int actdef)
 
blender::gpu::Batch * blender::draw::DRW_lattice_batch_cache_get_all_verts (Lattice *lt)
 
blender::gpu::Batch * blender::draw::DRW_lattice_batch_cache_get_edit_verts (Lattice *lt)
 

Detailed Description

Lattice API for render engines.

Definition in file draw_cache_impl_lattice.cc.

Macro Definition Documentation

◆ LATT_INDEX

#define LATT_INDEX ( u,
v,
w )   ((((w) * rdata->dims.v_len + (v)) * rdata->dims.u_len) + (u))

◆ SELECT

#define SELECT   1

Definition at line 28 of file draw_cache_impl_lattice.cc.