// // Created on 2026/3/6. // // Node APIs are not fully supported. To solve the compilation error of the interface cannot be found, // please include "napi/native_api.h". #ifndef OPENCAX_VIEW_H #define OPENCAX_VIEW_H #include "../Context/V3dCtx.h" #include "NativeEGLOCCT/common.h" #include #include #include #include namespace NativeNXEA{ class V3dView{ public: V3dView(); ~V3dView(); bool InitV3dView(Handle(V3d_Viewer)& viewer,EGLContext ctx,Handle(Aspect_NeutralWindow)& win); void InitViewOption(); void SetClearColor(float r, float g, float b, float a); void MustBeResized(); void Redraw(); void ResetView(); public: Handle(V3d_View) view; Quantity_Color clearColor; }; } #endif //OPENCAX_VIEW_H