/foundation/graphic/graphic_3d/kits/js/src/ |
H A D | GeometryJS.cpp | 54 BASE_NS::vector<napi_property_descriptor> node_props;
in Init() local 55 NodeImpl::GetPropertyDescs(node_props);
in Init() 58 node_props.push_back(GetProperty<Object, GeometryJS, &GeometryJS::GetMesh>("mesh"));
in Init() 62 node_props.size(), node_props.data(), &func);
in Init()
|
H A D | MeshJS.cpp | 40 BASE_NS::vector<napi_property_descriptor> node_props; in Init() local 41 SceneResourceImpl::GetPropertyDescs(node_props); in Init() 44 node_props.push_back(GetProperty<Object, MeshJS, &MeshJS::GetSubmesh>("subMeshes")); in Init() 45 node_props.push_back(GetProperty<Object, MeshJS, &MeshJS::GetAABB>("aabb")); in Init() 46 node_props.push_back( in Init() 51 node_props.size(), node_props.data(), &func); in Init()
|
H A D | NodeJS.cpp | 23 BASE_NS::vector<napi_property_descriptor> node_props;
in Init() local 24 NodeImpl::GetPropertyDescs(node_props);
in Init() 28 node_props.size(), node_props.data(), &func);
in Init()
|
H A D | SubMeshJS.cpp | 43 BASE_NS::vector<napi_property_descriptor> node_props;
in Init() local 46 node_props.push_back(GetSetProperty<BASE_NS::string, SubMeshJS, &SubMeshJS::GetName, &SubMeshJS::SetName>("name"));
in Init() 47 node_props.push_back(GetProperty<Object, SubMeshJS, &SubMeshJS::GetAABB>("aabb"));
in Init() 48 node_props.push_back(
in Init() 53 node_props.size(), node_props.data(), &func);
in Init()
|
H A D | EnvironmentJS.cpp | 36 BASE_NS::vector<napi_property_descriptor> node_props; in Init() 37 SceneResourceImpl::GetPropertyDescs(node_props); in Init() 40 node_props.emplace_back(GetSetProperty<uint32_t, EnvironmentJS, &EnvironmentJS::GetBackgroundType, in Init() 42 node_props.emplace_back(GetSetProperty<Object, EnvironmentJS, &EnvironmentJS::GetEnvironmentImage, in Init() 44 node_props.emplace_back(GetSetProperty<Object, EnvironmentJS, &EnvironmentJS::GetRadianceImage, in Init() 46 node_props.emplace_back(GetSetProperty<NapiApi::Array, EnvironmentJS, &EnvironmentJS::GetIrradianceCoefficients, in Init() 48 node_props.emplace_back(GetSetProperty<Object, EnvironmentJS, &EnvironmentJS::GetIndirectDiffuseFactor, in Init() 50 node_props.emplace_back(GetSetProperty<Object, EnvironmentJS, &EnvironmentJS::GetIndirectSpecularFactor, in Init() 52 node_props.emplace_back(GetSetProperty<Object, EnvironmentJS, &EnvironmentJS::GetEnvironmentMapFactor, in Init() 59 node_props in Init() [all...] |
H A D | PostProcJS.cpp | 39 BASE_NS::vector<napi_property_descriptor> node_props;
in Init() 42 node_props.push_back(GetSetProperty<bool, PostProcJS, &PostProcJS::GetBloom, &PostProcJS::SetBloom>("bloom"));
in Init() 43 node_props.emplace_back(GetSetProperty<Object, PostProcJS, &PostProcJS::GetToneMapping,
in Init() 45 node_props.push_back(MakeTROMethod<NapiApi::FunctionContext<>, PostProcJS, &PostProcJS::Dispose>("destroy"));
in Init() 51 nullptr, node_props.size(), node_props.data(), &func);
in Init()
|
H A D | ToneMapJS.cpp | 83 BASE_NS::vector<napi_property_descriptor> node_props; in Init() 85 node_props.emplace_back(GetSetProperty<uint32_t, ToneMapJS, &ToneMapJS::GetType, &ToneMapJS::SetType>("type")); in Init() 86 node_props.emplace_back(GetSetProperty<float, ToneMapJS, &ToneMapJS::GetExposure, in Init() 88 node_props.push_back(MakeTROMethod<NapiApi::FunctionContext<>, ToneMapJS, &ToneMapJS::Dispose>("destroy")); in Init() 93 nullptr, node_props.size(), node_props.data(), &func); in Init()
|
H A D | CameraJS.cpp | 90 BASE_NS::vector<napi_property_descriptor> node_props; in Init() local 91 NodeImpl::GetPropertyDescs(node_props); in Init() 94 node_props.push_back(GetSetProperty<float, CameraJS, &CameraJS::GetFov, &CameraJS::SetFov>("fov")); in Init() 95 node_props.push_back(GetSetProperty<float, CameraJS, &CameraJS::GetNear, &CameraJS::SetNear>("nearPlane")); in Init() 96 node_props.push_back(GetSetProperty<float, CameraJS, &CameraJS::GetFar, &CameraJS::SetFar>("farPlane")); in Init() 97 node_props.push_back(GetSetProperty<bool, CameraJS, &CameraJS::GetEnabled, &CameraJS::SetEnabled>("enabled")); in Init() 98 node_props.push_back(GetSetProperty<bool, CameraJS, &CameraJS::GetMSAA, &CameraJS::SetMSAA>("msaa")); in Init() 99 node_props.push_back( in Init() 101 node_props.push_back(GetSetProperty<Object, CameraJS, &CameraJS::GetColor, &CameraJS::SetColor>("clearColor")); in Init() 105 node_props in Init() [all...] |
H A D | MaterialJS.cpp | 31 BASE_NS::vector<napi_property_descriptor>& node_props) in Init() 33 SceneResourceImpl::GetPropertyDescs(node_props); in Init() 36 node_props.push_back(TROGetProperty<float, BaseMaterial, &BaseMaterial::GetMaterialType>("materialType")); in Init() 40 env, class_name, NAPI_AUTO_LENGTH, ctor, nullptr, node_props.size(), node_props.data(), &func); in Init() 30 Init(const char* class_name, napi_env env, napi_value exports, napi_callback ctor, BASE_NS::vector<napi_property_descriptor>& node_props) Init() argument
|
H A D | LightJS.cpp | 288 BASE_NS::vector<napi_property_descriptor> node_props; in Init() local 290 BaseLight::Init("SpotLight", env, exports, node_props, BaseObject::ctor<SpotLightJS>()); in Init() 333 BASE_NS::vector<napi_property_descriptor> node_props; in Init() local 334 BaseLight::Init("PointLight", env, exports, node_props, BaseObject::ctor<PointLightJS>()); in Init() 363 BASE_NS::vector<napi_property_descriptor> node_props; in Init() local 364 node_props.push_back( in Init() 367 BaseLight::Init("DirectionalLight", env, exports, node_props, BaseObject::ctor<DirectionalLightJS>()); in Init()
|
H A D | ShaderJS.cpp | 199 BASE_NS::vector<napi_property_descriptor> node_props; in Init() 201 SceneResourceImpl::GetPropertyDescs(node_props); in Init() 205 node_props.size(), node_props.data(), &func); in Init()
|
H A D | AnimationJS.cpp | 52 BASE_NS::vector<napi_property_descriptor> node_props; in Init() local 53 SceneResourceImpl::GetPropertyDescs(node_props); in Init()
|
/foundation/graphic/graphic_3d/kits/js/include/ |
H A D | LightJS.h | 42 BASE_NS::vector<napi_property_descriptor>& node_props, napi_callback ctor);
|
/foundation/graphic/graphic_3d/kits/js/include/napi/ |
H A D | napi_api.h | 959 node_props.push_back(NapiApi::GetProperty<type, NAPI_API_CLASS_NAME, &NAPI_API_CLASS_NAME::getter>(name)); 961 node_props.push_back(NapiApi::SetProperty<type, NAPI_API_CLASS_NAME, &NAPI_API_CLASS_NAME::setter>(name)); 963 node_props.push_back(NapiApi::GetSetProperty<type, NAPI_API_CLASS_NAME, &NAPI_API_CLASS_NAME::getter, \ 966 node_props.push_back( \ 973 BaseObject::ctor<NAPI_API_CLASS_NAME>(), nullptr, node_props.size(), node_props.data(), &func); \
|