pub struct Ktx1<'a, 'b: 'a> { /* private fields */ }
Expand description
KTX1-specific Texture
functionality.
Implementations§
Source§impl<'a, 'b: 'a> Ktx1<'a, 'b>
impl<'a, 'b: 'a> Ktx1<'a, 'b>
Sourcepub fn handle(&self) -> *mut ktxTexture1
pub fn handle(&self) -> *mut ktxTexture1
Returns a pointer to the underlying (C-allocated) sys::ktxTexture1
.
SAFETY: Pointers are harmless. Dereferencing them is not!
Sourcepub fn gl_format(&self) -> u32
pub fn gl_format(&self) -> u32
Returns the OpenGL format of the texture’s data (e.g. GL_RGBA
).
Also see Self::gl_internal_format
, Self::gl_base_internal_format
.
Sourcepub fn gl_internal_format(&self) -> u32
pub fn gl_internal_format(&self) -> u32
Returns the OpenGL format of the texture’s data (e.g. GL_RGBA
).
Also see Self::gl_format
, Self::gl_base_internal_format
.
Sourcepub fn gl_base_internal_format(&self) -> u32
pub fn gl_base_internal_format(&self) -> u32
Returns the OpenGL base internal format of the texture’s data (e.g. GL_RGBA
).
Also see Self::gl_format
, Self::gl_internal_format
.
Sourcepub fn gl_type(&self) -> u32
pub fn gl_type(&self) -> u32
Returns the OpenGL datatype of the texture’s data (e.g. GL_UNSIGNED_BYTE
).
Sourcepub fn needs_transcoding(&self) -> bool
pub fn needs_transcoding(&self) -> bool
Will this KTX1 need transcoding?
Auto Trait Implementations§
impl<'a, 'b> Freeze for Ktx1<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for Ktx1<'a, 'b>
impl<'a, 'b> !Send for Ktx1<'a, 'b>
impl<'a, 'b> !Sync for Ktx1<'a, 'b>
impl<'a, 'b> Unpin for Ktx1<'a, 'b>
impl<'a, 'b> !UnwindSafe for Ktx1<'a, 'b>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more