193 return *
static_cast<T *
>(
object.data);
391 return g_context !=
nullptr;
Mesh * BKE_mesh_wrapper_ensure_subdivision(Mesh *mesh)
bool BKE_subsurf_modifier_has_gpu_subdiv(const Mesh *mesh)
Object is a sort of wrapper for general info.
const DRWContext * DRW_context_get()
bool DRW_object_is_in_edit_mode(const Object *ob)
blender::draw::TextureFromPool & DRW_viewport_pass_texture_get(const char *pass_name)
void DRW_render_to_image(RenderEngine *engine, Depsgraph *depsgraph, std::function< void(RenderEngine *, RenderLayer *, const rcti)> render_view_cb, std::function< void(RenderResult *)> store_metadata_cb)
bool DRW_object_use_hide_faces(const Object *ob)
bool DRW_object_is_renderable(const Object *ob)
T & DRW_object_get_data_for_drawing(const Object &object)
int DRW_object_visibility_in_active_context(const Object *ob)
void DRW_custom_pipeline_begin(DRWContext &draw_ctx, Depsgraph *depsgraph)
bool DRW_object_is_visible_psys_in_active_context(const Object *object, const ParticleSystem *psys)
const Mesh * DRW_object_get_editmesh_cage_for_drawing(const Object &object)
Mesh & DRW_mesh_get_for_drawing(Mesh &mesh)
void DRW_render_set_time(RenderEngine *engine, Depsgraph *depsgraph, int frame, float subframe)
void DRW_custom_pipeline_end(DRWContext &draw_ctx)
void DRW_viewport_request_redraw()
void DRW_render_object_iter(RenderEngine *engine, Depsgraph *depsgraph, std::function< void(blender::draw::ObjectRef &, RenderEngine *, Depsgraph *)>)
BMesh const char void * data
BPy_StructRNA * depsgraph
CCL_NAMESPACE_BEGIN struct Options options
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
bool is_image_render() const
DRWContext(Mode mode, Depsgraph *depsgraph, GPUViewport *viewport, const bContext *C=nullptr, ARegion *region=nullptr, View3D *v3d=nullptr)
DRWViewData * view_data_active
std::function< void(struct DupliCacheManager &, struct ExtractionGraph &)> iter_callback_t
GSet * delayed_extraction
void sync(iter_callback_t iter_callback)
DefaultFramebufferList * viewport_framebuffer_list_get() const
bool is_scene_render() const
DRWTextStore ** text_store_p
void enable_engines(bool gpencil_engine_needed=false, RenderEngineType *render_engine_type=nullptr)
static DRWContext & get_active()
enum DRWContext::Mode mode
blender::float2 viewport_size_get() const
void engines_draw_scene()
bool is_viewport_image_render() const
DRWContext(Mode mode, Depsgraph *depsgraph, const blender::int2 size={1, 1}, const bContext *C=nullptr, ARegion *region=nullptr, View3D *v3d=nullptr)
void engines_init_and_sync(iter_callback_t iter_callback)
bool is_transforming() const
blender::gpu::FrameBuffer * default_framebuffer()
DefaultTextureList * viewport_texture_list_get() const
void engines_data_validate()
bool is_navigating() const
bool is_viewport_compositor_enabled() const
bool is_material_select() const
virtual DrawEngine * create_instance()=0
virtual void begin_sync()=0
virtual void object_sync(blender::draw::ObjectRef &ob_ref, blender::draw::Manager &manager)=0
virtual void draw(blender::draw::Manager &manager)=0
static constexpr int GPU_INFO_SIZE
virtual blender::StringRefNull name_get()=0
virtual ~DrawEngine()=default
virtual void end_sync()=0