Flutter Engine
The Flutter Engine
vertices.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_LIB_UI_PAINTING_VERTICES_H_
6#define FLUTTER_LIB_UI_PAINTING_VERTICES_H_
7
8#include "flutter/display_list/dl_vertices.h"
9#include "flutter/lib/ui/dart_wrapper.h"
12
13namespace flutter {
14
15class Vertices : public RefCountedDartWrappable<Vertices> {
16 DEFINE_WRAPPERTYPEINFO();
17 FML_FRIEND_MAKE_REF_COUNTED(Vertices);
18
19 public:
20 ~Vertices() override;
21
22 static bool init(Dart_Handle vertices_handle,
23 DlVertexMode vertex_mode,
24 Dart_Handle positions_handle,
25 Dart_Handle texture_coordinates_handle,
26 Dart_Handle colors_handle,
27 Dart_Handle indices_handle);
28
29 const DlVertices* vertices() const { return vertices_.get(); }
30
31 void dispose();
32
33 private:
34 Vertices();
35
36 std::shared_ptr<DlVertices> vertices_;
37};
38
39} // namespace flutter
40
41#endif // FLUTTER_LIB_UI_PAINTING_VERTICES_H_
Holds all of the data (both required and optional) for a DisplayList drawVertices call.
Definition: dl_vertices.h:71
~Vertices() override
Definition: vertices.cc:19
const DlVertices * vertices() const
Definition: vertices.h:29
static bool init(Dart_Handle vertices_handle, DlVertexMode vertex_mode, Dart_Handle positions_handle, Dart_Handle texture_coordinates_handle, Dart_Handle colors_handle, Dart_Handle indices_handle)
Definition: vertices.cc:21
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
DlVertexMode
Defines the way in which the vertices of a DlVertices object are separated into triangles into which ...
Definition: dl_vertices.h:20