move set/remove stencilHighlight to View and implement via OverlayManager
This commit is contained in:
34
thermion_dart/native/include/c_api/TOverlayManager.h
Normal file
34
thermion_dart/native/include/c_api/TOverlayManager.h
Normal 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
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user