pub struct Texture {
pub texture_id: GLuint,
pub flags: TextureFlags,
pub size: LogicalSize,
pub gl_context: Rc<dyn Gl>,
}
Expand description
OpenGL texture, use ReadOnlyWindow::create_texture
to create a texture
Fields§
§texture_id: GLuint
Raw OpenGL texture ID
flags: TextureFlags
Hints and flags for optimization purposes
size: LogicalSize
Size of this texture (in pixels)
gl_context: Rc<dyn Gl>
A reference-counted pointer to the OpenGL context (so that the texture can be deleted in the destructor)
Trait Implementations§
Source§impl Ord for Texture
impl Ord for Texture
Source§impl PartialOrd for Texture
impl PartialOrd for Texture
impl Eq for Texture
Auto Trait Implementations§
impl Freeze for Texture
impl !RefUnwindSafe for Texture
impl !Send for Texture
impl !Sync for Texture
impl Unpin for Texture
impl !UnwindSafe for Texture
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