[−]Struct codegame::prelude::ugli::Texture2d
Implementations
impl<P> Texture2d<P> where
P: TexturePixel,
P: TexturePixel,
pub fn is_pot(&self) -> bool
pub fn new_uninitialized(ugli: &Rc<Ugli>, size: Vec2<usize>) -> Texture2d<P>
pub fn set_wrap_mode(&mut self, wrap_mode: WrapMode)
pub fn set_filter(&mut self, filter: Filter)
pub fn size(&self) -> Vec2<usize>
pub unsafe fn sub_image(
&mut self,
pos: Vec2<usize>,
size: Vec2<usize>,
data: &[u8]
)
&mut self,
pos: Vec2<usize>,
size: Vec2<usize>,
data: &[u8]
)
impl Texture2d<Color<f32>>
pub fn gen_mipmaps(&mut self)
pub fn new_with<F>(
ugli: &Rc<Ugli>,
size: Vec2<usize>,
f: F
) -> Texture2d<Color<f32>> where
F: FnMut(Vec2<usize>) -> Color<f32>,
ugli: &Rc<Ugli>,
size: Vec2<usize>,
f: F
) -> Texture2d<Color<f32>> where
F: FnMut(Vec2<usize>) -> Color<f32>,
pub fn from_image(
ugli: &Rc<Ugli>,
image: ImageBuffer<Rgba<u8>, Vec<u8, Global>>
) -> Texture2d<Color<f32>>
ugli: &Rc<Ugli>,
image: ImageBuffer<Rgba<u8>, Vec<u8, Global>>
) -> Texture2d<Color<f32>>
Trait Implementations
impl<P> Drop for Texture2d<P> where
P: TexturePixel,
P: TexturePixel,
pub fn drop(&mut self)
impl LoadAsset for Texture2d<Color<f32>>
[src]
pub fn load(
geng: &Rc<Geng>,
path: &str
) -> Pin<Box<dyn Future<Output = Result<Texture2d<Color<f32>>, Error>> + 'static, Global>>ⓘ
[src]
geng: &Rc<Geng>,
path: &str
) -> Pin<Box<dyn Future<Output = Result<Texture2d<Color<f32>>, Error>> + 'static, Global>>ⓘ
pub const DEFAULT_EXT: Option<&'static str>
[src]
impl<P> Uniform for Texture2d<P> where
P: TexturePixel,
P: TexturePixel,
pub fn apply(&self, gl: &Context, info: &UniformInfo)
Auto Trait Implementations
impl<P> !RefUnwindSafe for Texture2d<P>
impl<P> !Send for Texture2d<P>
impl<P> !Sync for Texture2d<P>
impl<P> Unpin for Texture2d<P>
impl<P> !UnwindSafe for Texture2d<P>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a Tⓘ
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tⓘ
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,