1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Derive PartialEq for Vertex, Mesh, Row, Galley and Shape

This commit is contained in:
Emil Ernerfeldt
2021-03-13 12:58:17 +01:00
parent 6442d254a6
commit 30885b85f9
3 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ use emath::*;
///
/// Should be friendly to send to GPU as is.
#[repr(C)]
#[derive(Clone, Copy, Debug, Default)]
#[derive(Clone, Copy, Debug, Default, PartialEq)]
pub struct Vertex {
/// Logical pixel coordinates (points).
/// (0,0) is the top left corner of the screen.
@@ -21,7 +21,7 @@ pub struct Vertex {
}
/// Textured triangles in two dimensions.
#[derive(Clone, Debug, Default)]
#[derive(Clone, Debug, Default, PartialEq)]
pub struct Mesh {
/// Draw as triangles (i.e. the length is always multiple of three).
///