diff options
| -rw-r--r-- | crates/teleia/src/context.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/teleia/src/context.rs b/crates/teleia/src/context.rs index 42ab6d8..28ca2bf 100644 --- a/crates/teleia/src/context.rs +++ b/crates/teleia/src/context.rs @@ -231,6 +231,17 @@ impl Context { } } + pub fn flip_colors_blend(&self) { + unsafe { + self.gl.blend_func_separate( + glow::ONE_MINUS_DST_COLOR, + glow::ZERO, + glow::ZERO, + glow::ONE, + ); + } + } + pub fn enable_culling(&self) { unsafe { self.gl.enable(glow::CULL_FACE); |
