/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/ |
H A D | panorama2_demo.js | 51 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 D | shadow2_demo.js | 77 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 D | cube2_demo.js | 113 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 D | panorama_demo.js | 48 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 D | shadow_demo.js | 75 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 D | cube_demo.js | 113 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 D | 3d_dm_brdf_common.h | 131 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 D | egl.cpp | 54 OHOS::ThreadPrivateDataCtl::SetGlHookTable(&OHOS::gWrapperHook.gl); in GetHookTable() 55 return &OHOS::gWrapperHook.gl; in GetHookTable()
|
H A D | egl_wrapper_loader.cpp | 168 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 D | egl_wrapper_layer.cpp | 239 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 D | egl_defs.h | 28 GlHookTable gl; member
|
/foundation/graphic/graphic_3d/3d_widget_adapter/include/ohos/ |
H A D | graphics_manager.h | 20 #include <GLES/gl.h>
|
/foundation/graphic/graphic_3d/3d_widget_adapter/include/ |
H A D | offscreen_context_helper.h | 20 #include <GLES/gl.h>
|
H A D | widget_adapter.h | 21 #include <GLES/gl.h>
|
H A D | i_engine.h | 24 #include <GLES/gl.h>
|
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/include/ |
H A D | hook.h | 25 #include <GLES/gl.h>
|
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/ |
H A D | b_dir.cpp | 174 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 D | egl_wrapper_loader_test.cpp | 192 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 D | offscreen_context_helper.cpp | 19 #include <GLES/gl.h>
|
/foundation/graphic/graphic_2d/frameworks/surfaceimage/include/ |
H A D | surface_image.h | 25 #include <GLES/gl.h>
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | gl_functions.h | 71 #include <gl/glcorearb.h> 72 #include <gl/glext.h>
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/ |
H A D | rs_surface_windows.cpp | 20 #include <include/gpu/gl/GrGLInterface.h>
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/ |
H A D | rs_surface_darwin.cpp | 20 #include <include/gpu/gl/GrGLInterface.h>
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/ |
H A D | rs_draw_cmd.h | 20 #include <GLES/gl.h>
|
/foundation/graphic/graphic_2d/frameworks/surfaceimage/src/ |
H A D | surface_image.cpp | 33 #include <GLES/gl.h>
|