move set/remove stencilHighlight to View and implement via OverlayManager

This commit is contained in:
Nick Fisher
2025-07-01 10:13:47 +08:00
parent 96ef070be7
commit 0f9d2492e6
11 changed files with 382 additions and 140 deletions

View File

@@ -0,0 +1,34 @@
#pragma once
#include "APIExport.h"
#include "APIBoundaryTypes.h"
#ifdef __cplusplus
extern "C"
{
#endif
EMSCRIPTEN_KEEPALIVE TOverlayManager *OverlayManager_create(
TEngine *tEngine,
TRenderer *tRenderer,
TView *tView,
TScene *tScene,
TRenderTarget *tRenderTarget
);
EMSCRIPTEN_KEEPALIVE void OverlayManager_addComponent(
TOverlayManager *tOverlayManager,
EntityId entityId,
TMaterialInstance *tMaterialInstance
);
EMSCRIPTEN_KEEPALIVE void OverlayManager_removeComponent(
TOverlayManager *tOverlayManager,
EntityId entityId
);
#ifdef __cplusplus
}
#endif

View File

@@ -92,6 +92,7 @@ EMSCRIPTEN_KEEPALIVE void View_setFogOptions(TView *tView, TFogOptions tFogOptio
typedef void (*PickCallback)(uint32_t requestId, EntityId entityId, float depth, float fragX, float fragY, float fragZ);
EMSCRIPTEN_KEEPALIVE void View_pick(TView* tView, uint32_t requestId, uint32_t x, uint32_t y, PickCallback callback);
EMSCRIPTEN_KEEPALIVE void View_setName(TView* tView, const char *name);
#ifdef __cplusplus
}