Blender V5.0
external_engine.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2017 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DRW_render.hh"
12
13struct RenderEngineType;
14
16
17/* Check whether an external engine is to be used to draw content of an image editor.
18 * If the drawing is possible, the render engine is "acquired" so that it is not freed by the
19 * render engine for until drawing is finished.
20 *
21 * NOTE: Released by the draw engine when it is done drawing. */
23
25
26struct Engine : public DrawEngine::Pointer {
28};
29
30} // namespace blender::draw::external
RenderEngineType DRW_engine_viewport_external_type
bool DRW_engine_external_acquire_for_image_editor(const DRWContext *draw_ctx)
DrawEngine * create_instance() final