Files
workinf_Blender_Wasm/blender-5.2.0/source/blender/windowmanager/wm_draw.hh
mes123456 f3e21c6b98
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 11:18:01 +08:00

44 lines
891 B
C++

/* SPDX-FileCopyrightText: 2007 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup wm
*/
#pragma once
namespace blender {
struct ARegion;
struct GPUOffScreen;
namespace gpu {
class Texture;
}
struct GPUViewport;
struct ScrArea;
struct bContext;
struct wmWindow;
struct wmDrawBuffer {
GPUOffScreen *offscreen;
GPUViewport *viewport;
bool stereo;
int bound_view;
#ifdef __EMSCRIPTEN__
/* Live attachment storage does not imply a completed native editor image. */
bool draw_incomplete;
#endif
};
/* `wm_draw.cc` */
void wm_draw_update(bContext *C);
void wm_draw_region_clear(wmWindow *win, ARegion *region);
void wm_draw_region_blend(ARegion *region, int view, bool blend);
void wm_draw_region_test(bContext *C, ScrArea *area, ARegion *region);
gpu::Texture *wm_draw_region_texture(ARegion *region, int view);
} // namespace blender