Struct gl_helpers::GLTexture
source · pub struct GLTexture { /* private fields */ }
Implementations
sourceimpl GLTexture
impl GLTexture
pub fn new_2d<T>(
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind,
filter: FilterMode,
wrap: Wrap,
generate_mipmap: bool,
data: &[T]
) -> Self
pub fn new_null_2d(
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind,
filter: FilterMode,
wrap: Wrap,
generate_mipmap: bool
) -> Self
pub fn resize_null_2d(&mut self, width: usize, height: usize) -> &Self
pub fn id(&self) -> GLuint
pub fn kind(&self) -> TextureKind
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn data_kind(&self) -> DataKind
pub fn format(&self) -> DataFormat
pub fn filter(&self) -> FilterMode
pub fn wrap(&self) -> Wrap
pub fn mipmap(&self) -> bool
pub fn bind(&self) -> &Self
pub fn unbind(&self) -> &Self
pub fn gl_wrap_filter_mipmap(
width: usize,
height: usize,
filter: FilterMode,
wrap: Wrap,
generate_mipmap: bool
) -> bool
pub fn gl_2d<T>(
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind,
data: &[T]
)
pub fn gl_null_2d(
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind
)
pub fn mag_filter_min_filter(
filter: FilterMode,
is_power_of_two: bool,
generate_mipmap: bool
) -> (GLuint, GLuint)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GLTexture
impl Send for GLTexture
impl Sync for GLTexture
impl Unpin for GLTexture
impl UnwindSafe for GLTexture
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more