Struct gltf::TechniqueStateFunctions
[−]
[src]
pub struct TechniqueStateFunctions { pub blend_color: [f64; 4], pub blend_equation: [u32; 2], pub blend_function: [u32; 4], pub color_mask: [bool; 4], pub cull_face: [u32; 1], pub depth_function: [u32; 1], pub depth_mask: [bool; 1], pub depth_range: [f64; 2], pub extensions: Option<Map<String, Value>>, pub extras: Option<Map<String, Value>>, pub front_face: [u32; 1], pub line_width: [f32; 1], pub polygon_offset: [f32; 2], pub scissor: [i32; 4], }
Fields
blend_color: [f64; 4]
Arguments [red, green, blue, alpha]
for glBlendColor()
blend_equation: [u32; 2]
Arguments [mode_rgb, mode_alpha]
for glBlendEquationSeparate()
blend_function: [u32; 4]
Arguments [src_rgb, dst_rgb, src_alpha, dst_alpha]
for glBlendFuncSeparate()
color_mask: [bool; 4]
Arguments [red, green, blue, alpha]
for glColorMask()
cull_face: [u32; 1]
Argument [mode]
for glCullFace()
depth_function: [u32; 1]
Argument [func]
for glDepthFunc()
depth_mask: [bool; 1]
Argument [flag]
for glDepthMask()
depth_range: [f64; 2]
Arguments [z_near, z_far]
for glDepthRange()
extensions: Option<Map<String, Value>>
Optional data targeting official extensions
extras: Option<Map<String, Value>>
Optional application specific data
front_face: [u32; 1]
Argument [mode]
for glFrontFace()
line_width: [f32; 1]
Argument [width]
for glLineWidth()
polygon_offset: [f32; 2]
Arguments [factor, units]
for glPolygonOffset()
scissor: [i32; 4]
Arguments [x, y, width, height]
for glScissor()
Trait Implementations
impl Debug for TechniqueStateFunctions
[src]
impl Default for TechniqueStateFunctions
[src]
fn default() -> TechniqueStateFunctions
Returns the "default value" for a type. Read more