Enum dae_parser::ColorParam
source · pub enum ColorParam {
Color(Box<[f32; 4]>),
Param(Box<str>),
Texture(Box<Texture>),
}
Expand description
A type that describes color attributes of fixed-function shader elements inside
ProfileCommon
effects.
Variants§
Color(Box<[f32; 4]>)
The value is a literal color, specified by four floating-point numbers in RGBA order.
Param(Box<str>)
The value is specified by a reference to a previously defined parameter
in the current scope that can be cast directly to a float4
.
Texture(Box<Texture>)
The value is specified by a reference to a previously defined sampler2D
object.
Implementations§
source§impl ColorParam
impl ColorParam
Trait Implementations§
source§impl Clone for ColorParam
impl Clone for ColorParam
source§fn clone(&self) -> ColorParam
fn clone(&self) -> ColorParam
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more