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: theCombineFuncused to combine textures.