1
0
Fork 0
forked from wry/wry

autocommit 2022-04-28 19:49:51 CEST

This commit is contained in:
Julian Orth 2022-04-28 19:49:51 +02:00
parent bd63f3f5f1
commit 1242a6c1e1
31 changed files with 707 additions and 64 deletions

View file

@ -1,6 +1,9 @@
use {
crate::render::{gl::texture::GlTexture, renderer::context::RenderContext},
std::rc::Rc,
std::{
fmt::{Debug, Formatter},
rc::Rc,
},
};
pub struct Texture {
@ -8,6 +11,12 @@ pub struct Texture {
pub(super) gl: GlTexture,
}
impl Debug for Texture {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Texture").finish_non_exhaustive()
}
}
impl Texture {
pub fn width(&self) -> i32 {
self.gl.width