Home
last modified time | relevance | path

Searched refs:node_props (Results 1 - 14 of 14) sorted by relevance

/foundation/graphic/graphic_3d/kits/js/src/
H A DGeometryJS.cpp54 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 DMeshJS.cpp40 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 DNodeJS.cpp23 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 DSubMeshJS.cpp43 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 DEnvironmentJS.cpp36 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 DPostProcJS.cpp39 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 DToneMapJS.cpp83 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 DCameraJS.cpp90 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 DMaterialJS.cpp31 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 DLightJS.cpp288 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 DShaderJS.cpp199 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 DAnimationJS.cpp52 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 DLightJS.h42 BASE_NS::vector<napi_property_descriptor>& node_props, napi_callback ctor);
/foundation/graphic/graphic_3d/kits/js/include/napi/
H A Dnapi_api.h959 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); \

Completed in 9 milliseconds