summaryrefslogtreecommitdiffstats
path: root/graphics/src/triangle.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-05-28 01:37:59 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-05-28 01:40:30 +0200
commit2ca7e3c4b0cb293adebf9a9bf9a26191069d495d (patch)
tree653a1f24422079231ff5a9f0d868c7d117ca92ed /graphics/src/triangle.rs
parent45511a442f707e93fe6e568d2100756b63af7362 (diff)
downloadiced-2ca7e3c4b0cb293adebf9a9bf9a26191069d495d.tar.gz
iced-2ca7e3c4b0cb293adebf9a9bf9a26191069d495d.tar.bz2
iced-2ca7e3c4b0cb293adebf9a9bf9a26191069d495d.zip
Write documentation for `iced_graphics`
Diffstat (limited to 'graphics/src/triangle.rs')
-rw-r--r--graphics/src/triangle.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/src/triangle.rs b/graphics/src/triangle.rs
index 474f69b8..ce879ffc 100644
--- a/graphics/src/triangle.rs
+++ b/graphics/src/triangle.rs
@@ -1,3 +1,5 @@
+//! Draw geometry using meshes of triangles.
+
/// A set of [`Vertex2D`] and indices representing a list of triangles.
///
/// [`Vertex2D`]: struct.Vertex2D.html
@@ -23,5 +25,8 @@ pub struct Vertex2D {
pub color: [f32; 4],
}
+#[allow(unsafe_code)]
unsafe impl bytemuck::Zeroable for Vertex2D {}
+
+#[allow(unsafe_code)]
unsafe impl bytemuck::Pod for Vertex2D {}