Home
last modified time | relevance | path

Searched refs:gl (Results 1 - 25 of 27) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/
H A Dpanorama2_demo.js51 export async function panorama2Demo(gl) {
52 let program = createProgram(gl, VSCODE, FSCODE, ['a_Position', 'a_TexCoord'], ['u_MvpMatrix', 'u_ModelMatrix', 'u_Sampler']);
57 let buffer = gl.createBuffer(); //创建缓冲区
58 gl.bindBuffer(gl.ARRAY_BUFFER, buffer); //绑定缓冲区
59 gl.bufferData(gl.ARRAY_BUFFER, arr, gl.STATIC_DRAW); //将数据写入缓冲区对象
60 gl.vertexAttribPointer(program.a_Position, 3, gl
[all...]
H A Dshadow2_demo.js77 export async function shadow2Demo(gl) {
80 let shadowProgram = createProgram(gl, SHADOW_VS_CODE, SHADOW_FS_CODE, ['a_Position'], ['umvpMatrix']);
81 let program = createProgram(gl, NORMAL_VS_CODE, NORMAL_FS_CODE, ['a_Position', 'a_Color', 'a_TexCoord'], ['umvpMatrix', 'umvpMatrixFromLight', 'u_ShadowMap', 'u_Sampler']);
82 let triangle = initVertexBuffersTriangle(gl);
83 let plane = initVertexBuffersPlane(gl);
84 let fbo = initFramebuffer(gl);
85 gl.activeTexture(gl.TEXTURE0);
86 gl.bindTexture(gl
[all...]
H A Dcube2_demo.js113 export async function cube2Demo(gl) {
114 let program = createProgram(gl, vSource, fSource, ['a_Position', 'a_TexCoord', 'a_Normal'], ['a_Matrix', 'u_NormalMatrix', 'u_Sampler']);
115 let buffer = gl.createBuffer();
119 gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
120 gl.bufferData(gl.ARRAY_BUFFER, source, gl.STATIC_DRAW);
121 gl.vertexAttribPointer(program.a_Position, 3, gl
[all...]
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dpanorama_demo.js48 export async function panoramaDemo(gl) {
49 let program = createProgram(gl, VSCODE, FSCODE, ['a_Position', 'a_TexCoord'], ['u_MvpMatrix', 'u_ModelMatrix', 'u_Sampler']);
54 let buffer = gl.createBuffer(); //创建缓冲区
55 gl.bindBuffer(gl.ARRAY_BUFFER, buffer); //绑定缓冲区
56 gl.bufferData(gl.ARRAY_BUFFER, arr, gl.STATIC_DRAW); //将数据写入缓冲区对象
57 gl.vertexAttribPointer(program.a_Position, 3, gl
[all...]
H A Dshadow_demo.js75 export async function shadowDemo(gl) {
78 let shadowProgram = createProgram(gl, SHADOW_VS_CODE, SHADOW_FS_CODE, ['a_Position'], ['u_MvpMatrix']);
79 let program = createProgram(gl, NORMAL_VS_CODE, NORMAL_FS_CODE, ['a_Position', 'a_Color', 'a_TexCoord'], ['u_MvpMatrix', 'u_MvpMatrixFromLight', 'u_ShadowMap', 'u_Sampler']);
80 let triangle = initVertexBuffersTriangle(gl);
81 let plane = initVertexBuffersPlane(gl);
82 let fbo = initFramebuffer(gl);
83 gl.activeTexture(gl.TEXTURE0);
84 gl.bindTexture(gl
[all...]
H A Dcube_demo.js113 export async function cubeDemo(gl) {
114 let program = createProgram(gl, vSource, fSource, ['a_Position', 'a_TexCoord', 'a_Normal'], ['a_Matrix', 'u_NormalMatrix', 'u_Sampler']);
115 let buffer = gl.createBuffer();
119 gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
120 gl.bufferData(gl.ARRAY_BUFFER, source, gl.STATIC_DRAW);
121 gl.vertexAttribPointer(program.a_Position, 3, gl
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_brdf_common.h131 const float gl = NoL + sqrt((NoL - NoL * alpha2) * NoL + alpha2); in vGGXWithCombinedDenominator() local
132 return min(1.0 / (gv * gl), CORE_HDR_FLOAT_CLAMP_MAX_VALUE); in vGGXWithCombinedDenominator()
146 float gl = NoV * length(vec3(at * ToL, ab * BoL, NoL)); in vGGXAnisotropic() local
147 float v = 0.5 / (gv + gl); in vGGXAnisotropic()
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/
H A Degl.cpp54 OHOS::ThreadPrivateDataCtl::SetGlHookTable(&OHOS::gWrapperHook.gl); in GetHookTable()
55 return &OHOS::gWrapperHook.gl; in GetHookTable()
H A Degl_wrapper_loader.cpp168 dlGlHandle1_ = LoadGl(LIB_GLESV1_NAME, gGlApiNames1, (FunctionPointerType *)&table->gl.table1); in LoadVendorDriver()
175 dlGlHandle2_ = LoadGl(LIB_GLESV2_NAME, gGlApiNames2, (FunctionPointerType *)&table->gl.table2); in LoadVendorDriver()
182 dlGlHandle3_ = LoadGl(LIB_GLESV3_NAME, gGlApiNames3, (FunctionPointerType *)&table->gl.table3); in LoadVendorDriver()
H A Degl_wrapper_layer.cpp239 curr = reinterpret_cast<EglWrapperFuncPointer*>(&table->gl.table2); in SetupLayerFuncTbl()
243 curr = reinterpret_cast<EglWrapperFuncPointer*>(&table->gl.table3); in SetupLayerFuncTbl()
256 curr = reinterpret_cast<EglWrapperFuncPointer*>(&table->gl.table2); in SetupLayerFuncTbl()
261 curr = reinterpret_cast<EglWrapperFuncPointer*>(&table->gl.table3); in SetupLayerFuncTbl()
H A Degl_defs.h28 GlHookTable gl; member
/foundation/graphic/graphic_3d/3d_widget_adapter/include/ohos/
H A Dgraphics_manager.h20 #include <GLES/gl.h>
/foundation/graphic/graphic_3d/3d_widget_adapter/include/
H A Doffscreen_context_helper.h20 #include <GLES/gl.h>
H A Dwidget_adapter.h21 #include <GLES/gl.h>
H A Di_engine.h24 #include <GLES/gl.h>
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/include/
H A Dhook.h25 #include <GLES/gl.h>
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/
H A Db_dir.cpp174 unique_ptr<glob_t, function<void(glob_t *)>> gl {new glob_t, [](glob_t *ptr) { globfree(ptr); }}; in ExpandPathWildcard()
175 *gl = {}; in ExpandPathWildcard()
180 glob(pattern.data(), static_cast<int>(flags), NULL, gl.get()); in ExpandPathWildcard()
186 for (size_t i = 0; i < gl->gl_pathc; ++i) { in ExpandPathWildcard()
187 expandPath.emplace(gl->gl_pathv[i]); in ExpandPathWildcard()
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/test/unittest/
H A Degl_wrapper_loader_test.cpp192 gGlApiNames1, (FunctionPointerType *)&dispatchTable.gl.table1); in HWTEST_F()
224 gGlApiNames1, (FunctionPointerType *)&dispatchTable.gl.table1); in HWTEST_F()
/foundation/graphic/graphic_3d/3d_widget_adapter/src/
H A Doffscreen_context_helper.cpp19 #include <GLES/gl.h>
/foundation/graphic/graphic_2d/frameworks/surfaceimage/include/
H A Dsurface_image.h25 #include <GLES/gl.h>
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dgl_functions.h71 #include <gl/glcorearb.h>
72 #include <gl/glext.h>
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/
H A Drs_surface_windows.cpp20 #include <include/gpu/gl/GrGLInterface.h>
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/
H A Drs_surface_darwin.cpp20 #include <include/gpu/gl/GrGLInterface.h>
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/
H A Drs_draw_cmd.h20 #include <GLES/gl.h>
/foundation/graphic/graphic_2d/frameworks/surfaceimage/src/
H A Dsurface_image.cpp33 #include <GLES/gl.h>

Completed in 9 milliseconds

12