Deprecate ClearState
@@ -25,6 +25,7 @@ use crate::core::*;
/// [RenderTarget] or the [Screen].
/// If `None` then the channel is not cleared and if `Some(value)` the channel is cleared to that value (the value must be between 0 and 1).
///
+#[deprecated]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct ClearState {
/// Defines the clear value for the red channel.
@@ -39,6 +40,7 @@ pub struct ClearState {
pub depth: Option<f32>,
}
+#[allow(deprecated)]
impl ClearState {
///
/// Nothing will be cleared.
@@ -93,6 +95,7 @@ impl ClearState {
}
}
+#[allow(deprecated)]
impl Default for ClearState {
fn default() -> Self {
Self::color_and_depth(0.0, 0.0, 0.0, 1.0, 1.0)
@@ -125,6 +128,7 @@ pub(in crate::core) fn new_framebuffer(
}
}
+#[allow(deprecated)]
fn clear(context: &Context, clear_state: &ClearState) {
Program::set_write_mask(
context,
