2022-11-27 18:10:11 +11:00
|
|
|
use librashader_common::{FilterMode, WrapMode};
|
|
|
|
use crate::GlImage;
|
|
|
|
|
|
|
|
#[derive(Default, Debug, Copy, Clone)]
|
|
|
|
pub struct Texture {
|
|
|
|
pub image: GlImage,
|
|
|
|
pub filter: FilterMode,
|
|
|
|
pub mip_filter: FilterMode,
|
|
|
|
pub wrap_mode: WrapMode,
|
|
|
|
}
|
2022-11-30 11:36:09 +11:00
|
|
|
|
|
|
|
impl Texture {
|
|
|
|
pub fn is_bound(&self) -> bool {
|
|
|
|
return self.image.handle != 0
|
|
|
|
}
|
|
|
|
}
|