diff options
| author | LLLL Colonq <llll@colonq> | 2024-06-11 01:48:31 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2024-06-11 01:48:31 -0400 |
| commit | 593d75fa14516119bb14762daedd6ae49e0824b1 (patch) | |
| tree | 1dae931b391541a1fbd6daff315695c59f83f227 | |
| parent | 6baca14ec9b70f1ffcdd6c456cf798f0f0f1e57b (diff) | |
Fix Cardinal::angle
| -rw-r--r-- | src/context.rs | 2 | ||||
| -rw-r--r-- | src/utils.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/context.rs b/src/context.rs index db402a8..7dca01f 100644 --- a/src/context.rs +++ b/src/context.rs @@ -61,7 +61,7 @@ impl Context { gl.enable(glow::STENCIL_TEST); - gl.cull_face(glow::BACK); + gl.cull_face(glow::FRONT); } let emptyvao = unsafe { diff --git a/src/utils.rs b/src/utils.rs index e0a0e29..bd435af 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Debug, PartialEq, Eq, Hash)] +#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum Cardinal { North, South, @@ -47,8 +47,8 @@ impl Cardinal { match self { Self::North => 0.0, Self::South => std::f32::consts::PI, - Self::West => 3.0 * std::f32::consts::PI / 2.0, - Self::East => std::f32::consts::PI / 2.0, + Self::West => std::f32::consts::PI / 2.0, + Self::East => 3.0 * std::f32::consts::PI / 2.0, } } } |
