Home
last modified time | relevance | path

Searched refs:vertices (Results 1 - 25 of 44) sorted by relevance

12

/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_util.cpp99 vector<Math::Vec3>& vertices; member
107 vector<Math::Vec3>& vertices = geometry.vertices; in GenerateCubeGeometry() local
112 vertices.reserve(countof(CUBE_INDICES)); in GenerateCubeGeometry()
125 vertices.emplace_back(v0.x * width, v0.y * height, v0.z * depth); in GenerateCubeGeometry()
126 vertices.emplace_back(v1.x * width, v1.y * height, v1.z * depth); in GenerateCubeGeometry()
127 vertices.emplace_back(v2.x * width, v2.y * height, v2.z * depth); in GenerateCubeGeometry()
147 vector<Math::Vec3>& vertices = geometry.vertices; in GenerateSphereGeometry() local
155 vertices in GenerateSphereGeometry()
198 vector<Math::Vec3>& vertices = geometry.vertices; GenerateConeCap() local
237 vector<Math::Vec3>& vertices = geometry.vertices; GenerateConeGeometry() local
309 vector<Math::Vec3>& vertices = geometry.vertices; GenerateTorusGeometry() local
529 vector<Math::Vec3> vertices; GenerateSphereMesh() local
565 vector<Math::Vec3> vertices; GenerateConeMesh() local
601 vector<Math::Vec3> vertices; GenerateTorusMesh() local
[all...]
/foundation/graphic/graphic_2d/rosen/samples/opengl/test_glCompressApi/entry/src/main/cpp/
H A Dtest_glCompressApi.cpp88 GLfloat vertices[] = { in TestGlCompressedTexImage2D() local
93 glVertexAttribPointer(0, INDEX_NUM, GL_FLOAT, GL_FALSE, STRIDE * sizeof(GLfloat), vertices); in TestGlCompressedTexImage2D()
95 glVertexAttribPointer(1, INDEX_NUM, GL_FLOAT, GL_FALSE, STRIDE * sizeof(GLfloat), vertices + INDEX_NUM); in TestGlCompressedTexImage2D()
123 GLfloat vertices[] = { in TestGlCompressedTexSubImage2D() local
128 glVertexAttribPointer(0, INDEX_NUM, GL_FLOAT, GL_FALSE, STRIDE * sizeof(GLfloat), vertices); in TestGlCompressedTexSubImage2D()
130 glVertexAttribPointer(1, INDEX_NUM, GL_FLOAT, GL_FALSE, STRIDE * sizeof(GLfloat), vertices + INDEX_NUM); in TestGlCompressedTexSubImage2D()
155 GLfloat vertices[] = { in TestGlCompressedTexImage3D() local
160 glVertexAttribPointer(0, INDEX_NUM, GL_FLOAT, GL_FALSE, STRIDE * sizeof(GLfloat), vertices); in TestGlCompressedTexImage3D()
162 glVertexAttribPointer(1, INDEX_NUM, GL_FLOAT, GL_FALSE, STRIDE * sizeof(GLfloat), vertices + INDEX_NUM); in TestGlCompressedTexImage3D()
189 GLfloat vertices[] in TestGlCompressedTexSubImage3D() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/shape/
H A Drosen_render_shape_container.h43 const float* vertices, const int* colors, const SkPaint* paint);
51 const float* vertices, const int* colors, const RSBrush* brush);
H A Drosen_render_shape_container.cpp268 SkBitmap& bitmap, int column, int row, const float* vertices, const int* colors, const SkPaint* paint) in DrawBitmapMesh()
271 RSBitmap& bitmap, int column, int row, const float* vertices, const int* colors, const RSBrush* brush) in DrawBitmapMesh()
282 if (memcpy_s(builder.positions(), vertCounts * sizeof(SkPoint), vertices, vertCounts * sizeof(SkPoint)) != 0) { in DrawBitmapMesh()
267 DrawBitmapMesh( SkBitmap& bitmap, int column, int row, const float* vertices, const int* colors, const SkPaint* paint) DrawBitmapMesh() argument
/foundation/arkui/ui_lite/frameworks/draw/
H A Dclip_utils.cpp97 UICanvasVertices& vertices = path.GetVertices(); in CloseVertices() local
98 vertices.ClosePolygon(); in CloseVertices()
99 return vertices; in CloseVertices()
107 UICanvasVertices& vertices = CloseVertices(path); in PerformScan() local
108 UICanvasPath canvasPath(vertices); in PerformScan()
H A Ddraw_canvas.h39 UICanvasVertices* vertices; member
75 static void SetRasterizer(UICanvasVertices& vertices,
H A Ddraw_canvas.cpp61 SetRasterizer(*pathParam->vertices, paint, rasterizer, transform, isStroke); in DoRender()
111 DrawCanvas::SetRasterizer(*pathParam->vertices, paint, rasterizer, transform, isStroke); in DoDrawShadow()
162 void DrawCanvas::SetRasterizer(UICanvasVertices& vertices, in SetRasterizer() argument
168 DepictCurve canvasPath(vertices); in SetRasterizer()
/foundation/multimodalinput/input/service/touch_event_normalize/src/
H A Dtouch_gesture_detector.cpp479 double **vertices = new (std::nothrow) double *[count]; in CalcGravityCenter() local
480 if (vertices == nullptr) { in CalcGravityCenter()
490 vertices[i] = new (std::nothrow) double[arrCount]; in CalcGravityCenter()
491 if (vertices[i] == nullptr) { in CalcGravityCenter()
495 vertices[i][0] = value.x; in CalcGravityCenter()
496 vertices[i][1] = value.y; in CalcGravityCenter()
500 double *current = vertices[j]; in CalcGravityCenter()
501 double *next = vertices[(j + 1) % count]; in CalcGravityCenter()
512 if (vertices[n] != nullptr) { in CalcGravityCenter()
513 delete[] vertices[ in CalcGravityCenter()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/
H A Dvertices.cpp16 #include "utils/vertices.h"
25 Vertices::Vertices(std::shared_ptr<VerticesImpl> vertices) noexcept
26 : verticesImplPtr_(vertices) {} in verticesImplPtr_()
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/
H A Dshadow2_demo.js166 let vertices = new Float32Array([
186 o.vertexBuffer = initArrayBuffer(gl, vertices, 3, gl.FLOAT);
261 let vertices = triangleVertices;
266 o.vertexBuffer = initArrayBuffer(gl, vertices, 3, gl.FLOAT); // vertexBuffer
H A Dpanorama2_demo.js54 let arr = new Float32Array(sphere.vertices);
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dshadow_demo.js164 let vertices = new Float32Array([
184 o.vertexBuffer = initArrayBuffer(gl, vertices, 3, gl.FLOAT);
259 let vertices = triangleVertices;
264 o.vertexBuffer = initArrayBuffer(gl, vertices, 3, gl.FLOAT); // vertexBuffer
H A Dpanorama_demo.js51 let arr = new Float32Array(sphere.vertices);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_vertices.cpp32 SkiaVertices::SkiaVertices(sk_sp<SkVertices> vertices) noexcept : skiaVertices_(vertices) {} in skiaVertices_()
H A Dskia_vertices.h30 explicit SkiaVertices(sk_sp<SkVertices> vertices) noexcept;
H A Dskia_canvas_autocache.cpp457 /* vertices not null, SkCanvas::drawVertices() will RETURN_ON_NULL(vertices) */
458 void SkiaCanvasAutoCache::onDrawVerticesObject(const SkVertices* vertices, in onDrawVerticesObject() argument
463 if (!BlendModeCanCache(bmode) || !RecordDrawArea(vertices->bounds(), realPaint)) { in onDrawVerticesObject()
467 this->SkNWayCanvas::onDrawVerticesObject(vertices, bmode, paint); in onDrawVerticesObject()
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dmesh_arrays.h23 BASE_NS::vector<BASE_NS::Math::Vec3> vertices;
/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/
H A Drosen_render_custom_paint.h56 const float* vertices, const int* colors, const SkPaint* paint);
59 const float* vertices, const int* colors, const RSBrush* brush);
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/transaction/
H A Drs_marshalling_test.cpp28 #include "utils/vertices.h"
169 std::shared_ptr<Drawing::Vertices> vertices; in HWTEST_F() local
170 TestNullptrObjectSerialization(vertices); in HWTEST_F()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/canvas_napi/
H A Djs_canvas.cpp36 #include "utils/vertices.h"
176 float* vertices, uint32_t* colors, Drawing::Canvas* m_canvas) in DrawingPixelMapMesh()
187 vertices, vertCounts * sizeof(Drawing::Point)) != 0) { in DrawingPixelMapMesh()
1186 ROSEN_LOGE("JsCanvas::OnDrawPixelMapMesh vertices are invalid"); in OnDrawPixelMapMesh()
1190 auto vertices = new (std::nothrow) float[verticesSize]; in OnDrawPixelMapMesh() local
1191 if (!vertices) { in OnDrawPixelMapMesh()
1192 ROSEN_LOGE("JsCanvas::OnDrawPixelMapMesh create array with size of vertices failed"); in OnDrawPixelMapMesh()
1193 return NapiThrowError(env, DrawingErrorCode::ERROR_INVALID_PARAM, "Size of vertices exceed memory limit."); in OnDrawPixelMapMesh()
1202 delete []vertices; in OnDrawPixelMapMesh()
1206 vertices[ in OnDrawPixelMapMesh()
175 DrawingPixelMapMesh(std::shared_ptr<Media::PixelMap> pixelMap, int column, int row, float* vertices, uint32_t* colors, Drawing::Canvas* m_canvas) DrawingPixelMapMesh() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_canvas.cpp293 // 3 means the minimum number of vertices required for a triangle in OH_Drawing_CanvasDrawVertices()
337 Vertices* vertices = new Vertices(); in OH_Drawing_CanvasDrawVertices() local
338 bool result = vertices->MakeCopy(static_cast<VertexMode>(vertexMode), vertexCount, positionsPoint, in OH_Drawing_CanvasDrawVertices()
341 canvas->DrawVertices(*vertices, static_cast<BlendMode>(mode)); in OH_Drawing_CanvasDrawVertices()
343 delete vertices; in OH_Drawing_CanvasDrawVertices()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Dcmd_list_helper.cpp79 OpDataHandle CmdListHelper::AddVerticesToCmdList(CmdList& cmdList, const Vertices& vertices) in AddVerticesToCmdList() argument
81 auto data = vertices.Serialize(); in AddVerticesToCmdList()
83 LOGD("vertices is valid!"); in AddVerticesToCmdList()
100 LOGD("get vertices data failed!"); in GetVerticesFromCmdList()
106 auto vertices = std::make_shared<Vertices>(); in GetVerticesFromCmdList() local
107 if (vertices->Deserialize(verticesData) == false) { in GetVerticesFromCmdList()
108 LOGD("vertices deserialize failed!"); in GetVerticesFromCmdList()
111 return vertices; in GetVerticesFromCmdList()
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/gltf/
H A Dgltf.h211 uint32_t vertices; member
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/loaders/
H A Dintf_scene_loader.h135 uint32_t vertices; member
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_canvas.cpp303 if (pathParam->vertices != nullptr) { in DeletePathParam()
304 pathParam->vertices->FreeAll(); in DeletePathParam()
305 pathParam->vertices = nullptr; in DeletePathParam()
779 pathParam->vertices = vertices_; in DrawPath()
835 pathParam->vertices = vertices_; in FillPath()
987 DrawCanvas::SetRasterizer(*pathParamBlend->vertices, drawCmd.paint, blendRasterizer, transform, in OnBlendDraw()
1015 DrawCanvas::SetRasterizer(*pathParam->vertices, curDraw->data_.paint, rasterizer, transform, in OnBlendDraw()

Completed in 21 milliseconds

12