Add Chromium-only Blender WebEngine parity work

This commit is contained in:
mes123456
2026-08-12 04:47:48 -04:00
commit 9fd26010f6
18225 changed files with 11622124 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#include <cstdio>
#include "web_engine_api.h"
int main()
{
const int handle = web_engine_create();
const int open_result = web_engine_open_blend(handle, nullptr, 0);
const int command_result = web_engine_apply_command(handle, nullptr, 0);
const uint32_t live_before_destroy = web_engine_get_live_handles();
web_engine_destroy(handle);
const uint32_t live_after_destroy = web_engine_get_live_handles();
std::printf("{\"handle\":%d,\"open\":%d,\"command\":%d,\"liveBeforeDestroy\":%u,\"liveAfterDestroy\":%u}\n",
handle,
open_result,
command_result,
live_before_destroy,
live_after_destroy);
return handle == 1 && open_result == -2 && command_result == -2 && live_before_destroy == 1 &&
live_after_destroy == 0 ?
0 :
1;
}