diff options
author | 2020-01-02 19:25:00 +0100 | |
---|---|---|
committer | 2020-01-02 19:25:00 +0100 | |
commit | 5ca98b113e49bfb2372b245a985f957611a0a1ac (patch) | |
tree | 9ea3df7f17b02e9e63914c7d7788082edae3f883 /core/src/geometry.rs | |
parent | 0d620b7701f427ed0091f3640ab9ca0e116eb412 (diff) | |
download | iced-5ca98b113e49bfb2372b245a985f957611a0a1ac.tar.gz iced-5ca98b113e49bfb2372b245a985f957611a0a1ac.tar.bz2 iced-5ca98b113e49bfb2372b245a985f957611a0a1ac.zip |
Rename `Geometry2D` to `Mesh2D` and move it to `iced_wgpu`
Diffstat (limited to 'core/src/geometry.rs')
-rw-r--r-- | core/src/geometry.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/core/src/geometry.rs b/core/src/geometry.rs deleted file mode 100644 index f04ce42e..00000000 --- a/core/src/geometry.rs +++ /dev/null @@ -1,20 +0,0 @@ -/// A two-dimensional vertex which has a color -#[repr(C)] -#[derive(Copy, Clone, Debug)] -pub struct Vertex2D { - /// The vertex position - pub position: [f32; 2], - /// The vertex color in rgba - pub color: [f32; 4], -} - -/// A set of [`Vertex2D`] and indices for drawing some 2D geometry on the GPU. -/// -/// [`Vertex2D`]: struct.Vertex2D.html -#[derive(Clone, Debug)] -pub struct Geometry2D { - /// The vertices for this geometry - pub vertices: Vec<Vertex2D>, - /// The indices for this geometry - pub indices: Vec<u16>, -} |