pub struct TexEnv { /* private fields */ }Expand description
A texture combiner, also called a “texture environment” (hence the struct name).
See also texenv.h documentation.
Implementations§
Source§impl TexEnv
impl TexEnv
pub fn as_raw(&self) -> *mut C3D_TexEnv
pub fn reset(self) -> TexEnv
Sourcepub fn src(
self,
mode: Mode,
source0: Source,
source1: Option<Source>,
source2: Option<Source>,
) -> TexEnv
pub fn src( self, mode: Mode, source0: Source, source1: Option<Source>, source2: Option<Source>, ) -> TexEnv
Set the sources to use for the rgb and/or alpha components of this texenv stage.
If sourcing from a texture unit, ensure a texture is also bound to that unit
with [Frame::with_texture]
pub fn op_rgb(self, o1: RGBOp, o2: Option<RGBOp>, o3: Option<RGBOp>) -> TexEnv
pub fn op_alpha( self, o1: AlphaOp, o2: Option<AlphaOp>, o3: Option<AlphaOp>, ) -> TexEnv
pub fn func(self, mode: Mode, func: CombineFunc) -> TexEnv
pub fn color(self, color: u32) -> TexEnv
pub fn scale(self, mode: Mode, scale: Scale) -> TexEnv
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TexEnv
impl RefUnwindSafe for TexEnv
impl Send for TexEnv
impl Sync for TexEnv
impl Unpin for TexEnv
impl UnwindSafe for TexEnv
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)