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
sourcepub fn src(
&mut self,
mode: Mode,
source0: Source,
source1: Option<Source>,
source2: Option<Source>
) -> &mut Self
pub fn src( &mut self, mode: Mode, source0: Source, source1: Option<Source>, source2: Option<Source> ) -> &mut Self
sourcepub fn func(&mut self, mode: Mode, func: CombineFunc) -> &mut Self
pub fn func(&mut self, mode: Mode, func: CombineFunc) -> &mut Self
Configure the texture combination function.
§Parameters
mode
: theMode
(s) the combination function will apply to.func
: theCombineFunc
used to combine textures.